openwolf 1.0.1 → 1.0.3

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.
@@ -1 +1 @@
1
- import{j as e,b as x}from"./index-PYeNGjkN.js";const m=[{key:"achievements",title:"Achievements",icon:"🏆",color:"#059669"},{key:"improvements",title:"Improvements",icon:"✨",color:"#3b82f6"},{key:"next_tasks",title:"Next Tasks",icon:"📋",color:"#d97706"},{key:"risks",title:"Risks & Tech Debt",icon:"🛡",color:"#dc2626"}];function p({data:a}){const{suggestions:s,client:t}=a;return s?e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsxs("span",{className:"text-sm",style:{color:"var(--text-faint)"},children:["Generated: ",s.generated_at?x(s.generated_at):"unknown"]}),e.jsx("button",{onClick:()=>t==null?void 0:t.send({type:"trigger_task",task_id:"project-suggestions"}),className:"px-3 py-1.5 text-xs rounded-lg transition-colors",style:{background:"var(--bg-surface-hover)",border:"1px solid var(--border-subtle)",color:"var(--text-secondary)"},children:"Regenerate"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:m.map(({key:n,title:c,icon:o,color:r})=>{const l=s[n]||[];return e.jsxs("div",{className:"rounded-xl p-5",style:{background:`${r}08`,border:`1px solid ${r}33`},children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx("span",{className:"text-lg",children:o}),e.jsx("h3",{className:"font-medium",style:{color:r},children:c})]}),l.length===0?e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"None reported."}):e.jsx("ul",{className:"space-y-2",children:l.map((i,d)=>e.jsxs("li",{className:"text-sm flex items-start gap-2",style:{color:"var(--text-secondary)"},children:[e.jsx("span",{className:"mt-1 shrink-0",style:{color:"var(--text-faint)"},children:"•"}),e.jsx("span",{children:i})]},d))})]},n)})})]}):e.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[e.jsx("div",{className:"text-4xl mb-3",children:"✦"}),e.jsx("h3",{className:"font-medium mb-1",style:{color:"var(--text-secondary)"},children:"AI suggestions generate weekly"}),e.jsxs("p",{className:"text-sm max-w-sm",style:{color:"var(--text-muted)"},children:["Run ",e.jsx("code",{style:{color:"var(--text-secondary)"},children:"openwolf cron run project-suggestions"})," to generate now."]})]})}export{p as AISuggestions};
1
+ import{j as e,b as x}from"./index-BXtj3DyS.js";const m=[{key:"achievements",title:"Achievements",icon:"🏆",color:"#059669"},{key:"improvements",title:"Improvements",icon:"✨",color:"#3b82f6"},{key:"next_tasks",title:"Next Tasks",icon:"📋",color:"#d97706"},{key:"risks",title:"Risks & Tech Debt",icon:"🛡",color:"#dc2626"}];function p({data:a}){const{suggestions:s,client:t}=a;return s?e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsxs("span",{className:"text-sm",style:{color:"var(--text-faint)"},children:["Generated: ",s.generated_at?x(s.generated_at):"unknown"]}),e.jsx("button",{onClick:()=>t==null?void 0:t.send({type:"trigger_task",task_id:"project-suggestions"}),className:"px-3 py-1.5 text-xs rounded-lg transition-colors",style:{background:"var(--bg-surface-hover)",border:"1px solid var(--border-subtle)",color:"var(--text-secondary)"},children:"Regenerate"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:m.map(({key:n,title:c,icon:o,color:r})=>{const l=s[n]||[];return e.jsxs("div",{className:"rounded-xl p-5",style:{background:`${r}08`,border:`1px solid ${r}33`},children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx("span",{className:"text-lg",children:o}),e.jsx("h3",{className:"font-medium",style:{color:r},children:c})]}),l.length===0?e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"None reported."}):e.jsx("ul",{className:"space-y-2",children:l.map((i,d)=>e.jsxs("li",{className:"text-sm flex items-start gap-2",style:{color:"var(--text-secondary)"},children:[e.jsx("span",{className:"mt-1 shrink-0",style:{color:"var(--text-faint)"},children:"•"}),e.jsx("span",{children:i})]},d))})]},n)})})]}):e.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[e.jsx("div",{className:"text-4xl mb-3",children:"✦"}),e.jsx("h3",{className:"font-medium mb-1",style:{color:"var(--text-secondary)"},children:"AI suggestions generate weekly"}),e.jsxs("p",{className:"text-sm max-w-sm",style:{color:"var(--text-muted)"},children:["Run ",e.jsx("code",{style:{color:"var(--text-secondary)"},children:"openwolf cron run project-suggestions"})," to generate now."]})]})}export{p as AISuggestions};
@@ -1 +1 @@
1
- import{r as n,j as t}from"./index-PYeNGjkN.js";function f({data:x}){const{memory:c}=x,[a,m]=n.useState("all"),[l,u]=n.useState(""),[i,p]=n.useState(!0),d=n.useMemo(()=>{let e=c;if(a==="today"){const r=new Date().toISOString().slice(0,10);e=e.filter(s=>s.date===r)}else if(a==="week"){const r=new Date(Date.now()-6048e5).toISOString().slice(0,10);e=e.filter(s=>s.date>=r)}if(l){const r=l.toLowerCase();e=e.map(s=>({...s,entries:s.entries.filter(o=>o.action.toLowerCase().includes(r)||o.files.toLowerCase().includes(r))})).filter(s=>s.entries.length>0)}return e},[c,a,l]);return t.jsxs("div",{children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-4",children:[t.jsx("div",{className:"flex gap-1 rounded-lg p-1",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:["all","today","week"].map(e=>t.jsx("button",{onClick:()=>m(e),className:"px-3 py-1 text-xs rounded-md transition-colors",style:{background:a===e?"var(--bg-surface-hover)":"transparent",color:a===e?"var(--text-primary)":"var(--text-muted)"},children:e==="all"?"All":e==="today"?"Today":"This Week"},e))}),t.jsx("input",{type:"text",placeholder:"Search actions...",value:l,onChange:e=>u(e.target.value),className:"rounded-lg px-3 py-1.5 text-sm flex-1 min-w-[200px] focus:outline-none",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-primary)"}}),t.jsx("button",{onClick:()=>p(!i),className:"px-3 py-1.5 text-xs rounded-lg",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-muted)"},children:i?"Flat view":"Group by session"})]}),d.length===0?t.jsx("div",{className:"text-center py-12",style:{color:"var(--text-muted)"},children:"No activity found."}):i?d.map((e,r)=>t.jsxs("div",{className:"mb-4",children:[t.jsxs("div",{className:"text-sm font-medium mb-2",style:{color:"var(--text-muted)"},children:[e.date," ",e.time," — ",e.entries.length," actions"]}),t.jsx("div",{className:"rounded-xl",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:e.entries.map((s,o)=>t.jsxs("div",{className:"flex items-center gap-4 px-4 py-3",style:{borderBottom:o<e.entries.length-1?"1px solid var(--border)":"none"},children:[t.jsx("span",{className:"text-xs font-mono w-12 shrink-0",style:{color:"var(--text-faint)"},children:s.time}),t.jsx("span",{className:`w-2 h-2 rounded-full shrink-0 ${s.action.includes("Created")?"bg-emerald-500":s.action.includes("Edited")?"bg-blue-500":""}`,style:{background:!s.action.includes("Created")&&!s.action.includes("Edited")?"var(--text-faint)":void 0}}),t.jsx("span",{className:"text-sm flex-1",style:{color:"var(--text-secondary)"},children:s.action}),t.jsx("span",{className:"text-xs font-mono",style:{color:"var(--text-faint)"},children:s.tokens})]},o))})]},r)):t.jsx("div",{className:"rounded-xl",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:d.flatMap(e=>e.entries.map((r,s)=>t.jsxs("div",{className:"flex items-center gap-4 px-4 py-3",style:{borderBottom:"1px solid var(--border)"},children:[t.jsx("span",{className:"text-xs font-mono w-20 shrink-0",style:{color:"var(--text-faint)"},children:e.date}),t.jsx("span",{className:"text-xs font-mono w-12 shrink-0",style:{color:"var(--text-faint)"},children:r.time}),t.jsx("span",{className:"text-sm flex-1",style:{color:"var(--text-secondary)"},children:r.action}),t.jsx("span",{className:"text-xs font-mono",style:{color:"var(--text-faint)"},children:r.tokens})]},`${e.date}-${s}`)))})]})}export{f as ActivityTimeline};
1
+ import{r as n,j as t}from"./index-BXtj3DyS.js";function f({data:x}){const{memory:c}=x,[a,m]=n.useState("all"),[l,u]=n.useState(""),[i,p]=n.useState(!0),d=n.useMemo(()=>{let e=c;if(a==="today"){const r=new Date().toISOString().slice(0,10);e=e.filter(s=>s.date===r)}else if(a==="week"){const r=new Date(Date.now()-6048e5).toISOString().slice(0,10);e=e.filter(s=>s.date>=r)}if(l){const r=l.toLowerCase();e=e.map(s=>({...s,entries:s.entries.filter(o=>o.action.toLowerCase().includes(r)||o.files.toLowerCase().includes(r))})).filter(s=>s.entries.length>0)}return e},[c,a,l]);return t.jsxs("div",{children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-4",children:[t.jsx("div",{className:"flex gap-1 rounded-lg p-1",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:["all","today","week"].map(e=>t.jsx("button",{onClick:()=>m(e),className:"px-3 py-1 text-xs rounded-md transition-colors",style:{background:a===e?"var(--bg-surface-hover)":"transparent",color:a===e?"var(--text-primary)":"var(--text-muted)"},children:e==="all"?"All":e==="today"?"Today":"This Week"},e))}),t.jsx("input",{type:"text",placeholder:"Search actions...",value:l,onChange:e=>u(e.target.value),className:"rounded-lg px-3 py-1.5 text-sm flex-1 min-w-[200px] focus:outline-none",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-primary)"}}),t.jsx("button",{onClick:()=>p(!i),className:"px-3 py-1.5 text-xs rounded-lg",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-muted)"},children:i?"Flat view":"Group by session"})]}),d.length===0?t.jsx("div",{className:"text-center py-12",style:{color:"var(--text-muted)"},children:"No activity found."}):i?d.map((e,r)=>t.jsxs("div",{className:"mb-4",children:[t.jsxs("div",{className:"text-sm font-medium mb-2",style:{color:"var(--text-muted)"},children:[e.date," ",e.time," — ",e.entries.length," actions"]}),t.jsx("div",{className:"rounded-xl",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:e.entries.map((s,o)=>t.jsxs("div",{className:"flex items-center gap-4 px-4 py-3",style:{borderBottom:o<e.entries.length-1?"1px solid var(--border)":"none"},children:[t.jsx("span",{className:"text-xs font-mono w-12 shrink-0",style:{color:"var(--text-faint)"},children:s.time}),t.jsx("span",{className:`w-2 h-2 rounded-full shrink-0 ${s.action.includes("Created")?"bg-emerald-500":s.action.includes("Edited")?"bg-blue-500":""}`,style:{background:!s.action.includes("Created")&&!s.action.includes("Edited")?"var(--text-faint)":void 0}}),t.jsx("span",{className:"text-sm flex-1",style:{color:"var(--text-secondary)"},children:s.action}),t.jsx("span",{className:"text-xs font-mono",style:{color:"var(--text-faint)"},children:s.tokens})]},o))})]},r)):t.jsx("div",{className:"rounded-xl",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:d.flatMap(e=>e.entries.map((r,s)=>t.jsxs("div",{className:"flex items-center gap-4 px-4 py-3",style:{borderBottom:"1px solid var(--border)"},children:[t.jsx("span",{className:"text-xs font-mono w-20 shrink-0",style:{color:"var(--text-faint)"},children:e.date}),t.jsx("span",{className:"text-xs font-mono w-12 shrink-0",style:{color:"var(--text-faint)"},children:r.time}),t.jsx("span",{className:"text-sm flex-1",style:{color:"var(--text-secondary)"},children:r.action}),t.jsx("span",{className:"text-xs font-mono",style:{color:"var(--text-faint)"},children:r.tokens})]},`${e.date}-${s}`)))})]})}export{f as ActivityTimeline};
@@ -1 +1 @@
1
- import{j as t,f,d as g,r as x}from"./index-PYeNGjkN.js";function j({tokens:r,className:s}){const n=r<200?"text-emerald-400":r<1e3?"text-amber-400":"text-red-400";return t.jsxs("span",{className:g("font-mono text-xs",n,s),children:["~",f(r)," tok"]})}function v(r){const s={name:".",path:".",children:[],files:[]},n=new Map;n.set("./",s);for(const o of r){const c=o.section;if(!n.has(c)){const i=c.replace(/\/$/,"").split("/");let d=s,l="";for(const e of i){l=l?`${l}/${e}`:e;const a=`${l}/`;if(!n.has(a)){const m={name:e,path:a,children:[],files:[]};d.children.push(m),n.set(a,m)}d=n.get(a)}}n.get(c).files.push({file:o.file,description:o.description,tokens:o.tokens})}return s}function p({node:r,search:s,depth:n=0}){const[o,c]=x.useState(n<2),i=s.toLowerCase(),d=r.files.filter(e=>!s||e.file.toLowerCase().includes(i)||e.description.toLowerCase().includes(i)),l=r.children.some(e=>h(e,i));return s&&d.length===0&&!l?null:t.jsxs("div",{className:"ml-3",children:[r.name!=="."&&t.jsxs("button",{onClick:()=>c(!o),className:"flex items-center gap-1.5 py-1 text-sm transition-colors",style:{color:"var(--text-secondary)"},children:[t.jsx("span",{className:"w-4 text-center",style:{color:"var(--text-faint)"},children:o?"▼":"▶"}),t.jsx("span",{className:"text-amber-400",children:"📁"}),t.jsxs("span",{children:[r.name,"/"]}),t.jsxs("span",{className:"text-xs",style:{color:"var(--text-faint)"},children:[u(r)," files"]})]}),(o||r.name===".")&&t.jsxs("div",{className:r.name!=="."?"ml-4":"",children:[d.sort((e,a)=>e.file.localeCompare(a.file)).map(e=>t.jsxs("div",{className:"flex items-center gap-2 py-1 pl-5",children:[t.jsx("span",{style:{color:"var(--text-faint)"},children:"📄"}),t.jsx("span",{className:"text-sm font-mono",style:{color:"var(--text-primary)"},children:e.file}),e.description&&t.jsxs("span",{className:"text-xs truncate max-w-xs",style:{color:"var(--text-faint)"},children:["— ",e.description]}),t.jsx(j,{tokens:e.tokens,className:"ml-auto shrink-0"})]},e.file)),r.children.sort((e,a)=>e.name.localeCompare(a.name)).map(e=>t.jsx(p,{node:e,search:s,depth:n+1},e.path))]})]})}function u(r){return r.files.length+r.children.reduce((s,n)=>s+u(n),0)}function h(r,s){return r.files.some(n=>n.file.toLowerCase().includes(s)||n.description.toLowerCase().includes(s))?!0:r.children.some(n=>h(n,s))}function b({data:r}){const{anatomy:s}=r,[n,o]=x.useState(""),[c,i]=x.useState(!1),d=x.useMemo(()=>v(s.entries),[s.entries]),l=x.useMemo(()=>{const e=s.entries.map(a=>a.tokens);return{total:s.entries.length,avg:e.length>0?Math.round(e.reduce((a,m)=>a+m,0)/e.length):0,largest:e.length>0?Math.max(...e):0}},[s.entries]);return t.jsxs("div",{children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-4",children:[t.jsx("input",{type:"text",placeholder:"Search files...",value:n,onChange:e=>o(e.target.value),className:"flex-1 min-w-[200px] rounded-lg px-3 py-2 text-sm focus:outline-none",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-primary)"}}),t.jsx("button",{onClick:()=>i(!c),className:"px-3 py-2 text-xs rounded-lg",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-muted)"},children:c?"Sort: Size":"Sort: A-Z"})]}),t.jsxs("div",{className:"flex gap-4 mb-4 text-sm",style:{color:"var(--text-muted)"},children:[t.jsxs("span",{children:[l.total," files tracked"]}),t.jsxs("span",{children:["Avg: ",l.avg," tok/file"]}),t.jsxs("span",{children:["Largest: ",l.largest," tok"]})]}),t.jsx("div",{className:"rounded-xl p-4",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:s.entries.length===0?t.jsxs("div",{className:"text-center py-12",style:{color:"var(--text-muted)"},children:[t.jsx("p",{className:"text-2xl mb-2",children:"📂"}),t.jsxs("p",{children:["No anatomy data. Run ",t.jsx("code",{style:{color:"var(--text-secondary)"},children:"openwolf scan"})," to index your project."]})]}):t.jsx(p,{node:d,search:n})})]})}export{b as AnatomyBrowser};
1
+ import{j as t,f,d as g,r as x}from"./index-BXtj3DyS.js";function j({tokens:r,className:s}){const n=r<200?"text-emerald-400":r<1e3?"text-amber-400":"text-red-400";return t.jsxs("span",{className:g("font-mono text-xs",n,s),children:["~",f(r)," tok"]})}function v(r){const s={name:".",path:".",children:[],files:[]},n=new Map;n.set("./",s);for(const o of r){const c=o.section;if(!n.has(c)){const i=c.replace(/\/$/,"").split("/");let d=s,l="";for(const e of i){l=l?`${l}/${e}`:e;const a=`${l}/`;if(!n.has(a)){const m={name:e,path:a,children:[],files:[]};d.children.push(m),n.set(a,m)}d=n.get(a)}}n.get(c).files.push({file:o.file,description:o.description,tokens:o.tokens})}return s}function p({node:r,search:s,depth:n=0}){const[o,c]=x.useState(n<2),i=s.toLowerCase(),d=r.files.filter(e=>!s||e.file.toLowerCase().includes(i)||e.description.toLowerCase().includes(i)),l=r.children.some(e=>h(e,i));return s&&d.length===0&&!l?null:t.jsxs("div",{className:"ml-3",children:[r.name!=="."&&t.jsxs("button",{onClick:()=>c(!o),className:"flex items-center gap-1.5 py-1 text-sm transition-colors",style:{color:"var(--text-secondary)"},children:[t.jsx("span",{className:"w-4 text-center",style:{color:"var(--text-faint)"},children:o?"▼":"▶"}),t.jsx("span",{className:"text-amber-400",children:"📁"}),t.jsxs("span",{children:[r.name,"/"]}),t.jsxs("span",{className:"text-xs",style:{color:"var(--text-faint)"},children:[u(r)," files"]})]}),(o||r.name===".")&&t.jsxs("div",{className:r.name!=="."?"ml-4":"",children:[d.sort((e,a)=>e.file.localeCompare(a.file)).map(e=>t.jsxs("div",{className:"flex items-center gap-2 py-1 pl-5",children:[t.jsx("span",{style:{color:"var(--text-faint)"},children:"📄"}),t.jsx("span",{className:"text-sm font-mono",style:{color:"var(--text-primary)"},children:e.file}),e.description&&t.jsxs("span",{className:"text-xs truncate max-w-xs",style:{color:"var(--text-faint)"},children:["— ",e.description]}),t.jsx(j,{tokens:e.tokens,className:"ml-auto shrink-0"})]},e.file)),r.children.sort((e,a)=>e.name.localeCompare(a.name)).map(e=>t.jsx(p,{node:e,search:s,depth:n+1},e.path))]})]})}function u(r){return r.files.length+r.children.reduce((s,n)=>s+u(n),0)}function h(r,s){return r.files.some(n=>n.file.toLowerCase().includes(s)||n.description.toLowerCase().includes(s))?!0:r.children.some(n=>h(n,s))}function b({data:r}){const{anatomy:s}=r,[n,o]=x.useState(""),[c,i]=x.useState(!1),d=x.useMemo(()=>v(s.entries),[s.entries]),l=x.useMemo(()=>{const e=s.entries.map(a=>a.tokens);return{total:s.entries.length,avg:e.length>0?Math.round(e.reduce((a,m)=>a+m,0)/e.length):0,largest:e.length>0?Math.max(...e):0}},[s.entries]);return t.jsxs("div",{children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-4",children:[t.jsx("input",{type:"text",placeholder:"Search files...",value:n,onChange:e=>o(e.target.value),className:"flex-1 min-w-[200px] rounded-lg px-3 py-2 text-sm focus:outline-none",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-primary)"}}),t.jsx("button",{onClick:()=>i(!c),className:"px-3 py-2 text-xs rounded-lg",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-muted)"},children:c?"Sort: Size":"Sort: A-Z"})]}),t.jsxs("div",{className:"flex gap-4 mb-4 text-sm",style:{color:"var(--text-muted)"},children:[t.jsxs("span",{children:[l.total," files tracked"]}),t.jsxs("span",{children:["Avg: ",l.avg," tok/file"]}),t.jsxs("span",{children:["Largest: ",l.largest," tok"]})]}),t.jsx("div",{className:"rounded-xl p-4",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:s.entries.length===0?t.jsxs("div",{className:"text-center py-12",style:{color:"var(--text-muted)"},children:[t.jsx("p",{className:"text-2xl mb-2",children:"📂"}),t.jsxs("p",{children:["No anatomy data. Run ",t.jsx("code",{style:{color:"var(--text-secondary)"},children:"openwolf scan"})," to index your project."]})]}):t.jsx(p,{node:d,search:n})})]})}export{b as AnatomyBrowser};
@@ -1 +1 @@
1
- import{r as d,j as e}from"./index-PYeNGjkN.js";function g({data:i}){const{buglog:l}=i,[t,c]=d.useState(""),[u,m]=d.useState(null),p=t?l.bugs.filter(s=>s.error_message.toLowerCase().includes(t.toLowerCase())||s.root_cause.toLowerCase().includes(t.toLowerCase())||s.fix.toLowerCase().includes(t.toLowerCase())||s.tags.some(r=>r.toLowerCase().includes(t.toLowerCase()))):l.bugs;if(l.bugs.length===0)return e.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[e.jsx("div",{className:"text-4xl mb-3",children:"🐛"}),e.jsx("h3",{className:"font-medium mb-1",style:{color:"var(--text-secondary)"},children:"No bugs logged yet"}),e.jsx("p",{className:"text-sm max-w-sm",style:{color:"var(--text-muted)"},children:"When you encounter and fix bugs, they'll appear here for future reference."})]});const v=l.bugs.flatMap(s=>s.tags),o=new Map;for(const s of v)o.set(s,(o.get(s)||0)+1);const n=[...o.entries()].sort((s,r)=>r[1]-s[1]).slice(0,5);return e.jsxs("div",{children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-4 mb-4",children:[e.jsx("input",{type:"text",placeholder:"Search bugs...",value:t,onChange:s=>c(s.target.value),className:"flex-1 min-w-[200px] rounded-lg px-3 py-2 text-sm focus:outline-none",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-primary)"}}),e.jsxs("span",{className:"text-sm",style:{color:"var(--text-faint)"},children:[l.bugs.length," bugs logged"]})]}),n.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 mb-4",children:n.map(([s,r])=>e.jsxs("button",{onClick:()=>c(s),className:"px-2 py-1 text-xs rounded-full",style:{background:"var(--bg-surface-hover)",border:"1px solid var(--border-subtle)",color:"var(--text-muted)"},children:[s," (",r,")"]},s))}),e.jsx("div",{className:"space-y-3",children:p.map(s=>{var x;const r=u===s.id;return e.jsxs("div",{className:"rounded-xl overflow-hidden",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsxs("button",{onClick:()=>m(r?null:s.id),className:"w-full flex items-start gap-3 px-5 py-3 transition-colors text-left",onMouseEnter:a=>a.currentTarget.style.background="var(--bg-surface-hover)",onMouseLeave:a=>a.currentTarget.style.background="transparent",children:[e.jsx("span",{className:"text-sm mt-0.5",style:{color:"var(--text-faint)"},children:r?"▼":"▶"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm truncate",style:{color:"var(--text-primary)"},children:s.error_message}),e.jsxs("div",{className:"flex items-center gap-3 mt-1",children:[e.jsx("span",{className:"text-xs",style:{color:"var(--text-faint)"},children:s.file}),e.jsx("span",{className:"text-xs",style:{color:"var(--text-faint)"},children:(x=s.timestamp)==null?void 0:x.slice(0,10)})]})]}),s.occurrences>1&&e.jsxs("span",{className:"shrink-0 px-2 py-0.5 rounded-full text-xs",style:{background:"var(--warning-subtle)",color:"var(--warning)"},children:["Seen ",s.occurrences,"x"]})]}),r&&e.jsxs("div",{className:"px-5 py-4 space-y-3",style:{borderTop:"1px solid var(--border)"},children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xs uppercase mb-1",style:{color:"var(--text-faint)"},children:"Error Message"}),e.jsx("pre",{className:"text-sm rounded-lg p-3 overflow-x-auto font-mono",style:{color:"var(--danger)",background:"var(--danger-subtle)"},children:s.error_message})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs uppercase mb-1",style:{color:"var(--text-faint)"},children:"Root Cause"}),e.jsx("p",{className:"text-sm",style:{color:"var(--text-secondary)"},children:s.root_cause})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs uppercase mb-1",style:{color:"var(--text-faint)"},children:"Fix"}),e.jsx("pre",{className:"text-sm rounded-lg p-3 overflow-x-auto font-mono",style:{color:"var(--accent)",background:"var(--accent-subtle)"},children:s.fix})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:s.tags.map(a=>e.jsx("span",{className:"px-2 py-0.5 text-xs rounded-full",style:{background:"var(--bg-surface-hover)",border:"1px solid var(--border-subtle)",color:"var(--text-muted)"},children:a},a))})]})]},s.id)})})]})}export{g as BugLog};
1
+ import{r as d,j as e}from"./index-BXtj3DyS.js";function g({data:i}){const{buglog:l}=i,[t,c]=d.useState(""),[u,m]=d.useState(null),p=t?l.bugs.filter(s=>s.error_message.toLowerCase().includes(t.toLowerCase())||s.root_cause.toLowerCase().includes(t.toLowerCase())||s.fix.toLowerCase().includes(t.toLowerCase())||s.tags.some(r=>r.toLowerCase().includes(t.toLowerCase()))):l.bugs;if(l.bugs.length===0)return e.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[e.jsx("div",{className:"text-4xl mb-3",children:"🐛"}),e.jsx("h3",{className:"font-medium mb-1",style:{color:"var(--text-secondary)"},children:"No bugs logged yet"}),e.jsx("p",{className:"text-sm max-w-sm",style:{color:"var(--text-muted)"},children:"When you encounter and fix bugs, they'll appear here for future reference."})]});const v=l.bugs.flatMap(s=>s.tags),o=new Map;for(const s of v)o.set(s,(o.get(s)||0)+1);const n=[...o.entries()].sort((s,r)=>r[1]-s[1]).slice(0,5);return e.jsxs("div",{children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-4 mb-4",children:[e.jsx("input",{type:"text",placeholder:"Search bugs...",value:t,onChange:s=>c(s.target.value),className:"flex-1 min-w-[200px] rounded-lg px-3 py-2 text-sm focus:outline-none",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-primary)"}}),e.jsxs("span",{className:"text-sm",style:{color:"var(--text-faint)"},children:[l.bugs.length," bugs logged"]})]}),n.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 mb-4",children:n.map(([s,r])=>e.jsxs("button",{onClick:()=>c(s),className:"px-2 py-1 text-xs rounded-full",style:{background:"var(--bg-surface-hover)",border:"1px solid var(--border-subtle)",color:"var(--text-muted)"},children:[s," (",r,")"]},s))}),e.jsx("div",{className:"space-y-3",children:p.map(s=>{var x;const r=u===s.id;return e.jsxs("div",{className:"rounded-xl overflow-hidden",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsxs("button",{onClick:()=>m(r?null:s.id),className:"w-full flex items-start gap-3 px-5 py-3 transition-colors text-left",onMouseEnter:a=>a.currentTarget.style.background="var(--bg-surface-hover)",onMouseLeave:a=>a.currentTarget.style.background="transparent",children:[e.jsx("span",{className:"text-sm mt-0.5",style:{color:"var(--text-faint)"},children:r?"▼":"▶"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm truncate",style:{color:"var(--text-primary)"},children:s.error_message}),e.jsxs("div",{className:"flex items-center gap-3 mt-1",children:[e.jsx("span",{className:"text-xs",style:{color:"var(--text-faint)"},children:s.file}),e.jsx("span",{className:"text-xs",style:{color:"var(--text-faint)"},children:(x=s.timestamp)==null?void 0:x.slice(0,10)})]})]}),s.occurrences>1&&e.jsxs("span",{className:"shrink-0 px-2 py-0.5 rounded-full text-xs",style:{background:"var(--warning-subtle)",color:"var(--warning)"},children:["Seen ",s.occurrences,"x"]})]}),r&&e.jsxs("div",{className:"px-5 py-4 space-y-3",style:{borderTop:"1px solid var(--border)"},children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xs uppercase mb-1",style:{color:"var(--text-faint)"},children:"Error Message"}),e.jsx("pre",{className:"text-sm rounded-lg p-3 overflow-x-auto font-mono",style:{color:"var(--danger)",background:"var(--danger-subtle)"},children:s.error_message})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs uppercase mb-1",style:{color:"var(--text-faint)"},children:"Root Cause"}),e.jsx("p",{className:"text-sm",style:{color:"var(--text-secondary)"},children:s.root_cause})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs uppercase mb-1",style:{color:"var(--text-faint)"},children:"Fix"}),e.jsx("pre",{className:"text-sm rounded-lg p-3 overflow-x-auto font-mono",style:{color:"var(--accent)",background:"var(--accent-subtle)"},children:s.fix})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:s.tags.map(a=>e.jsx("span",{className:"px-2 py-0.5 text-xs rounded-full",style:{background:"var(--bg-surface-hover)",border:"1px solid var(--border-subtle)",color:"var(--text-muted)"},children:a},a))})]})]},s.id)})})]})}export{g as BugLog};
@@ -1 +1 @@
1
- import{r as o,j as e}from"./index-PYeNGjkN.js";function p({data:d}){const{cerebrum:r}=d,[c,i]=o.useState(""),[a,x]=o.useState({preferences:!0,learnings:!0,doNotRepeat:!0,decisions:!1}),n=s=>x(t=>({...t,[s]:!t[s]})),l=s=>!c||s.toLowerCase().includes(c.toLowerCase());return e.jsxs("div",{children:[e.jsx("div",{className:"flex items-center justify-between mb-4",children:e.jsxs("div",{className:"text-sm",style:{color:"var(--text-faint)"},children:["Last updated: ",r.lastUpdated||"—"," ·",r.preferences.length+r.learnings.length+r.doNotRepeat.length+r.decisions.length," entries"]})}),e.jsx("input",{type:"text",placeholder:"Search cerebrum...",value:c,onChange:s=>i(s.target.value),className:"w-full rounded-lg px-3 py-2 text-sm mb-4 focus:outline-none",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-primary)"}}),e.jsxs("div",{className:"rounded-xl mb-4 overflow-hidden",style:{background:"var(--danger-subtle)",border:"1px solid rgba(220, 38, 38, 0.2)"},children:[e.jsxs("button",{onClick:()=>n("doNotRepeat"),className:"w-full flex items-center justify-between px-5 py-3 transition-colors",onMouseEnter:s=>s.currentTarget.style.background="rgba(220, 38, 38, 0.08)",onMouseLeave:s=>s.currentTarget.style.background="transparent",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{style:{color:"var(--danger)"},children:"⊘"}),e.jsx("h3",{className:"font-medium",style:{color:"var(--danger)"},children:"Do-Not-Repeat"}),e.jsx("span",{className:"text-xs px-2 py-0.5 rounded-full",style:{background:"rgba(220, 38, 38, 0.1)",color:"var(--danger)"},children:r.doNotRepeat.length})]}),e.jsx("span",{className:"text-sm",style:{color:"var(--text-faint)"},children:a.doNotRepeat?"▼":"▶"})]}),a.doNotRepeat&&e.jsxs("div",{className:"px-5 pb-4 space-y-2",children:[r.doNotRepeat.filter(s=>l(s.text)).map((s,t)=>e.jsxs("div",{className:"rounded-lg p-3",style:{background:"rgba(220, 38, 38, 0.05)",border:"1px solid rgba(220, 38, 38, 0.1)"},children:[s.date&&e.jsxs("span",{className:"text-xs font-mono mr-2",style:{color:"rgba(220, 38, 38, 0.6)"},children:["[",s.date,"]"]}),e.jsx("span",{className:"text-sm",style:{color:"var(--text-secondary)"},children:s.text})]},t)),r.doNotRepeat.length===0&&e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"No entries yet."})]})]}),e.jsxs("div",{className:"rounded-xl mb-4 overflow-hidden",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsxs("button",{onClick:()=>n("preferences"),className:"w-full flex items-center justify-between px-5 py-3 transition-colors",onMouseEnter:s=>s.currentTarget.style.background="var(--bg-surface-hover)",onMouseLeave:s=>s.currentTarget.style.background="transparent",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-blue-400",children:"◈"}),e.jsx("h3",{className:"font-medium",style:{color:"var(--text-secondary)"},children:"User Preferences"}),e.jsx("span",{className:"text-xs",style:{color:"var(--text-faint)"},children:r.preferences.length})]}),e.jsx("span",{className:"text-sm",style:{color:"var(--text-faint)"},children:a.preferences?"▼":"▶"})]}),a.preferences&&e.jsxs("div",{className:"px-5 pb-4",children:[r.preferences.filter(l).map((s,t)=>e.jsxs("div",{className:"flex items-start gap-2 py-1.5",children:[e.jsx("span",{className:"mt-1",style:{color:"var(--text-faint)"},children:"•"}),e.jsx("span",{className:"text-sm",style:{color:"var(--text-secondary)"},children:s})]},t)),r.preferences.length===0&&e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"No preferences recorded yet."})]})]}),e.jsxs("div",{className:"rounded-xl mb-4 overflow-hidden",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsxs("button",{onClick:()=>n("learnings"),className:"w-full flex items-center justify-between px-5 py-3 transition-colors",onMouseEnter:s=>s.currentTarget.style.background="var(--bg-surface-hover)",onMouseLeave:s=>s.currentTarget.style.background="transparent",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{style:{color:"var(--accent)"},children:"◎"}),e.jsx("h3",{className:"font-medium",style:{color:"var(--text-secondary)"},children:"Key Learnings"}),e.jsx("span",{className:"text-xs",style:{color:"var(--text-faint)"},children:r.learnings.length})]}),e.jsx("span",{className:"text-sm",style:{color:"var(--text-faint)"},children:a.learnings?"▼":"▶"})]}),a.learnings&&e.jsxs("div",{className:"px-5 pb-4 space-y-2",children:[r.learnings.filter(l).map((s,t)=>e.jsx("div",{className:"rounded-lg p-3 text-sm",style:{background:"var(--bg-surface-hover)",color:"var(--text-secondary)"},children:s},t)),r.learnings.length===0&&e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"No learnings recorded yet."})]})]}),e.jsxs("div",{className:"rounded-xl overflow-hidden",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsxs("button",{onClick:()=>n("decisions"),className:"w-full flex items-center justify-between px-5 py-3 transition-colors",onMouseEnter:s=>s.currentTarget.style.background="var(--bg-surface-hover)",onMouseLeave:s=>s.currentTarget.style.background="transparent",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-amber-400",children:"⚖"}),e.jsx("h3",{className:"font-medium",style:{color:"var(--text-secondary)"},children:"Decision Log"}),e.jsx("span",{className:"text-xs",style:{color:"var(--text-faint)"},children:r.decisions.length})]}),e.jsx("span",{className:"text-sm",style:{color:"var(--text-faint)"},children:a.decisions?"▼":"▶"})]}),a.decisions&&e.jsxs("div",{className:"px-5 pb-4 space-y-2",children:[r.decisions.filter(l).map((s,t)=>e.jsx("div",{className:"rounded-lg p-3 text-sm",style:{background:"var(--bg-surface-hover)",color:"var(--text-secondary)"},children:s},t)),r.decisions.length===0&&e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"No decisions logged yet."})]})]})]})}export{p as CerebrumViewer};
1
+ import{r as o,j as e}from"./index-BXtj3DyS.js";function p({data:d}){const{cerebrum:r}=d,[c,i]=o.useState(""),[a,x]=o.useState({preferences:!0,learnings:!0,doNotRepeat:!0,decisions:!1}),n=s=>x(t=>({...t,[s]:!t[s]})),l=s=>!c||s.toLowerCase().includes(c.toLowerCase());return e.jsxs("div",{children:[e.jsx("div",{className:"flex items-center justify-between mb-4",children:e.jsxs("div",{className:"text-sm",style:{color:"var(--text-faint)"},children:["Last updated: ",r.lastUpdated||"—"," ·",r.preferences.length+r.learnings.length+r.doNotRepeat.length+r.decisions.length," entries"]})}),e.jsx("input",{type:"text",placeholder:"Search cerebrum...",value:c,onChange:s=>i(s.target.value),className:"w-full rounded-lg px-3 py-2 text-sm mb-4 focus:outline-none",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-primary)"}}),e.jsxs("div",{className:"rounded-xl mb-4 overflow-hidden",style:{background:"var(--danger-subtle)",border:"1px solid rgba(220, 38, 38, 0.2)"},children:[e.jsxs("button",{onClick:()=>n("doNotRepeat"),className:"w-full flex items-center justify-between px-5 py-3 transition-colors",onMouseEnter:s=>s.currentTarget.style.background="rgba(220, 38, 38, 0.08)",onMouseLeave:s=>s.currentTarget.style.background="transparent",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{style:{color:"var(--danger)"},children:"⊘"}),e.jsx("h3",{className:"font-medium",style:{color:"var(--danger)"},children:"Do-Not-Repeat"}),e.jsx("span",{className:"text-xs px-2 py-0.5 rounded-full",style:{background:"rgba(220, 38, 38, 0.1)",color:"var(--danger)"},children:r.doNotRepeat.length})]}),e.jsx("span",{className:"text-sm",style:{color:"var(--text-faint)"},children:a.doNotRepeat?"▼":"▶"})]}),a.doNotRepeat&&e.jsxs("div",{className:"px-5 pb-4 space-y-2",children:[r.doNotRepeat.filter(s=>l(s.text)).map((s,t)=>e.jsxs("div",{className:"rounded-lg p-3",style:{background:"rgba(220, 38, 38, 0.05)",border:"1px solid rgba(220, 38, 38, 0.1)"},children:[s.date&&e.jsxs("span",{className:"text-xs font-mono mr-2",style:{color:"rgba(220, 38, 38, 0.6)"},children:["[",s.date,"]"]}),e.jsx("span",{className:"text-sm",style:{color:"var(--text-secondary)"},children:s.text})]},t)),r.doNotRepeat.length===0&&e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"No entries yet."})]})]}),e.jsxs("div",{className:"rounded-xl mb-4 overflow-hidden",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsxs("button",{onClick:()=>n("preferences"),className:"w-full flex items-center justify-between px-5 py-3 transition-colors",onMouseEnter:s=>s.currentTarget.style.background="var(--bg-surface-hover)",onMouseLeave:s=>s.currentTarget.style.background="transparent",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-blue-400",children:"◈"}),e.jsx("h3",{className:"font-medium",style:{color:"var(--text-secondary)"},children:"User Preferences"}),e.jsx("span",{className:"text-xs",style:{color:"var(--text-faint)"},children:r.preferences.length})]}),e.jsx("span",{className:"text-sm",style:{color:"var(--text-faint)"},children:a.preferences?"▼":"▶"})]}),a.preferences&&e.jsxs("div",{className:"px-5 pb-4",children:[r.preferences.filter(l).map((s,t)=>e.jsxs("div",{className:"flex items-start gap-2 py-1.5",children:[e.jsx("span",{className:"mt-1",style:{color:"var(--text-faint)"},children:"•"}),e.jsx("span",{className:"text-sm",style:{color:"var(--text-secondary)"},children:s})]},t)),r.preferences.length===0&&e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"No preferences recorded yet."})]})]}),e.jsxs("div",{className:"rounded-xl mb-4 overflow-hidden",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsxs("button",{onClick:()=>n("learnings"),className:"w-full flex items-center justify-between px-5 py-3 transition-colors",onMouseEnter:s=>s.currentTarget.style.background="var(--bg-surface-hover)",onMouseLeave:s=>s.currentTarget.style.background="transparent",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{style:{color:"var(--accent)"},children:"◎"}),e.jsx("h3",{className:"font-medium",style:{color:"var(--text-secondary)"},children:"Key Learnings"}),e.jsx("span",{className:"text-xs",style:{color:"var(--text-faint)"},children:r.learnings.length})]}),e.jsx("span",{className:"text-sm",style:{color:"var(--text-faint)"},children:a.learnings?"▼":"▶"})]}),a.learnings&&e.jsxs("div",{className:"px-5 pb-4 space-y-2",children:[r.learnings.filter(l).map((s,t)=>e.jsx("div",{className:"rounded-lg p-3 text-sm",style:{background:"var(--bg-surface-hover)",color:"var(--text-secondary)"},children:s},t)),r.learnings.length===0&&e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"No learnings recorded yet."})]})]}),e.jsxs("div",{className:"rounded-xl overflow-hidden",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsxs("button",{onClick:()=>n("decisions"),className:"w-full flex items-center justify-between px-5 py-3 transition-colors",onMouseEnter:s=>s.currentTarget.style.background="var(--bg-surface-hover)",onMouseLeave:s=>s.currentTarget.style.background="transparent",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-amber-400",children:"⚖"}),e.jsx("h3",{className:"font-medium",style:{color:"var(--text-secondary)"},children:"Decision Log"}),e.jsx("span",{className:"text-xs",style:{color:"var(--text-faint)"},children:r.decisions.length})]}),e.jsx("span",{className:"text-sm",style:{color:"var(--text-faint)"},children:a.decisions?"▼":"▶"})]}),a.decisions&&e.jsxs("div",{className:"px-5 pb-4 space-y-2",children:[r.decisions.filter(l).map((s,t)=>e.jsx("div",{className:"rounded-lg p-3 text-sm",style:{background:"var(--bg-surface-hover)",color:"var(--text-secondary)"},children:s},t)),r.decisions.length===0&&e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"No decisions logged yet."})]})]})]})}export{p as CerebrumViewer};
@@ -1 +1 @@
1
- import{r as n,j as e,S as x,a as j,b as i}from"./index-PYeNGjkN.js";function g({data:m}){const{cronManifest:u,cronState:a,client:l}=m,[o,p]=n.useState(!0),[d,h]=n.useState(!1),y=t=>{if(a.dead_letter_queue.some(r=>r.task_id===t))return"failed";const s=a.execution_log.filter(r=>r.task_id===t).sort((r,c)=>c.timestamp.localeCompare(r.timestamp))[0];return(s==null?void 0:s.status)||"ok"},v=t=>{const s=a.execution_log.filter(r=>r.task_id===t).sort((r,c)=>c.timestamp.localeCompare(r.timestamp))[0];return s?i(s.timestamp):"never"},f=t=>{l==null||l.send({type:"trigger_task",task_id:t})},b=t=>{l==null||l.send({type:"retry_dead_letter",task_id:t})};return e.jsxs("div",{children:[e.jsx("div",{className:"rounded-xl overflow-hidden mb-6",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{children:e.jsxs("tr",{style:{borderBottom:"1px solid var(--border)"},children:[e.jsx("th",{className:"text-left px-4 py-3 text-xs font-medium uppercase",style:{color:"var(--text-faint)"},children:"Status"}),e.jsx("th",{className:"text-left px-4 py-3 text-xs font-medium uppercase",style:{color:"var(--text-faint)"},children:"Task"}),e.jsx("th",{className:"text-left px-4 py-3 text-xs font-medium uppercase hidden md:table-cell",style:{color:"var(--text-faint)"},children:"Schedule"}),e.jsx("th",{className:"text-left px-4 py-3 text-xs font-medium uppercase hidden md:table-cell",style:{color:"var(--text-faint)"},children:"Last Run"}),e.jsx("th",{className:"text-right px-4 py-3 text-xs font-medium uppercase",style:{color:"var(--text-faint)"},children:"Actions"})]})}),e.jsx("tbody",{children:u.tasks.map(t=>e.jsxs("tr",{className:"transition-colors",style:{borderBottom:"1px solid var(--border)"},onMouseEnter:s=>s.currentTarget.style.background="var(--bg-surface-hover)",onMouseLeave:s=>s.currentTarget.style.background="transparent",children:[e.jsx("td",{className:"px-4 py-3",children:e.jsx(x,{status:t.enabled?y(t.id):"disabled"})}),e.jsxs("td",{className:"px-4 py-3",children:[e.jsx("p",{className:"text-sm",style:{color:"var(--text-primary)"},children:t.name}),e.jsx("p",{className:"text-xs",style:{color:"var(--text-faint)"},children:t.description})]}),e.jsx("td",{className:"px-4 py-3 hidden md:table-cell text-sm",style:{color:"var(--text-muted)"},children:j(t.schedule)}),e.jsx("td",{className:"px-4 py-3 hidden md:table-cell text-sm",style:{color:"var(--text-faint)"},children:v(t.id)}),e.jsx("td",{className:"px-4 py-3 text-right",children:e.jsx("button",{onClick:()=>f(t.id),className:"px-3 py-1 text-xs rounded-md transition-colors",style:{background:"var(--bg-surface-hover)",border:"1px solid var(--border-subtle)",color:"var(--text-secondary)"},children:"Run Now"})})]},t.id))})]})}),e.jsxs("div",{className:"rounded-xl p-5 mb-6",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsxs("button",{onClick:()=>p(!o),className:"flex items-center gap-2 w-full text-left",children:[e.jsx("span",{className:"text-sm",style:{color:"var(--text-muted)"},children:o?"▼":"▶"}),e.jsx("h3",{className:"font-medium",style:{color:"var(--text-secondary)"},children:"Dead Letter Queue"}),e.jsxs("span",{className:"text-xs",style:{color:"var(--text-faint)"},children:["(",a.dead_letter_queue.length,")"]})]}),o&&(a.dead_letter_queue.length===0?e.jsx("div",{className:"text-center py-6 text-sm mt-2",style:{color:"var(--text-muted)"},children:"No dead letters — all systems healthy"}):e.jsx("div",{className:"space-y-3 mt-3",children:a.dead_letter_queue.map((t,s)=>e.jsx("div",{className:"rounded-lg p-4",style:{background:"var(--danger-subtle)",border:"1px solid rgba(220, 38, 38, 0.2)"},children:e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",style:{color:"var(--danger)"},children:t.task_id}),e.jsx("p",{className:"text-xs mt-1",style:{color:"var(--text-muted)"},children:t.error}),e.jsxs("p",{className:"text-xs mt-1",style:{color:"var(--text-faint)"},children:[i(t.timestamp)," · ",t.attempts," attempts"]})]}),e.jsx("button",{onClick:()=>b(t.task_id),className:"px-3 py-1 text-xs rounded-md",style:{background:"var(--bg-surface-hover)",border:"1px solid var(--border-subtle)",color:"var(--text-secondary)"},children:"Retry"})]})},s))}))]}),e.jsxs("div",{className:"rounded-xl p-5",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsxs("button",{onClick:()=>h(!d),className:"flex items-center gap-2 w-full text-left",children:[e.jsx("span",{className:"text-sm",style:{color:"var(--text-muted)"},children:d?"▼":"▶"}),e.jsx("h3",{className:"font-medium",style:{color:"var(--text-secondary)"},children:"Execution History"})]}),d&&e.jsxs("div",{className:"mt-3",children:[a.execution_log.slice(-30).reverse().map((t,s)=>{var r;return e.jsxs("div",{className:"flex items-center gap-4 py-2",style:{borderBottom:"1px solid var(--border)"},children:[e.jsx("span",{className:"text-xs font-mono",style:{color:"var(--text-faint)"},children:(r=t.timestamp)==null?void 0:r.slice(11,16)}),e.jsx("span",{className:"text-sm flex-1",style:{color:"var(--text-secondary)"},children:t.task_id}),e.jsxs("span",{className:"text-xs font-mono",style:{color:"var(--text-faint)"},children:[t.duration_ms,"ms"]}),e.jsx(x,{status:t.status})]},s)}),a.execution_log.length===0&&e.jsx("p",{className:"text-sm py-4 text-center",style:{color:"var(--text-muted)"},children:"No executions yet."})]})]})]})}export{g as CronStatus};
1
+ import{r as n,j as e,S as x,a as j,b as i}from"./index-BXtj3DyS.js";function g({data:m}){const{cronManifest:u,cronState:a,client:l}=m,[o,p]=n.useState(!0),[d,h]=n.useState(!1),y=t=>{if(a.dead_letter_queue.some(r=>r.task_id===t))return"failed";const s=a.execution_log.filter(r=>r.task_id===t).sort((r,c)=>c.timestamp.localeCompare(r.timestamp))[0];return(s==null?void 0:s.status)||"ok"},v=t=>{const s=a.execution_log.filter(r=>r.task_id===t).sort((r,c)=>c.timestamp.localeCompare(r.timestamp))[0];return s?i(s.timestamp):"never"},f=t=>{l==null||l.send({type:"trigger_task",task_id:t})},b=t=>{l==null||l.send({type:"retry_dead_letter",task_id:t})};return e.jsxs("div",{children:[e.jsx("div",{className:"rounded-xl overflow-hidden mb-6",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{children:e.jsxs("tr",{style:{borderBottom:"1px solid var(--border)"},children:[e.jsx("th",{className:"text-left px-4 py-3 text-xs font-medium uppercase",style:{color:"var(--text-faint)"},children:"Status"}),e.jsx("th",{className:"text-left px-4 py-3 text-xs font-medium uppercase",style:{color:"var(--text-faint)"},children:"Task"}),e.jsx("th",{className:"text-left px-4 py-3 text-xs font-medium uppercase hidden md:table-cell",style:{color:"var(--text-faint)"},children:"Schedule"}),e.jsx("th",{className:"text-left px-4 py-3 text-xs font-medium uppercase hidden md:table-cell",style:{color:"var(--text-faint)"},children:"Last Run"}),e.jsx("th",{className:"text-right px-4 py-3 text-xs font-medium uppercase",style:{color:"var(--text-faint)"},children:"Actions"})]})}),e.jsx("tbody",{children:u.tasks.map(t=>e.jsxs("tr",{className:"transition-colors",style:{borderBottom:"1px solid var(--border)"},onMouseEnter:s=>s.currentTarget.style.background="var(--bg-surface-hover)",onMouseLeave:s=>s.currentTarget.style.background="transparent",children:[e.jsx("td",{className:"px-4 py-3",children:e.jsx(x,{status:t.enabled?y(t.id):"disabled"})}),e.jsxs("td",{className:"px-4 py-3",children:[e.jsx("p",{className:"text-sm",style:{color:"var(--text-primary)"},children:t.name}),e.jsx("p",{className:"text-xs",style:{color:"var(--text-faint)"},children:t.description})]}),e.jsx("td",{className:"px-4 py-3 hidden md:table-cell text-sm",style:{color:"var(--text-muted)"},children:j(t.schedule)}),e.jsx("td",{className:"px-4 py-3 hidden md:table-cell text-sm",style:{color:"var(--text-faint)"},children:v(t.id)}),e.jsx("td",{className:"px-4 py-3 text-right",children:e.jsx("button",{onClick:()=>f(t.id),className:"px-3 py-1 text-xs rounded-md transition-colors",style:{background:"var(--bg-surface-hover)",border:"1px solid var(--border-subtle)",color:"var(--text-secondary)"},children:"Run Now"})})]},t.id))})]})}),e.jsxs("div",{className:"rounded-xl p-5 mb-6",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsxs("button",{onClick:()=>p(!o),className:"flex items-center gap-2 w-full text-left",children:[e.jsx("span",{className:"text-sm",style:{color:"var(--text-muted)"},children:o?"▼":"▶"}),e.jsx("h3",{className:"font-medium",style:{color:"var(--text-secondary)"},children:"Dead Letter Queue"}),e.jsxs("span",{className:"text-xs",style:{color:"var(--text-faint)"},children:["(",a.dead_letter_queue.length,")"]})]}),o&&(a.dead_letter_queue.length===0?e.jsx("div",{className:"text-center py-6 text-sm mt-2",style:{color:"var(--text-muted)"},children:"No dead letters — all systems healthy"}):e.jsx("div",{className:"space-y-3 mt-3",children:a.dead_letter_queue.map((t,s)=>e.jsx("div",{className:"rounded-lg p-4",style:{background:"var(--danger-subtle)",border:"1px solid rgba(220, 38, 38, 0.2)"},children:e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",style:{color:"var(--danger)"},children:t.task_id}),e.jsx("p",{className:"text-xs mt-1",style:{color:"var(--text-muted)"},children:t.error}),e.jsxs("p",{className:"text-xs mt-1",style:{color:"var(--text-faint)"},children:[i(t.timestamp)," · ",t.attempts," attempts"]})]}),e.jsx("button",{onClick:()=>b(t.task_id),className:"px-3 py-1 text-xs rounded-md",style:{background:"var(--bg-surface-hover)",border:"1px solid var(--border-subtle)",color:"var(--text-secondary)"},children:"Retry"})]})},s))}))]}),e.jsxs("div",{className:"rounded-xl p-5",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsxs("button",{onClick:()=>h(!d),className:"flex items-center gap-2 w-full text-left",children:[e.jsx("span",{className:"text-sm",style:{color:"var(--text-muted)"},children:d?"▼":"▶"}),e.jsx("h3",{className:"font-medium",style:{color:"var(--text-secondary)"},children:"Execution History"})]}),d&&e.jsxs("div",{className:"mt-3",children:[a.execution_log.slice(-30).reverse().map((t,s)=>{var r;return e.jsxs("div",{className:"flex items-center gap-4 py-2",style:{borderBottom:"1px solid var(--border)"},children:[e.jsx("span",{className:"text-xs font-mono",style:{color:"var(--text-faint)"},children:(r=t.timestamp)==null?void 0:r.slice(11,16)}),e.jsx("span",{className:"text-sm flex-1",style:{color:"var(--text-secondary)"},children:t.task_id}),e.jsxs("span",{className:"text-xs font-mono",style:{color:"var(--text-faint)"},children:[t.duration_ms,"ms"]}),e.jsx(x,{status:t.status})]},s)}),a.execution_log.length===0&&e.jsx("p",{className:"text-sm py-4 text-center",style:{color:"var(--text-muted)"},children:"No executions yet."})]})]})]})}export{g as CronStatus};
@@ -1 +1 @@
1
- import{j as e}from"./index-PYeNGjkN.js";function n({data:a}){const{designqcReport:s}=a,r=s&&s.captures&&s.captures.length>0;return e.jsxs("div",{children:[e.jsxs("div",{className:"rounded-xl p-5 mb-6",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsx("h3",{className:"font-medium mb-3",style:{color:"var(--text-secondary)"},children:"How Design QC Works"}),e.jsxs("div",{className:"space-y-2 text-sm",style:{color:"var(--text-muted)"},children:[e.jsxs("p",{children:["1. Run ",e.jsx("code",{className:"px-1.5 py-0.5 rounded text-xs",style:{background:"var(--bg-base)"},children:"openwolf designqc --url http://localhost:3000"})]}),e.jsx("p",{children:"2. OpenWolf captures compressed screenshots of your app"}),e.jsx("p",{children:"3. In your Claude Code session, ask Claude to evaluate the screenshots:"}),e.jsx("p",{className:"pl-4 italic",children:'"Read the screenshots in .wolf/designqc-captures/ and evaluate the design"'}),e.jsx("p",{children:"4. Claude sees the images, evaluates design, and can fix issues right in your session"})]})]}),e.jsxs("div",{className:"rounded-xl p-5",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsx("h3",{className:"font-medium mb-3",style:{color:"var(--text-secondary)"},children:"Last Capture"}),r?e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex gap-4 text-sm mb-3",children:[e.jsxs("span",{style:{color:"var(--text-faint)"},children:["Captured: ",s.captured_at||"—"]}),e.jsxs("span",{style:{color:"var(--text-faint)"},children:["Size: ",s.total_size_kb||0,"KB"]}),e.jsxs("span",{style:{color:"var(--text-faint)"},children:["Est. tokens: ~",s.estimated_tokens||0]})]}),s.captures.map((t,l)=>e.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 rounded-lg",style:{background:"var(--bg-base)"},children:[e.jsx("span",{className:"text-sm",style:{color:"var(--text-primary)"},children:t.file}),e.jsxs("span",{className:"text-xs",style:{color:"var(--text-faint)"},children:[t.viewport," · ",t.route]})]},l))]}):e.jsx("div",{className:"text-center py-8",children:e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"No screenshots captured yet."})})]})]})}export{n as DesignQC};
1
+ import{j as e}from"./index-BXtj3DyS.js";function n({data:a}){const{designqcReport:s}=a,r=s&&s.captures&&s.captures.length>0;return e.jsxs("div",{children:[e.jsxs("div",{className:"rounded-xl p-5 mb-6",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsx("h3",{className:"font-medium mb-3",style:{color:"var(--text-secondary)"},children:"How Design QC Works"}),e.jsxs("div",{className:"space-y-2 text-sm",style:{color:"var(--text-muted)"},children:[e.jsxs("p",{children:["1. Run ",e.jsx("code",{className:"px-1.5 py-0.5 rounded text-xs",style:{background:"var(--bg-base)"},children:"openwolf designqc --url http://localhost:3000"})]}),e.jsx("p",{children:"2. OpenWolf captures compressed screenshots of your app"}),e.jsx("p",{children:"3. In your Claude Code session, ask Claude to evaluate the screenshots:"}),e.jsx("p",{className:"pl-4 italic",children:'"Read the screenshots in .wolf/designqc-captures/ and evaluate the design"'}),e.jsx("p",{children:"4. Claude sees the images, evaluates design, and can fix issues right in your session"})]})]}),e.jsxs("div",{className:"rounded-xl p-5",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsx("h3",{className:"font-medium mb-3",style:{color:"var(--text-secondary)"},children:"Last Capture"}),r?e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex gap-4 text-sm mb-3",children:[e.jsxs("span",{style:{color:"var(--text-faint)"},children:["Captured: ",s.captured_at||"—"]}),e.jsxs("span",{style:{color:"var(--text-faint)"},children:["Size: ",s.total_size_kb||0,"KB"]}),e.jsxs("span",{style:{color:"var(--text-faint)"},children:["Est. tokens: ~",s.estimated_tokens||0]})]}),s.captures.map((t,l)=>e.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 rounded-lg",style:{background:"var(--bg-base)"},children:[e.jsx("span",{className:"text-sm",style:{color:"var(--text-primary)"},children:t.file}),e.jsxs("span",{className:"text-xs",style:{color:"var(--text-faint)"},children:[t.viewport," · ",t.route]})]},l))]}):e.jsx("div",{className:"text-center py-8",children:e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"No screenshots captured yet."})})]})]})}export{n as DesignQC};
@@ -1 +1 @@
1
- import{r as i,j as e}from"./index-PYeNGjkN.js";function f({data:m}){const{memory:c}=m,[p,h]=i.useState(0),[l,u]=i.useState(""),d=l?c.filter(s=>s.entries.some(r=>r.action.toLowerCase().includes(l.toLowerCase())||r.files.toLowerCase().includes(l.toLowerCase()))):c;return e.jsxs("div",{children:[e.jsx("div",{className:"flex items-center gap-3 mb-4",children:e.jsx("input",{type:"text",placeholder:"Search memory...",value:l,onChange:s=>u(s.target.value),className:"flex-1 rounded-lg px-3 py-2 text-sm focus:outline-none",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-primary)"}})}),d.length===0?e.jsx("div",{className:"text-center py-12",style:{color:"var(--text-muted)"},children:"No sessions found."}):e.jsx("div",{className:"space-y-3",children:d.map((s,r)=>{const o=p===r,x=s.entries.reduce((t,n)=>{const a=parseInt(n.tokens.replace(/[^0-9]/g,""))||0;return t+a},0);return e.jsxs("div",{className:"rounded-xl overflow-hidden",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsxs("button",{onClick:()=>h(o?-1:r),className:"w-full flex items-center justify-between px-5 py-3 transition-colors",onMouseEnter:t=>t.currentTarget.style.background="var(--bg-surface-hover)",onMouseLeave:t=>t.currentTarget.style.background="transparent",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-sm",style:{color:"var(--text-faint)"},children:o?"▼":"▶"}),e.jsxs("span",{className:"text-sm font-medium",style:{color:"var(--text-primary)"},children:[s.date," ",s.time]}),e.jsxs("span",{className:"text-xs",style:{color:"var(--text-faint)"},children:[s.entries.length," actions"]})]}),x>0&&e.jsxs("span",{className:"text-xs font-mono",style:{color:"var(--text-faint)"},children:["~",x," tok"]})]}),o&&s.entries.length>0&&e.jsx("div",{style:{borderTop:"1px solid var(--border)"},children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"text-xs uppercase",style:{color:"var(--text-faint)"},children:[e.jsx("th",{className:"text-left px-4 py-2 w-16",children:"Time"}),e.jsx("th",{className:"text-left px-4 py-2",children:"Action"}),e.jsx("th",{className:"text-left px-4 py-2 hidden md:table-cell",children:"Files"}),e.jsx("th",{className:"text-left px-4 py-2 hidden md:table-cell",children:"Outcome"}),e.jsx("th",{className:"text-right px-4 py-2 w-20",children:"Tokens"})]})}),e.jsx("tbody",{children:s.entries.map((t,n)=>e.jsxs("tr",{style:{borderBottom:"1px solid var(--border)"},onMouseEnter:a=>a.currentTarget.style.background="var(--bg-surface-hover)",onMouseLeave:a=>a.currentTarget.style.background="transparent",children:[e.jsx("td",{className:"px-4 py-2 text-xs font-mono",style:{color:"var(--text-faint)"},children:t.time}),e.jsx("td",{className:"px-4 py-2 text-sm",style:{color:"var(--text-secondary)"},children:t.action}),e.jsx("td",{className:"px-4 py-2 text-sm hidden md:table-cell",style:{color:"var(--text-muted)"},children:t.files}),e.jsx("td",{className:"px-4 py-2 text-sm hidden md:table-cell",style:{color:"var(--text-muted)"},children:t.outcome}),e.jsx("td",{className:"px-4 py-2 text-xs font-mono text-right",style:{color:"var(--text-faint)"},children:t.tokens})]},n))})]})})]},r)})})]})}export{f as MemoryViewer};
1
+ import{r as i,j as e}from"./index-BXtj3DyS.js";function f({data:m}){const{memory:c}=m,[p,h]=i.useState(0),[l,u]=i.useState(""),d=l?c.filter(s=>s.entries.some(r=>r.action.toLowerCase().includes(l.toLowerCase())||r.files.toLowerCase().includes(l.toLowerCase()))):c;return e.jsxs("div",{children:[e.jsx("div",{className:"flex items-center gap-3 mb-4",children:e.jsx("input",{type:"text",placeholder:"Search memory...",value:l,onChange:s=>u(s.target.value),className:"flex-1 rounded-lg px-3 py-2 text-sm focus:outline-none",style:{background:"var(--bg-surface)",border:"1px solid var(--border)",color:"var(--text-primary)"}})}),d.length===0?e.jsx("div",{className:"text-center py-12",style:{color:"var(--text-muted)"},children:"No sessions found."}):e.jsx("div",{className:"space-y-3",children:d.map((s,r)=>{const o=p===r,x=s.entries.reduce((t,n)=>{const a=parseInt(n.tokens.replace(/[^0-9]/g,""))||0;return t+a},0);return e.jsxs("div",{className:"rounded-xl overflow-hidden",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsxs("button",{onClick:()=>h(o?-1:r),className:"w-full flex items-center justify-between px-5 py-3 transition-colors",onMouseEnter:t=>t.currentTarget.style.background="var(--bg-surface-hover)",onMouseLeave:t=>t.currentTarget.style.background="transparent",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-sm",style:{color:"var(--text-faint)"},children:o?"▼":"▶"}),e.jsxs("span",{className:"text-sm font-medium",style:{color:"var(--text-primary)"},children:[s.date," ",s.time]}),e.jsxs("span",{className:"text-xs",style:{color:"var(--text-faint)"},children:[s.entries.length," actions"]})]}),x>0&&e.jsxs("span",{className:"text-xs font-mono",style:{color:"var(--text-faint)"},children:["~",x," tok"]})]}),o&&s.entries.length>0&&e.jsx("div",{style:{borderTop:"1px solid var(--border)"},children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"text-xs uppercase",style:{color:"var(--text-faint)"},children:[e.jsx("th",{className:"text-left px-4 py-2 w-16",children:"Time"}),e.jsx("th",{className:"text-left px-4 py-2",children:"Action"}),e.jsx("th",{className:"text-left px-4 py-2 hidden md:table-cell",children:"Files"}),e.jsx("th",{className:"text-left px-4 py-2 hidden md:table-cell",children:"Outcome"}),e.jsx("th",{className:"text-right px-4 py-2 w-20",children:"Tokens"})]})}),e.jsx("tbody",{children:s.entries.map((t,n)=>e.jsxs("tr",{style:{borderBottom:"1px solid var(--border)"},onMouseEnter:a=>a.currentTarget.style.background="var(--bg-surface-hover)",onMouseLeave:a=>a.currentTarget.style.background="transparent",children:[e.jsx("td",{className:"px-4 py-2 text-xs font-mono",style:{color:"var(--text-faint)"},children:t.time}),e.jsx("td",{className:"px-4 py-2 text-sm",style:{color:"var(--text-secondary)"},children:t.action}),e.jsx("td",{className:"px-4 py-2 text-sm hidden md:table-cell",style:{color:"var(--text-muted)"},children:t.files}),e.jsx("td",{className:"px-4 py-2 text-sm hidden md:table-cell",style:{color:"var(--text-muted)"},children:t.outcome}),e.jsx("td",{className:"px-4 py-2 text-xs font-mono text-right",style:{color:"var(--text-faint)"},children:t.tokens})]},n))})]})})]},r)})})]})}export{f as MemoryViewer};
@@ -1 +1 @@
1
- import{j as e,S as p,f as h}from"./index-PYeNGjkN.js";function b({data:d}){const{identity:i,health:t,tokenLedger:n,anatomy:m,memory:r,project:l}=d,s=n.lifetime,x=l.name||i.name,o=l.description||"";return e.jsxs("div",{children:[e.jsxs("div",{className:"rounded-xl p-6 mb-6",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsx("h2",{className:"text-3xl font-bold",style:{color:"var(--text-primary)"},children:x}),o&&e.jsx("p",{className:"mt-1",style:{color:"var(--text-muted)"},children:o}),e.jsxs("div",{className:"flex items-center gap-4 mt-3",children:[e.jsx(p,{status:t.status}),t.uptime_seconds>0&&e.jsxs("span",{className:"text-xs",style:{color:"var(--text-faint)"},children:["Uptime: ",Math.floor(t.uptime_seconds/3600),"h ",Math.floor(t.uptime_seconds%3600/60),"m"]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-6",children:[e.jsxs("div",{className:"rounded-xl p-5",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"Files Tracked"}),e.jsx("p",{className:"text-2xl font-bold mt-1",style:{color:"var(--text-primary)"},children:m.metadata.files})]}),e.jsxs("div",{className:"rounded-xl p-5",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"Sessions"}),e.jsx("p",{className:"text-2xl font-bold mt-1",style:{color:"var(--text-primary)"},children:s.total_sessions})]}),e.jsxs("div",{className:"rounded-xl p-5",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"Tokens Saved"}),e.jsxs("p",{className:"text-2xl font-bold mt-1",style:{color:"var(--accent)"},children:["~",h(s.estimated_savings_vs_bare_cli)]}),s.total_tokens_estimated>0&&e.jsxs("p",{className:"text-xs mt-1",style:{color:"var(--text-faint)"},children:[Math.round(s.estimated_savings_vs_bare_cli/(s.total_tokens_estimated+s.estimated_savings_vs_bare_cli)*100),"% savings"]})]})]}),e.jsxs("div",{className:"rounded-xl p-5",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsx("h3",{className:"font-medium mb-3",style:{color:"var(--text-secondary)"},children:"Recent Activity"}),r.length===0?e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"No activity yet. Start a Claude Code session to see activity here."}):e.jsx("div",{className:"space-y-2",children:r.slice(0,3).flatMap(c=>c.entries.slice(0,5).map((a,v)=>e.jsxs("div",{className:"flex items-center gap-3 py-2",style:{borderBottom:"1px solid var(--border)"},children:[e.jsx("span",{className:"text-xs font-mono w-12",style:{color:"var(--text-faint)"},children:a.time}),e.jsx("span",{className:"text-sm flex-1",style:{color:"var(--text-secondary)"},children:a.action}),e.jsx("span",{className:"text-xs font-mono",style:{color:"var(--text-faint)"},children:a.tokens})]},`${c.date}-${v}`))).slice(0,5)})]})]})}export{b as ProjectOverview};
1
+ import{j as e,S as p,f as h}from"./index-BXtj3DyS.js";function b({data:d}){const{identity:i,health:t,tokenLedger:n,anatomy:m,memory:r,project:l}=d,s=n.lifetime,x=l.name||i.name,o=l.description||"";return e.jsxs("div",{children:[e.jsxs("div",{className:"rounded-xl p-6 mb-6",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsx("h2",{className:"text-3xl font-bold",style:{color:"var(--text-primary)"},children:x}),o&&e.jsx("p",{className:"mt-1",style:{color:"var(--text-muted)"},children:o}),e.jsxs("div",{className:"flex items-center gap-4 mt-3",children:[e.jsx(p,{status:t.status}),t.uptime_seconds>0&&e.jsxs("span",{className:"text-xs",style:{color:"var(--text-faint)"},children:["Uptime: ",Math.floor(t.uptime_seconds/3600),"h ",Math.floor(t.uptime_seconds%3600/60),"m"]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-6",children:[e.jsxs("div",{className:"rounded-xl p-5",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"Files Tracked"}),e.jsx("p",{className:"text-2xl font-bold mt-1",style:{color:"var(--text-primary)"},children:m.metadata.files})]}),e.jsxs("div",{className:"rounded-xl p-5",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"Sessions"}),e.jsx("p",{className:"text-2xl font-bold mt-1",style:{color:"var(--text-primary)"},children:s.total_sessions})]}),e.jsxs("div",{className:"rounded-xl p-5",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"Tokens Saved"}),e.jsxs("p",{className:"text-2xl font-bold mt-1",style:{color:"var(--accent)"},children:["~",h(s.estimated_savings_vs_bare_cli)]}),s.total_tokens_estimated>0&&e.jsxs("p",{className:"text-xs mt-1",style:{color:"var(--text-faint)"},children:[Math.round(s.estimated_savings_vs_bare_cli/(s.total_tokens_estimated+s.estimated_savings_vs_bare_cli)*100),"% savings"]})]})]}),e.jsxs("div",{className:"rounded-xl p-5",style:{background:"var(--bg-surface)",border:"1px solid var(--border)"},children:[e.jsx("h3",{className:"font-medium mb-3",style:{color:"var(--text-secondary)"},children:"Recent Activity"}),r.length===0?e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"No activity yet. Start a Claude Code session to see activity here."}):e.jsx("div",{className:"space-y-2",children:r.slice(0,3).flatMap(c=>c.entries.slice(0,5).map((a,v)=>e.jsxs("div",{className:"flex items-center gap-3 py-2",style:{borderBottom:"1px solid var(--border)"},children:[e.jsx("span",{className:"text-xs font-mono w-12",style:{color:"var(--text-faint)"},children:a.time}),e.jsx("span",{className:"text-sm flex-1",style:{color:"var(--text-secondary)"},children:a.action}),e.jsx("span",{className:"text-xs font-mono",style:{color:"var(--text-faint)"},children:a.tokens})]},`${c.date}-${v}`))).slice(0,5)})]})]})}export{b as ProjectOverview};
@@ -1,4 +1,4 @@
1
- import{c as ni,g as ce,r as N,R as P,j as Q,f as Ga}from"./index-PYeNGjkN.js";function tb(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=tb(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function te(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=tb(e))&&(n&&(n+=" "),n+=t);return n}var Ka,gh;function Re(){if(gh)return Ka;gh=1;var e=Array.isArray;return Ka=e,Ka}var Va,bh;function rb(){if(bh)return Va;bh=1;var e=typeof ni=="object"&&ni&&ni.Object===Object&&ni;return Va=e,Va}var Xa,xh;function ut(){if(xh)return Xa;xh=1;var e=rb(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Xa=r,Xa}var Ya,wh;function Xn(){if(wh)return Ya;wh=1;var e=ut(),t=e.Symbol;return Ya=t,Ya}var Za,Oh;function fw(){if(Oh)return Za;Oh=1;var e=Xn(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),c=o[i];try{o[i]=void 0;var s=!0}catch{}var f=n.call(o);return s&&(u?o[i]=c:delete o[i]),f}return Za=a,Za}var Ja,_h;function hw(){if(_h)return Ja;_h=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Ja=r,Ja}var Qa,Sh;function xt(){if(Sh)return Qa;Sh=1;var e=Xn(),t=fw(),r=hw(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?t(u):r(u)}return Qa=o,Qa}var eo,Ah;function wt(){if(Ah)return eo;Ah=1;function e(t){return t!=null&&typeof t=="object"}return eo=e,eo}var to,Ph;function Lr(){if(Ph)return to;Ph=1;var e=xt(),t=wt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return to=n,to}var ro,Th;function ff(){if(Th)return ro;Th=1;var e=Re(),t=Lr(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return ro=i,ro}var no,Eh;function Ct(){if(Eh)return no;Eh=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return no=e,no}var io,jh;function hf(){if(jh)return io;jh=1;var e=xt(),t=Ct(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var c=e(u);return c==n||c==i||c==r||c==a}return io=o,io}var ao,Mh;function pw(){if(Mh)return ao;Mh=1;var e=ut(),t=e["__core-js_shared__"];return ao=t,ao}var oo,Ch;function dw(){if(Ch)return oo;Ch=1;var e=pw(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return oo=r,oo}var uo,$h;function nb(){if($h)return uo;$h=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return uo=r,uo}var co,Ih;function vw(){if(Ih)return co;Ih=1;var e=hf(),t=dw(),r=Ct(),n=nb(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,c=o.toString,s=u.hasOwnProperty,f=RegExp("^"+c.call(s).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(h){if(!r(h)||t(h))return!1;var d=e(h)?f:a;return d.test(n(h))}return co=l,co}var so,kh;function yw(){if(kh)return so;kh=1;function e(t,r){return t==null?void 0:t[r]}return so=e,so}var lo,Rh;function er(){if(Rh)return lo;Rh=1;var e=vw(),t=yw();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return lo=r,lo}var fo,Dh;function va(){if(Dh)return fo;Dh=1;var e=er(),t=e(Object,"create");return fo=t,fo}var ho,Nh;function mw(){if(Nh)return ho;Nh=1;var e=va();function t(){this.__data__=e?e(null):{},this.size=0}return ho=t,ho}var po,qh;function gw(){if(qh)return po;qh=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return po=e,po}var vo,Bh;function bw(){if(Bh)return vo;Bh=1;var e=va(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return n.call(o,a)?o[a]:void 0}return vo=i,vo}var yo,Lh;function xw(){if(Lh)return yo;Lh=1;var e=va(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return yo=n,yo}var mo,Fh;function ww(){if(Fh)return mo;Fh=1;var e=va(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return mo=r,mo}var go,zh;function Ow(){if(zh)return go;zh=1;var e=mw(),t=gw(),r=bw(),n=xw(),i=ww();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,go=a,go}var bo,Wh;function _w(){if(Wh)return bo;Wh=1;function e(){this.__data__=[],this.size=0}return bo=e,bo}var xo,Uh;function pf(){if(Uh)return xo;Uh=1;function e(t,r){return t===r||t!==t&&r!==r}return xo=e,xo}var wo,Hh;function ya(){if(Hh)return wo;Hh=1;var e=pf();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return wo=t,wo}var Oo,Gh;function Sw(){if(Gh)return Oo;Gh=1;var e=ya(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():r.call(a,o,1),--this.size,!0}return Oo=n,Oo}var _o,Kh;function Aw(){if(Kh)return _o;Kh=1;var e=ya();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return _o=t,_o}var So,Vh;function Pw(){if(Vh)return So;Vh=1;var e=ya();function t(r){return e(this.__data__,r)>-1}return So=t,So}var Ao,Xh;function Tw(){if(Xh)return Ao;Xh=1;var e=ya();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Ao=t,Ao}var Po,Yh;function ma(){if(Yh)return Po;Yh=1;var e=_w(),t=Sw(),r=Aw(),n=Pw(),i=Tw();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Po=a,Po}var To,Zh;function df(){if(Zh)return To;Zh=1;var e=er(),t=ut(),r=e(t,"Map");return To=r,To}var Eo,Jh;function Ew(){if(Jh)return Eo;Jh=1;var e=Ow(),t=ma(),r=df();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Eo=n,Eo}var jo,Qh;function jw(){if(Qh)return jo;Qh=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return jo=e,jo}var Mo,ep;function ga(){if(ep)return Mo;ep=1;var e=jw();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Mo=t,Mo}var Co,tp;function Mw(){if(tp)return Co;tp=1;var e=ga();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Co=t,Co}var $o,rp;function Cw(){if(rp)return $o;rp=1;var e=ga();function t(r){return e(this,r).get(r)}return $o=t,$o}var Io,np;function $w(){if(np)return Io;np=1;var e=ga();function t(r){return e(this,r).has(r)}return Io=t,Io}var ko,ip;function Iw(){if(ip)return ko;ip=1;var e=ga();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return ko=t,ko}var Ro,ap;function vf(){if(ap)return Ro;ap=1;var e=Ew(),t=Mw(),r=Cw(),n=$w(),i=Iw();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Ro=a,Ro}var Do,op;function ib(){if(op)return Do;op=1;var e=vf(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],c=a.cache;if(c.has(u))return c.get(u);var s=n.apply(this,o);return a.cache=c.set(u,s)||c,s};return a.cache=new(r.Cache||e),a}return r.Cache=e,Do=r,Do}var No,up;function kw(){if(up)return No;up=1;var e=ib(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return No=r,No}var qo,cp;function Rw(){if(cp)return qo;cp=1;var e=kw(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,c,s){a.push(c?s.replace(r,"$1"):u||o)}),a});return qo=n,qo}var Bo,sp;function yf(){if(sp)return Bo;sp=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return Bo=e,Bo}var Lo,lp;function Dw(){if(lp)return Lo;lp=1;var e=Xn(),t=yf(),r=Re(),n=Lr(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var c=u+"";return c=="0"&&1/u==-1/0?"-0":c}return Lo=o,Lo}var Fo,fp;function ab(){if(fp)return Fo;fp=1;var e=Dw();function t(r){return r==null?"":e(r)}return Fo=t,Fo}var zo,hp;function ob(){if(hp)return zo;hp=1;var e=Re(),t=ff(),r=Rw(),n=ab();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return zo=i,zo}var Wo,pp;function ba(){if(pp)return Wo;pp=1;var e=Lr();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Wo=t,Wo}var Uo,dp;function mf(){if(dp)return Uo;dp=1;var e=ob(),t=ba();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return Uo=r,Uo}var Ho,vp;function ub(){if(vp)return Ho;vp=1;var e=mf();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Ho=t,Ho}var Nw=ub();const Ge=ce(Nw);var Go,yp;function qw(){if(yp)return Go;yp=1;function e(t){return t==null}return Go=e,Go}var Bw=qw();const J=ce(Bw);var Ko,mp;function Lw(){if(mp)return Ko;mp=1;var e=xt(),t=Re(),r=wt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Ko=i,Ko}var Fw=Lw();const Xt=ce(Fw);var zw=hf();const X=ce(zw);var Ww=Ct();const Fr=ce(Ww);var Vo={exports:{}},ne={};/**
1
+ import{c as ni,g as ce,r as N,R as P,j as Q,f as Ga}from"./index-BXtj3DyS.js";function tb(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=tb(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function te(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=tb(e))&&(n&&(n+=" "),n+=t);return n}var Ka,gh;function Re(){if(gh)return Ka;gh=1;var e=Array.isArray;return Ka=e,Ka}var Va,bh;function rb(){if(bh)return Va;bh=1;var e=typeof ni=="object"&&ni&&ni.Object===Object&&ni;return Va=e,Va}var Xa,xh;function ut(){if(xh)return Xa;xh=1;var e=rb(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Xa=r,Xa}var Ya,wh;function Xn(){if(wh)return Ya;wh=1;var e=ut(),t=e.Symbol;return Ya=t,Ya}var Za,Oh;function fw(){if(Oh)return Za;Oh=1;var e=Xn(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),c=o[i];try{o[i]=void 0;var s=!0}catch{}var f=n.call(o);return s&&(u?o[i]=c:delete o[i]),f}return Za=a,Za}var Ja,_h;function hw(){if(_h)return Ja;_h=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Ja=r,Ja}var Qa,Sh;function xt(){if(Sh)return Qa;Sh=1;var e=Xn(),t=fw(),r=hw(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?t(u):r(u)}return Qa=o,Qa}var eo,Ah;function wt(){if(Ah)return eo;Ah=1;function e(t){return t!=null&&typeof t=="object"}return eo=e,eo}var to,Ph;function Lr(){if(Ph)return to;Ph=1;var e=xt(),t=wt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return to=n,to}var ro,Th;function ff(){if(Th)return ro;Th=1;var e=Re(),t=Lr(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return ro=i,ro}var no,Eh;function Ct(){if(Eh)return no;Eh=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return no=e,no}var io,jh;function hf(){if(jh)return io;jh=1;var e=xt(),t=Ct(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var c=e(u);return c==n||c==i||c==r||c==a}return io=o,io}var ao,Mh;function pw(){if(Mh)return ao;Mh=1;var e=ut(),t=e["__core-js_shared__"];return ao=t,ao}var oo,Ch;function dw(){if(Ch)return oo;Ch=1;var e=pw(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return oo=r,oo}var uo,$h;function nb(){if($h)return uo;$h=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return uo=r,uo}var co,Ih;function vw(){if(Ih)return co;Ih=1;var e=hf(),t=dw(),r=Ct(),n=nb(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,c=o.toString,s=u.hasOwnProperty,f=RegExp("^"+c.call(s).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(h){if(!r(h)||t(h))return!1;var d=e(h)?f:a;return d.test(n(h))}return co=l,co}var so,kh;function yw(){if(kh)return so;kh=1;function e(t,r){return t==null?void 0:t[r]}return so=e,so}var lo,Rh;function er(){if(Rh)return lo;Rh=1;var e=vw(),t=yw();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return lo=r,lo}var fo,Dh;function va(){if(Dh)return fo;Dh=1;var e=er(),t=e(Object,"create");return fo=t,fo}var ho,Nh;function mw(){if(Nh)return ho;Nh=1;var e=va();function t(){this.__data__=e?e(null):{},this.size=0}return ho=t,ho}var po,qh;function gw(){if(qh)return po;qh=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return po=e,po}var vo,Bh;function bw(){if(Bh)return vo;Bh=1;var e=va(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return n.call(o,a)?o[a]:void 0}return vo=i,vo}var yo,Lh;function xw(){if(Lh)return yo;Lh=1;var e=va(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return yo=n,yo}var mo,Fh;function ww(){if(Fh)return mo;Fh=1;var e=va(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return mo=r,mo}var go,zh;function Ow(){if(zh)return go;zh=1;var e=mw(),t=gw(),r=bw(),n=xw(),i=ww();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,go=a,go}var bo,Wh;function _w(){if(Wh)return bo;Wh=1;function e(){this.__data__=[],this.size=0}return bo=e,bo}var xo,Uh;function pf(){if(Uh)return xo;Uh=1;function e(t,r){return t===r||t!==t&&r!==r}return xo=e,xo}var wo,Hh;function ya(){if(Hh)return wo;Hh=1;var e=pf();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return wo=t,wo}var Oo,Gh;function Sw(){if(Gh)return Oo;Gh=1;var e=ya(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():r.call(a,o,1),--this.size,!0}return Oo=n,Oo}var _o,Kh;function Aw(){if(Kh)return _o;Kh=1;var e=ya();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return _o=t,_o}var So,Vh;function Pw(){if(Vh)return So;Vh=1;var e=ya();function t(r){return e(this.__data__,r)>-1}return So=t,So}var Ao,Xh;function Tw(){if(Xh)return Ao;Xh=1;var e=ya();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Ao=t,Ao}var Po,Yh;function ma(){if(Yh)return Po;Yh=1;var e=_w(),t=Sw(),r=Aw(),n=Pw(),i=Tw();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Po=a,Po}var To,Zh;function df(){if(Zh)return To;Zh=1;var e=er(),t=ut(),r=e(t,"Map");return To=r,To}var Eo,Jh;function Ew(){if(Jh)return Eo;Jh=1;var e=Ow(),t=ma(),r=df();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Eo=n,Eo}var jo,Qh;function jw(){if(Qh)return jo;Qh=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return jo=e,jo}var Mo,ep;function ga(){if(ep)return Mo;ep=1;var e=jw();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Mo=t,Mo}var Co,tp;function Mw(){if(tp)return Co;tp=1;var e=ga();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Co=t,Co}var $o,rp;function Cw(){if(rp)return $o;rp=1;var e=ga();function t(r){return e(this,r).get(r)}return $o=t,$o}var Io,np;function $w(){if(np)return Io;np=1;var e=ga();function t(r){return e(this,r).has(r)}return Io=t,Io}var ko,ip;function Iw(){if(ip)return ko;ip=1;var e=ga();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return ko=t,ko}var Ro,ap;function vf(){if(ap)return Ro;ap=1;var e=Ew(),t=Mw(),r=Cw(),n=$w(),i=Iw();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Ro=a,Ro}var Do,op;function ib(){if(op)return Do;op=1;var e=vf(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],c=a.cache;if(c.has(u))return c.get(u);var s=n.apply(this,o);return a.cache=c.set(u,s)||c,s};return a.cache=new(r.Cache||e),a}return r.Cache=e,Do=r,Do}var No,up;function kw(){if(up)return No;up=1;var e=ib(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return No=r,No}var qo,cp;function Rw(){if(cp)return qo;cp=1;var e=kw(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,c,s){a.push(c?s.replace(r,"$1"):u||o)}),a});return qo=n,qo}var Bo,sp;function yf(){if(sp)return Bo;sp=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return Bo=e,Bo}var Lo,lp;function Dw(){if(lp)return Lo;lp=1;var e=Xn(),t=yf(),r=Re(),n=Lr(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var c=u+"";return c=="0"&&1/u==-1/0?"-0":c}return Lo=o,Lo}var Fo,fp;function ab(){if(fp)return Fo;fp=1;var e=Dw();function t(r){return r==null?"":e(r)}return Fo=t,Fo}var zo,hp;function ob(){if(hp)return zo;hp=1;var e=Re(),t=ff(),r=Rw(),n=ab();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return zo=i,zo}var Wo,pp;function ba(){if(pp)return Wo;pp=1;var e=Lr();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Wo=t,Wo}var Uo,dp;function mf(){if(dp)return Uo;dp=1;var e=ob(),t=ba();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return Uo=r,Uo}var Ho,vp;function ub(){if(vp)return Ho;vp=1;var e=mf();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Ho=t,Ho}var Nw=ub();const Ge=ce(Nw);var Go,yp;function qw(){if(yp)return Go;yp=1;function e(t){return t==null}return Go=e,Go}var Bw=qw();const J=ce(Bw);var Ko,mp;function Lw(){if(mp)return Ko;mp=1;var e=xt(),t=Re(),r=wt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Ko=i,Ko}var Fw=Lw();const Xt=ce(Fw);var zw=hf();const X=ce(zw);var Ww=Ct();const Fr=ce(Ww);var Vo={exports:{}},ne={};/**
2
2
  * @license React
3
3
  * react-is.production.min.js
4
4
  *