lattice-orchestrator 0.13.0 → 1.0.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/dist/web/assets/{ActionQueuePrototype-7c-UvyKZ.js → ActionQueuePrototype-BhBcv2Tj.js} +1 -1
- package/dist/web/assets/{ArchivedCardPrototype-DxjGD6qd.js → ArchivedCardPrototype-Co-lT_Kc.js} +1 -1
- package/dist/web/assets/{ArtifactsExplorerPrototype-D7PcdJjI.js → ArtifactsExplorerPrototype-CjrPfFy4.js} +1 -1
- package/dist/web/assets/{AsciiAnimationsPrototype-DfEMxpK3.js → AsciiAnimationsPrototype-DPrUsQAb.js} +1 -1
- package/dist/web/assets/{AshIsometricArchPrototype-CaLytj-H.js → AshIsometricArchPrototype-CRq47oN3.js} +1 -1
- package/dist/web/assets/{AskQuestionVariantsPrototype-DPQ9YsoW.js → AskQuestionVariantsPrototype-DJjSnppK.js} +1 -1
- package/dist/web/assets/{BannerPrototype-BObpjA2K.js → BannerPrototype-pozRbI4v.js} +1 -1
- package/dist/web/assets/{CodexActivityIndicatorPrototype-CM_K6kGV.js → CodexActivityIndicatorPrototype-Dq0BGaeq.js} +1 -1
- package/dist/web/assets/{CodexThinkingActiveVariantsPrototype-CjJfPFxj.js → CodexThinkingActiveVariantsPrototype-B7uCvK7C.js} +1 -1
- package/dist/web/assets/{CodexThinkingPillPrototype-C3BaLxwF.js → CodexThinkingPillPrototype-C7QH-E7o.js} +1 -1
- package/dist/web/assets/{CodexThinkingPrototype-BXQv0K-9.js → CodexThinkingPrototype-CCCMPI6h.js} +1 -1
- package/dist/web/assets/{ComposerStatusInputPrototype-BRnR6R3W.js → ComposerStatusInputPrototype-8NJ2YpTi.js} +1 -1
- package/dist/web/assets/{DesignSystemPrototype-BpTy7zA-.js → DesignSystemPrototype-548_DEJF.js} +1 -1
- package/dist/web/assets/{DevNotesVariantsPrototype-Dtx-8kWi.js → DevNotesVariantsPrototype-BiA6MLfb.js} +1 -1
- package/dist/web/assets/{FaviconExportPrototype-CNV_LIgM.js → FaviconExportPrototype-TE5V4KBp.js} +1 -1
- package/dist/web/assets/{GeistPixelPrototype-DySrwiXn.js → GeistPixelPrototype-BUq4bmCc.js} +1 -1
- package/dist/web/assets/{HistoryWalkthroughPrototype-DQ4MnjmI.js → HistoryWalkthroughPrototype-TITznO1H.js} +1 -1
- package/dist/web/assets/{ImageModelComparisonPrototype-DfgY4Aun.js → ImageModelComparisonPrototype-DrzEiHaO.js} +1 -1
- package/dist/web/assets/{InlineWalkthroughPrototype-EBaN7X6t.js → InlineWalkthroughPrototype--7gluiv2.js} +1 -1
- package/dist/web/assets/{IsometricArchPrototype-DFwxD9sh.js → IsometricArchPrototype-7APMJciN.js} +1 -1
- package/dist/web/assets/{MarkButtonPrototype-BL4DP239.js → MarkButtonPrototype-DzZzD_mC.js} +1 -1
- package/dist/web/assets/{MenuStylesPrototype-DWd7xHZI.js → MenuStylesPrototype-DxKWbw1Q.js} +1 -1
- package/dist/web/assets/{NewSessionVariantsPrototype-DfsUXzsc.js → NewSessionVariantsPrototype-B2bMNTlk.js} +1 -1
- package/dist/web/assets/{PermissionPatternPickerPrototype-CzWDNdXa.js → PermissionPatternPickerPrototype-K2e7rO8b.js} +1 -1
- package/dist/web/assets/{PermissionPrototype-Bkdk9cW2.js → PermissionPrototype-CwXXAhn4.js} +1 -1
- package/dist/web/assets/{RecommendationCardsPrototype-y6FwbVMb.js → RecommendationCardsPrototype-BY5VKCYQ.js} +1 -1
- package/dist/web/assets/{RecommendationsPopoverPrototype-xpMbxHtm.js → RecommendationsPopoverPrototype-B9S_s255.js} +1 -1
- package/dist/web/assets/{ScopeHeaderPrototype-CyKC50DZ.js → ScopeHeaderPrototype-V02754m3.js} +1 -1
- package/dist/web/assets/{ScopeHeaderStylesPrototype-nSW8yCVM.js → ScopeHeaderStylesPrototype-DpgQMOdW.js} +1 -1
- package/dist/web/assets/{ScrollycodingPrototype-DAbwTGpm.js → ScrollycodingPrototype-BqSoM5ug.js} +1 -1
- package/dist/web/assets/{SessionCardPrototype-DPgaOmR8.js → SessionCardPrototype-Bu2jEIb1.js} +1 -1
- package/dist/web/assets/{SessionCardTitlePrototype-CQSh-oHd.js → SessionCardTitlePrototype-B1Uzn-Ul.js} +1 -1
- package/dist/web/assets/{SessionOrganizationModesPrototype-C-Zoard2.js → SessionOrganizationModesPrototype-Dp9fs_uw.js} +1 -1
- package/dist/web/assets/{SessionSkeletonVariantsPrototype-BYkVw2W4.js → SessionSkeletonVariantsPrototype-BGDjcWd7.js} +1 -1
- package/dist/web/assets/{SessionStartPrototype-hnRNYC8w.js → SessionStartPrototype-CD6yajpg.js} +1 -1
- package/dist/web/assets/{SmartMenuPrototype-CoW3mysJ.js → SmartMenuPrototype-CTitjidw.js} +1 -1
- package/dist/web/assets/{StellarisHomePrototype-DfVrwxrL.js → StellarisHomePrototype-CZD7GX-4.js} +1 -1
- package/dist/web/assets/{ThinkingBackgroundVariantsPrototype-DkKdW32y.js → ThinkingBackgroundVariantsPrototype-C6sH5U4X.js} +1 -1
- package/dist/web/assets/{TimelineCardPrototype-BpFnMjn-.js → TimelineCardPrototype-ClgPTrjk.js} +1 -1
- package/dist/web/assets/{ToolbarPrototype-Bgha0jR7.js → ToolbarPrototype-FUXqUCOR.js} +1 -1
- package/dist/web/assets/{UnifiedSessionPrototype-Tw3mh0yO.js → UnifiedSessionPrototype-6XvNoCHV.js} +1 -1
- package/dist/web/assets/{WalkthroughCTAPrototype-LnWpLWz2.js → WalkthroughCTAPrototype-CD6fFsgN.js} +1 -1
- package/dist/web/assets/{main-CtqMoNCi.js → main-CL2lNLUN.js} +3 -3
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
package/dist/web/assets/{ActionQueuePrototype-7c-UvyKZ.js → ActionQueuePrototype-BhBcv2Tj.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,r as u,B as k,U as z,C as P,Z as A,T as $,a as h,b as g,c as _,W as T,L as Q,X as R,P as L,d as U}from"./main-CtqMoNCi.js";const c=[{id:"n1",content:"Fix session insights not updating on first load",priority:"high",createdAt:"2m ago",source:"user"},{id:"n2",content:"Add keyboard shortcut for queue dialog",priority:"normal",createdAt:"1h ago",source:"user"},{id:"n3",content:"Consider lazy-loading walkthrough components",priority:"low",createdAt:"3h ago",source:"user"}],m=[{id:"r1",action:"Pre-commit check for cursor-pointer CSS",friction:"Interactive elements missing cursor-pointer",target:"codebase",createdAt:"5d ago",source:"ai"},{id:"r2",action:"Create /evaluate-skill-gap skill",friction:"Repeatable workflow identified",target:"project_instructions",createdAt:"3d ago",source:"ai"},{id:"r3",action:"Monitor for message loss in history pipeline",friction:"Silent message loss going undetected",target:"global_instructions",createdAt:"2d ago",source:"ai"}],f={high:{label:"HIGH",icon:$,text:"text-rose-400",border:"border-rose-500/30",bg:"bg-rose-500/10",dot:"bg-rose-400",badge:"bg-rose-500/20 text-rose-400 border-rose-500/30"},normal:{label:"NORMAL",icon:A,text:"text-amber-400",border:"border-amber-500/30",bg:"bg-amber-500/10",dot:"bg-amber-400",badge:"bg-amber-500/20 text-amber-400 border-amber-500/30"},low:{label:"LOW",icon:P,text:"text-slate-400",border:"border-slate-500/30",bg:"bg-slate-500/10",dot:"bg-slate-400",badge:"bg-slate-500/20 text-slate-400 border-slate-500/30"}},b={codebase:{icon:T,text:"text-emerald-400",bg:"bg-emerald-500/10",label:"Codebase"},project_instructions:{icon:_,text:"text-sky-400",bg:"bg-sky-500/10",label:"Project"},global_instructions:{icon:A,text:"text-purple-400",bg:"bg-purple-500/10",label:"Global"}};function j({noteCount:s,recCount:i}){return e.jsxs("div",{className:"relative flex items-center justify-between px-4 py-2.5 border-b border-border/50",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Q,{size:14,className:"text-cyan-400"}),e.jsx("span",{className:"text-[10px] font-mono font-bold text-cyan-400 uppercase tracking-wider",children:"Queue"})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[s>0&&e.jsx("span",{className:"min-w-[18px] h-[18px] flex items-center justify-center text-[9px] font-bold bg-amber-500/20 text-amber-400 border border-amber-500/30 rounded-sm",children:s}),i>0&&e.jsx("span",{className:"min-w-[18px] h-[18px] flex items-center justify-center text-[9px] font-bold bg-purple-500/20 text-purple-400 border border-purple-500/30 rounded-sm",children:i})]})]}),e.jsx("button",{className:"p-1 text-muted-foreground hover:text-cyan-400 transition-colors cursor-pointer",children:e.jsx(R,{size:14})})]})}function N({priority:s,onPriorityChange:i}){const[n,d]=u.useState("");return e.jsx("div",{className:"relative px-4 py-3 border-b border-border/30",children:e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{value:n,onChange:a=>d(a.target.value),placeholder:"Add a note...",className:"flex-1 px-3 py-1.5 bg-background/50 border border-border/50 rounded-sm text-sm font-mono placeholder:text-muted-foreground/40 focus:outline-none focus:border-cyan-500/50"}),e.jsx("div",{className:"flex items-center rounded-sm border border-border/50 bg-background/50 p-0.5",children:["high","normal","low"].map(a=>{const r=f[a],t=s===a;return e.jsx("button",{onClick:()=>i(a),className:`px-2 py-1 rounded-sm text-[9px] font-mono font-bold uppercase tracking-wider transition-all cursor-pointer ${t?`${r.bg} ${r.text} border ${r.border}`:"text-muted-foreground/50 border border-transparent hover:text-foreground"}`,children:a[0]},a)})}),e.jsx("button",{className:"px-2.5 py-1.5 rounded-sm border border-cyan-500/30 text-cyan-400 hover:bg-cyan-500/10 hover:border-cyan-400 transition-all cursor-pointer",children:e.jsx(L,{size:14})})]})})}function y(){return e.jsx("div",{className:"relative px-4 py-2.5 border-t border-border/30",children:e.jsxs("button",{className:"w-full flex items-center justify-center gap-2 py-1.5 rounded-sm border border-cyan-500/30 text-cyan-400 text-[10px] font-mono font-bold uppercase tracking-wider hover:bg-cyan-500/10 hover:border-cyan-400 hover:shadow-[2px_2px_0_rgba(0,255,255,0.5),-2px_-2px_0_rgba(168,85,247,0.3)] hover:translate-x-[-1px] hover:translate-y-[-1px] transition-all duration-100 cursor-pointer",children:[e.jsx(U,{size:12}),"Start Session"]})})}function v({children:s}){return e.jsxs("div",{className:"w-full max-w-md bg-background border border-border rounded-sm shadow-xl overflow-hidden flex flex-col relative",children:[e.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(rgba(0,255,255,0.02)_1px,transparent_1px),linear-gradient(90deg,rgba(0,255,255,0.02)_1px,transparent_1px)] bg-[size:16px_16px] pointer-events-none"}),s]})}function C({note:s}){return e.jsxs("div",{className:"group flex items-start gap-3 px-3 py-1.5 hover:bg-muted/20 transition-colors",children:[e.jsx("p",{className:"flex-1 text-sm font-mono text-foreground/80 leading-snug",children:s.content}),e.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0 pt-0.5",children:[e.jsx("span",{className:"text-[10px] font-mono text-muted-foreground/30 opacity-0 group-hover:opacity-100 transition-opacity",children:s.createdAt}),e.jsxs("div",{className:"flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[e.jsx("button",{className:"p-1 text-muted-foreground/50 hover:text-emerald-400 cursor-pointer",children:e.jsx(h,{size:12})}),e.jsx("button",{className:"p-1 text-muted-foreground/50 hover:text-rose-400 cursor-pointer",children:e.jsx(g,{size:12})})]})]})]})}function I({rec:s}){const i=b[s.target]||b.codebase,n=i.icon;return e.jsxs("div",{className:"group flex items-start gap-3 px-3 py-2 hover:bg-muted/20 transition-colors",children:[e.jsx("div",{className:`p-1 rounded ${i.bg} flex-shrink-0 mt-0.5`,children:e.jsx(n,{size:10,className:i.text})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-mono text-foreground/80 leading-snug",children:s.action}),e.jsx("p",{className:"text-[11px] font-mono text-muted-foreground/40 mt-0.5",children:s.friction})]}),e.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0 pt-0.5",children:[e.jsx("span",{className:"text-[10px] font-mono text-muted-foreground/30 opacity-0 group-hover:opacity-100 transition-opacity",children:s.createdAt}),e.jsxs("div",{className:"flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[e.jsx("button",{className:"p-1 text-muted-foreground/50 hover:text-emerald-400 cursor-pointer",children:e.jsx(h,{size:12})}),e.jsx("button",{className:"p-1 text-muted-foreground/50 hover:text-rose-400 cursor-pointer",children:e.jsx(g,{size:12})})]})]})]})}function B(){const[s,i]=u.useState("normal"),n=(t,l)=>{if(t.length===0)return null;const o=f[l],x=o.icon;return e.jsxs("div",{className:"mb-3 last:mb-0",children:[e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1",children:[e.jsx(x,{size:10,className:o.text}),e.jsx("span",{className:`text-[10px] font-mono font-bold uppercase tracking-wider ${o.text}`,children:o.label}),e.jsxs("span",{className:"text-[10px] font-mono text-muted-foreground/30",children:["(",t.length,")"]})]}),e.jsx("div",{className:"space-y-0.5",children:t.map(p=>e.jsx(C,{note:p},p.id))})]})},d=c.filter(t=>t.priority==="high"),a=c.filter(t=>t.priority==="normal"),r=c.filter(t=>t.priority==="low");return e.jsxs(v,{children:[e.jsx(j,{noteCount:c.length,recCount:m.length}),e.jsx(N,{priority:s,onPriorityChange:i}),e.jsxs("div",{className:"relative flex-1 overflow-y-auto p-2 max-h-96",children:[n(d,"high"),n(a,"normal"),n(r,"low"),e.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 mt-2",children:[e.jsx("div",{className:"flex-1 border-t border-purple-500/20"}),e.jsx("span",{className:"text-[9px] font-mono font-bold text-purple-400/60 uppercase tracking-wider",children:"ai"}),e.jsx("div",{className:"flex-1 border-t border-purple-500/20"})]}),e.jsxs("div",{className:"mb-1",children:[e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1",children:[e.jsx(k,{size:10,className:"text-purple-400"}),e.jsx("span",{className:"text-[10px] font-mono font-bold uppercase tracking-wider text-purple-400",children:"Recommendations"}),e.jsxs("span",{className:"text-[10px] font-mono text-muted-foreground/30",children:["(",m.length,")"]})]}),e.jsx("div",{className:"space-y-0.5",children:m.map(t=>e.jsx(I,{rec:t},t.id))})]})]}),e.jsx(y,{})]})}function D(){const[s,i]=u.useState("normal"),n=[...c.map(r=>({type:"note",data:r,priority:r.priority})),...m.map(r=>({type:"rec",data:r,priority:"normal"}))],d={high:n.filter(r=>r.priority==="high"),normal:n.filter(r=>r.priority==="normal"),low:n.filter(r=>r.priority==="low")},a=(r,t)=>{if(r.length===0)return null;const l=f[t],o=l.icon;return e.jsxs("div",{className:"mb-3 last:mb-0",children:[e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1",children:[e.jsx(o,{size:10,className:l.text}),e.jsx("span",{className:`text-[10px] font-mono font-bold uppercase tracking-wider ${l.text}`,children:l.label}),e.jsxs("span",{className:"text-[10px] font-mono text-muted-foreground/30",children:["(",r.length,")"]})]}),e.jsx("div",{className:"space-y-0.5",children:r.map(x=>e.jsxs("div",{className:"group flex items-start gap-2 px-3 py-1.5 hover:bg-muted/20 transition-colors",children:[x.type==="note"?e.jsx("span",{className:"flex-shrink-0 mt-0.5 px-1.5 py-0.5 rounded-sm text-[8px] font-mono font-bold uppercase bg-amber-500/15 text-amber-400 border border-amber-500/20",children:"You"}):e.jsx("span",{className:"flex-shrink-0 mt-0.5 px-1.5 py-0.5 rounded-sm text-[8px] font-mono font-bold uppercase bg-purple-500/15 text-purple-400 border border-purple-500/20",children:"AI"}),e.jsx("div",{className:"flex-1 min-w-0",children:x.type==="note"?e.jsx("p",{className:"text-sm font-mono text-foreground/80 leading-snug",children:x.data.content}):e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-sm font-mono text-foreground/80 leading-snug",children:x.data.action}),e.jsx("p",{className:"text-[11px] font-mono text-muted-foreground/40 mt-0.5",children:x.data.friction})]})}),e.jsxs("div",{className:"flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity flex-shrink-0 pt-0.5",children:[e.jsx("button",{className:"p-1 text-muted-foreground/50 hover:text-emerald-400 cursor-pointer",children:e.jsx(h,{size:12})}),e.jsx("button",{className:"p-1 text-muted-foreground/50 hover:text-rose-400 cursor-pointer",children:e.jsx(g,{size:12})})]})]},(x.type==="note",x.data.id)))})]})};return e.jsxs(v,{children:[e.jsx(j,{noteCount:c.length,recCount:m.length}),e.jsx(N,{priority:s,onPriorityChange:i}),e.jsxs("div",{className:"relative flex-1 overflow-y-auto p-2 max-h-96",children:[a(d.high,"high"),a(d.normal,"normal"),a(d.low,"low")]}),e.jsx(y,{})]})}function F(){const[s,i]=u.useState("normal"),[n,d]=u.useState("notes"),a=c.filter(o=>o.priority==="high"),r=c.filter(o=>o.priority==="normal"),t=c.filter(o=>o.priority==="low"),l=(o,x)=>{if(o.length===0)return null;const p=f[x],S=p.icon;return e.jsxs("div",{className:"mb-3 last:mb-0",children:[e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1",children:[e.jsx(S,{size:10,className:p.text}),e.jsx("span",{className:`text-[10px] font-mono font-bold uppercase tracking-wider ${p.text}`,children:p.label}),e.jsxs("span",{className:"text-[10px] font-mono text-muted-foreground/30",children:["(",o.length,")"]})]}),e.jsx("div",{className:"space-y-0.5",children:o.map(w=>e.jsx(C,{note:w},w.id))})]})};return e.jsxs(v,{children:[e.jsx(j,{noteCount:c.length,recCount:m.length}),e.jsxs("div",{className:"relative flex border-b border-border/30",children:[e.jsxs("button",{onClick:()=>d("notes"),className:`flex-1 flex items-center justify-center gap-2 px-4 py-2.5 text-[10px] font-mono font-bold uppercase tracking-wider transition-colors cursor-pointer ${n==="notes"?"text-amber-400 border-b-2 border-amber-400":"text-muted-foreground/50 hover:text-muted-foreground"}`,children:[e.jsx(z,{size:10}),"Notes",e.jsx("span",{className:`min-w-[16px] h-[16px] flex items-center justify-center text-[8px] font-bold rounded-sm ${n==="notes"?"bg-amber-500/20 text-amber-400":"bg-muted/20 text-muted-foreground/40"}`,children:c.length})]}),e.jsxs("button",{onClick:()=>d("ai"),className:`flex-1 flex items-center justify-center gap-2 px-4 py-2.5 text-[10px] font-mono font-bold uppercase tracking-wider transition-colors cursor-pointer ${n==="ai"?"text-purple-400 border-b-2 border-purple-400":"text-muted-foreground/50 hover:text-muted-foreground"}`,children:[e.jsx(k,{size:10}),"AI",e.jsx("span",{className:`min-w-[16px] h-[16px] flex items-center justify-center text-[8px] font-bold rounded-sm ${n==="ai"?"bg-purple-500/20 text-purple-400":"bg-muted/20 text-muted-foreground/40"}`,children:m.length})]})]}),n==="notes"&&e.jsx(N,{priority:s,onPriorityChange:i}),e.jsx("div",{className:"relative flex-1 overflow-y-auto p-2 max-h-80",children:n==="notes"?e.jsxs(e.Fragment,{children:[l(a,"high"),l(r,"normal"),l(t,"low")]}):e.jsx("div",{className:"space-y-0.5",children:m.map(o=>e.jsx(I,{rec:o},o.id))})}),e.jsx(y,{})]})}function H(){const[s,i]=u.useState("normal"),n=[c[0],c[1],m[2],c[2],m[1],m[0]];return e.jsxs(v,{children:[e.jsx(j,{noteCount:c.length,recCount:m.length}),e.jsx(N,{priority:s,onPriorityChange:i}),e.jsx("div",{className:"relative flex-1 overflow-y-auto p-2 max-h-96",children:e.jsx("div",{className:"space-y-1",children:n.map(d=>{const a=d.source==="user",r=a?"border-l-amber-400/60":"border-l-purple-400/60";if(a){const t=d,l=f[t.priority];return e.jsxs("div",{className:`group flex items-start gap-3 pl-3 pr-3 py-2 border-l-2 ${r} hover:bg-muted/20 transition-colors ml-1`,children:[e.jsx("div",{className:`w-1.5 h-1.5 rounded-full mt-1.5 flex-shrink-0 ${l.dot}`}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-mono text-foreground/80 leading-snug",children:t.content}),e.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[e.jsx("span",{className:"text-[9px] font-mono font-bold uppercase px-1.5 py-0.5 rounded-sm bg-amber-500/10 text-amber-400/60 border border-amber-500/15",children:"note"}),e.jsx("span",{className:"text-[10px] font-mono text-muted-foreground/30",children:t.createdAt})]})]}),e.jsxs("div",{className:"flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity flex-shrink-0 pt-0.5",children:[e.jsx("button",{className:"p-1 text-muted-foreground/50 hover:text-emerald-400 cursor-pointer",children:e.jsx(h,{size:12})}),e.jsx("button",{className:"p-1 text-muted-foreground/50 hover:text-rose-400 cursor-pointer",children:e.jsx(g,{size:12})})]})]},t.id)}else{const t=d,l=b[t.target]||b.codebase,o=l.icon;return e.jsxs("div",{className:`group flex items-start gap-3 pl-3 pr-3 py-2 border-l-2 ${r} hover:bg-muted/20 transition-colors ml-1`,children:[e.jsx("div",{className:`p-1 rounded ${l.bg} flex-shrink-0 mt-0.5`,children:e.jsx(o,{size:10,className:l.text})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-mono text-foreground/80 leading-snug",children:t.action}),e.jsx("p",{className:"text-[11px] font-mono text-muted-foreground/40 mt-0.5",children:t.friction}),e.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[e.jsx("span",{className:"text-[9px] font-mono font-bold uppercase px-1.5 py-0.5 rounded-sm bg-purple-500/10 text-purple-400/60 border border-purple-500/15",children:"ai"}),e.jsx("span",{className:"text-[10px] font-mono text-muted-foreground/30",children:t.createdAt})]})]}),e.jsxs("div",{className:"flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity flex-shrink-0 pt-0.5",children:[e.jsx("button",{className:"p-1 text-muted-foreground/50 hover:text-emerald-400 cursor-pointer",children:e.jsx(h,{size:12})}),e.jsx("button",{className:"p-1 text-muted-foreground/50 hover:text-rose-400 cursor-pointer",children:e.jsx(g,{size:12})})]})]},t.id)}})})}),e.jsx(y,{})]})}function V(){return e.jsx("div",{className:"min-h-dvh bg-background p-8",children:e.jsxs("div",{className:"max-w-6xl mx-auto",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-lg font-mono font-bold text-cyan-400 uppercase tracking-wider mb-2",children:"Action Queue — Unified Dialog"}),e.jsx("p",{className:"text-sm font-mono text-muted-foreground",children:"Consolidating dev notes + AI recommendations into one first-class feature"}),e.jsx("p",{className:"text-xs font-mono text-muted-foreground/50 mt-1",children:'Icon: ListTodo · Name: "Queue" · Header badges: amber (notes) + purple (AI)'})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-10",children:[e.jsxs("div",{children:[e.jsxs("h2",{className:"text-[10px] font-mono font-bold text-amber-400 uppercase tracking-wider mb-2 flex items-center gap-2",children:[e.jsx("span",{className:"text-muted-foreground/40",children:"A."}),"Separated Sections"]}),e.jsx("p",{className:"text-xs font-mono text-muted-foreground/60 mb-4",children:'User notes by priority, then AI recommendations below a purple divider. Clear distinction between "my items" and "AI suggestions".'}),e.jsx(B,{})]}),e.jsxs("div",{children:[e.jsxs("h2",{className:"text-[10px] font-mono font-bold text-amber-400 uppercase tracking-wider mb-2 flex items-center gap-2",children:[e.jsx("span",{className:"text-muted-foreground/40",children:"B."}),"Unified Priority Stream"]}),e.jsx("p",{className:"text-xs font-mono text-muted-foreground/60 mb-4",children:"All items interleaved within priority groups. Source shown as YOU/AI badge. Recs map to NORMAL priority by default."}),e.jsx(D,{})]}),e.jsxs("div",{children:[e.jsxs("h2",{className:"text-[10px] font-mono font-bold text-amber-400 uppercase tracking-wider mb-2 flex items-center gap-2",children:[e.jsx("span",{className:"text-muted-foreground/40",children:"C."}),"Tab Switcher"]}),e.jsx("p",{className:"text-xs font-mono text-muted-foreground/60 mb-4",children:"Two tabs: Notes and AI. Each tab shows its items. Quick-add only visible on Notes tab. Shared session footer."}),e.jsx(F,{})]}),e.jsxs("div",{children:[e.jsxs("h2",{className:"text-[10px] font-mono font-bold text-amber-400 uppercase tracking-wider mb-2 flex items-center gap-2",children:[e.jsx("span",{className:"text-muted-foreground/40",children:"D."}),"Flat Timeline"]}),e.jsx("p",{className:"text-xs font-mono text-muted-foreground/60 mb-4",children:"Chronological feed. Left border accent for source (amber = note, purple = AI). Priority shown as colored dot on notes."}),e.jsx(H,{})]})]}),e.jsxs("div",{className:"mt-12 p-4 rounded-sm border border-border/30 bg-card/50",children:[e.jsx("h3",{className:"text-[10px] font-mono font-bold text-cyan-400 uppercase tracking-wider mb-3",children:"Design Decisions"}),e.jsxs("ul",{className:"text-xs font-mono text-muted-foreground/70 space-y-1.5",children:[e.jsxs("li",{children:["- ",e.jsx("span",{className:"text-cyan-400/80",children:"Icon:"})," ListTodo replaces StickyNote — implies actionable queue, not just sticky notes"]}),e.jsxs("li",{children:["- ",e.jsx("span",{className:"text-cyan-400/80",children:"Name:"}),' "Queue" — neutral, implies ordered processing from multiple sources']}),e.jsxs("li",{children:["- ",e.jsx("span",{className:"text-cyan-400/80",children:"Color:"})," Cyan header accent (was amber) — Queue is a first-class feature, not dev-only"]}),e.jsxs("li",{children:["- ",e.jsx("span",{className:"text-cyan-400/80",children:"Badges:"})," Amber count for notes, Purple count for AI recs — at a glance source breakdown"]}),e.jsxs("li",{children:["- ",e.jsx("span",{className:"text-cyan-400/80",children:"AI section:"})," Purple accent throughout (Bot icon, borders, badges) — consistent AI identity"]}),e.jsxs("li",{children:["- ",e.jsx("span",{className:"text-cyan-400/80",children:"Actions:"})," Check (complete) + Trash (dismiss) on all items — unified interaction model"]}),e.jsxs("li",{children:["- ",e.jsx("span",{className:"text-cyan-400/80",children:"Recs show:"})," Target icon + action (primary) + friction (muted subtitle)"]})]})]})]})})}export{V as ActionQueuePrototype,V as default};
|
|
1
|
+
import{j as e,r as u,B as k,U as z,C as P,Z as A,T as $,a as h,b as g,c as _,W as T,L as Q,X as R,P as L,d as U}from"./main-CL2lNLUN.js";const c=[{id:"n1",content:"Fix session insights not updating on first load",priority:"high",createdAt:"2m ago",source:"user"},{id:"n2",content:"Add keyboard shortcut for queue dialog",priority:"normal",createdAt:"1h ago",source:"user"},{id:"n3",content:"Consider lazy-loading walkthrough components",priority:"low",createdAt:"3h ago",source:"user"}],m=[{id:"r1",action:"Pre-commit check for cursor-pointer CSS",friction:"Interactive elements missing cursor-pointer",target:"codebase",createdAt:"5d ago",source:"ai"},{id:"r2",action:"Create /evaluate-skill-gap skill",friction:"Repeatable workflow identified",target:"project_instructions",createdAt:"3d ago",source:"ai"},{id:"r3",action:"Monitor for message loss in history pipeline",friction:"Silent message loss going undetected",target:"global_instructions",createdAt:"2d ago",source:"ai"}],f={high:{label:"HIGH",icon:$,text:"text-rose-400",border:"border-rose-500/30",bg:"bg-rose-500/10",dot:"bg-rose-400",badge:"bg-rose-500/20 text-rose-400 border-rose-500/30"},normal:{label:"NORMAL",icon:A,text:"text-amber-400",border:"border-amber-500/30",bg:"bg-amber-500/10",dot:"bg-amber-400",badge:"bg-amber-500/20 text-amber-400 border-amber-500/30"},low:{label:"LOW",icon:P,text:"text-slate-400",border:"border-slate-500/30",bg:"bg-slate-500/10",dot:"bg-slate-400",badge:"bg-slate-500/20 text-slate-400 border-slate-500/30"}},b={codebase:{icon:T,text:"text-emerald-400",bg:"bg-emerald-500/10",label:"Codebase"},project_instructions:{icon:_,text:"text-sky-400",bg:"bg-sky-500/10",label:"Project"},global_instructions:{icon:A,text:"text-purple-400",bg:"bg-purple-500/10",label:"Global"}};function j({noteCount:s,recCount:i}){return e.jsxs("div",{className:"relative flex items-center justify-between px-4 py-2.5 border-b border-border/50",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Q,{size:14,className:"text-cyan-400"}),e.jsx("span",{className:"text-[10px] font-mono font-bold text-cyan-400 uppercase tracking-wider",children:"Queue"})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[s>0&&e.jsx("span",{className:"min-w-[18px] h-[18px] flex items-center justify-center text-[9px] font-bold bg-amber-500/20 text-amber-400 border border-amber-500/30 rounded-sm",children:s}),i>0&&e.jsx("span",{className:"min-w-[18px] h-[18px] flex items-center justify-center text-[9px] font-bold bg-purple-500/20 text-purple-400 border border-purple-500/30 rounded-sm",children:i})]})]}),e.jsx("button",{className:"p-1 text-muted-foreground hover:text-cyan-400 transition-colors cursor-pointer",children:e.jsx(R,{size:14})})]})}function N({priority:s,onPriorityChange:i}){const[n,d]=u.useState("");return e.jsx("div",{className:"relative px-4 py-3 border-b border-border/30",children:e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{value:n,onChange:a=>d(a.target.value),placeholder:"Add a note...",className:"flex-1 px-3 py-1.5 bg-background/50 border border-border/50 rounded-sm text-sm font-mono placeholder:text-muted-foreground/40 focus:outline-none focus:border-cyan-500/50"}),e.jsx("div",{className:"flex items-center rounded-sm border border-border/50 bg-background/50 p-0.5",children:["high","normal","low"].map(a=>{const r=f[a],t=s===a;return e.jsx("button",{onClick:()=>i(a),className:`px-2 py-1 rounded-sm text-[9px] font-mono font-bold uppercase tracking-wider transition-all cursor-pointer ${t?`${r.bg} ${r.text} border ${r.border}`:"text-muted-foreground/50 border border-transparent hover:text-foreground"}`,children:a[0]},a)})}),e.jsx("button",{className:"px-2.5 py-1.5 rounded-sm border border-cyan-500/30 text-cyan-400 hover:bg-cyan-500/10 hover:border-cyan-400 transition-all cursor-pointer",children:e.jsx(L,{size:14})})]})})}function y(){return e.jsx("div",{className:"relative px-4 py-2.5 border-t border-border/30",children:e.jsxs("button",{className:"w-full flex items-center justify-center gap-2 py-1.5 rounded-sm border border-cyan-500/30 text-cyan-400 text-[10px] font-mono font-bold uppercase tracking-wider hover:bg-cyan-500/10 hover:border-cyan-400 hover:shadow-[2px_2px_0_rgba(0,255,255,0.5),-2px_-2px_0_rgba(168,85,247,0.3)] hover:translate-x-[-1px] hover:translate-y-[-1px] transition-all duration-100 cursor-pointer",children:[e.jsx(U,{size:12}),"Start Session"]})})}function v({children:s}){return e.jsxs("div",{className:"w-full max-w-md bg-background border border-border rounded-sm shadow-xl overflow-hidden flex flex-col relative",children:[e.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(rgba(0,255,255,0.02)_1px,transparent_1px),linear-gradient(90deg,rgba(0,255,255,0.02)_1px,transparent_1px)] bg-[size:16px_16px] pointer-events-none"}),s]})}function C({note:s}){return e.jsxs("div",{className:"group flex items-start gap-3 px-3 py-1.5 hover:bg-muted/20 transition-colors",children:[e.jsx("p",{className:"flex-1 text-sm font-mono text-foreground/80 leading-snug",children:s.content}),e.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0 pt-0.5",children:[e.jsx("span",{className:"text-[10px] font-mono text-muted-foreground/30 opacity-0 group-hover:opacity-100 transition-opacity",children:s.createdAt}),e.jsxs("div",{className:"flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[e.jsx("button",{className:"p-1 text-muted-foreground/50 hover:text-emerald-400 cursor-pointer",children:e.jsx(h,{size:12})}),e.jsx("button",{className:"p-1 text-muted-foreground/50 hover:text-rose-400 cursor-pointer",children:e.jsx(g,{size:12})})]})]})]})}function I({rec:s}){const i=b[s.target]||b.codebase,n=i.icon;return e.jsxs("div",{className:"group flex items-start gap-3 px-3 py-2 hover:bg-muted/20 transition-colors",children:[e.jsx("div",{className:`p-1 rounded ${i.bg} flex-shrink-0 mt-0.5`,children:e.jsx(n,{size:10,className:i.text})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-mono text-foreground/80 leading-snug",children:s.action}),e.jsx("p",{className:"text-[11px] font-mono text-muted-foreground/40 mt-0.5",children:s.friction})]}),e.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0 pt-0.5",children:[e.jsx("span",{className:"text-[10px] font-mono text-muted-foreground/30 opacity-0 group-hover:opacity-100 transition-opacity",children:s.createdAt}),e.jsxs("div",{className:"flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[e.jsx("button",{className:"p-1 text-muted-foreground/50 hover:text-emerald-400 cursor-pointer",children:e.jsx(h,{size:12})}),e.jsx("button",{className:"p-1 text-muted-foreground/50 hover:text-rose-400 cursor-pointer",children:e.jsx(g,{size:12})})]})]})]})}function B(){const[s,i]=u.useState("normal"),n=(t,l)=>{if(t.length===0)return null;const o=f[l],x=o.icon;return e.jsxs("div",{className:"mb-3 last:mb-0",children:[e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1",children:[e.jsx(x,{size:10,className:o.text}),e.jsx("span",{className:`text-[10px] font-mono font-bold uppercase tracking-wider ${o.text}`,children:o.label}),e.jsxs("span",{className:"text-[10px] font-mono text-muted-foreground/30",children:["(",t.length,")"]})]}),e.jsx("div",{className:"space-y-0.5",children:t.map(p=>e.jsx(C,{note:p},p.id))})]})},d=c.filter(t=>t.priority==="high"),a=c.filter(t=>t.priority==="normal"),r=c.filter(t=>t.priority==="low");return e.jsxs(v,{children:[e.jsx(j,{noteCount:c.length,recCount:m.length}),e.jsx(N,{priority:s,onPriorityChange:i}),e.jsxs("div",{className:"relative flex-1 overflow-y-auto p-2 max-h-96",children:[n(d,"high"),n(a,"normal"),n(r,"low"),e.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 mt-2",children:[e.jsx("div",{className:"flex-1 border-t border-purple-500/20"}),e.jsx("span",{className:"text-[9px] font-mono font-bold text-purple-400/60 uppercase tracking-wider",children:"ai"}),e.jsx("div",{className:"flex-1 border-t border-purple-500/20"})]}),e.jsxs("div",{className:"mb-1",children:[e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1",children:[e.jsx(k,{size:10,className:"text-purple-400"}),e.jsx("span",{className:"text-[10px] font-mono font-bold uppercase tracking-wider text-purple-400",children:"Recommendations"}),e.jsxs("span",{className:"text-[10px] font-mono text-muted-foreground/30",children:["(",m.length,")"]})]}),e.jsx("div",{className:"space-y-0.5",children:m.map(t=>e.jsx(I,{rec:t},t.id))})]})]}),e.jsx(y,{})]})}function D(){const[s,i]=u.useState("normal"),n=[...c.map(r=>({type:"note",data:r,priority:r.priority})),...m.map(r=>({type:"rec",data:r,priority:"normal"}))],d={high:n.filter(r=>r.priority==="high"),normal:n.filter(r=>r.priority==="normal"),low:n.filter(r=>r.priority==="low")},a=(r,t)=>{if(r.length===0)return null;const l=f[t],o=l.icon;return e.jsxs("div",{className:"mb-3 last:mb-0",children:[e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1",children:[e.jsx(o,{size:10,className:l.text}),e.jsx("span",{className:`text-[10px] font-mono font-bold uppercase tracking-wider ${l.text}`,children:l.label}),e.jsxs("span",{className:"text-[10px] font-mono text-muted-foreground/30",children:["(",r.length,")"]})]}),e.jsx("div",{className:"space-y-0.5",children:r.map(x=>e.jsxs("div",{className:"group flex items-start gap-2 px-3 py-1.5 hover:bg-muted/20 transition-colors",children:[x.type==="note"?e.jsx("span",{className:"flex-shrink-0 mt-0.5 px-1.5 py-0.5 rounded-sm text-[8px] font-mono font-bold uppercase bg-amber-500/15 text-amber-400 border border-amber-500/20",children:"You"}):e.jsx("span",{className:"flex-shrink-0 mt-0.5 px-1.5 py-0.5 rounded-sm text-[8px] font-mono font-bold uppercase bg-purple-500/15 text-purple-400 border border-purple-500/20",children:"AI"}),e.jsx("div",{className:"flex-1 min-w-0",children:x.type==="note"?e.jsx("p",{className:"text-sm font-mono text-foreground/80 leading-snug",children:x.data.content}):e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-sm font-mono text-foreground/80 leading-snug",children:x.data.action}),e.jsx("p",{className:"text-[11px] font-mono text-muted-foreground/40 mt-0.5",children:x.data.friction})]})}),e.jsxs("div",{className:"flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity flex-shrink-0 pt-0.5",children:[e.jsx("button",{className:"p-1 text-muted-foreground/50 hover:text-emerald-400 cursor-pointer",children:e.jsx(h,{size:12})}),e.jsx("button",{className:"p-1 text-muted-foreground/50 hover:text-rose-400 cursor-pointer",children:e.jsx(g,{size:12})})]})]},(x.type==="note",x.data.id)))})]})};return e.jsxs(v,{children:[e.jsx(j,{noteCount:c.length,recCount:m.length}),e.jsx(N,{priority:s,onPriorityChange:i}),e.jsxs("div",{className:"relative flex-1 overflow-y-auto p-2 max-h-96",children:[a(d.high,"high"),a(d.normal,"normal"),a(d.low,"low")]}),e.jsx(y,{})]})}function F(){const[s,i]=u.useState("normal"),[n,d]=u.useState("notes"),a=c.filter(o=>o.priority==="high"),r=c.filter(o=>o.priority==="normal"),t=c.filter(o=>o.priority==="low"),l=(o,x)=>{if(o.length===0)return null;const p=f[x],S=p.icon;return e.jsxs("div",{className:"mb-3 last:mb-0",children:[e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1",children:[e.jsx(S,{size:10,className:p.text}),e.jsx("span",{className:`text-[10px] font-mono font-bold uppercase tracking-wider ${p.text}`,children:p.label}),e.jsxs("span",{className:"text-[10px] font-mono text-muted-foreground/30",children:["(",o.length,")"]})]}),e.jsx("div",{className:"space-y-0.5",children:o.map(w=>e.jsx(C,{note:w},w.id))})]})};return e.jsxs(v,{children:[e.jsx(j,{noteCount:c.length,recCount:m.length}),e.jsxs("div",{className:"relative flex border-b border-border/30",children:[e.jsxs("button",{onClick:()=>d("notes"),className:`flex-1 flex items-center justify-center gap-2 px-4 py-2.5 text-[10px] font-mono font-bold uppercase tracking-wider transition-colors cursor-pointer ${n==="notes"?"text-amber-400 border-b-2 border-amber-400":"text-muted-foreground/50 hover:text-muted-foreground"}`,children:[e.jsx(z,{size:10}),"Notes",e.jsx("span",{className:`min-w-[16px] h-[16px] flex items-center justify-center text-[8px] font-bold rounded-sm ${n==="notes"?"bg-amber-500/20 text-amber-400":"bg-muted/20 text-muted-foreground/40"}`,children:c.length})]}),e.jsxs("button",{onClick:()=>d("ai"),className:`flex-1 flex items-center justify-center gap-2 px-4 py-2.5 text-[10px] font-mono font-bold uppercase tracking-wider transition-colors cursor-pointer ${n==="ai"?"text-purple-400 border-b-2 border-purple-400":"text-muted-foreground/50 hover:text-muted-foreground"}`,children:[e.jsx(k,{size:10}),"AI",e.jsx("span",{className:`min-w-[16px] h-[16px] flex items-center justify-center text-[8px] font-bold rounded-sm ${n==="ai"?"bg-purple-500/20 text-purple-400":"bg-muted/20 text-muted-foreground/40"}`,children:m.length})]})]}),n==="notes"&&e.jsx(N,{priority:s,onPriorityChange:i}),e.jsx("div",{className:"relative flex-1 overflow-y-auto p-2 max-h-80",children:n==="notes"?e.jsxs(e.Fragment,{children:[l(a,"high"),l(r,"normal"),l(t,"low")]}):e.jsx("div",{className:"space-y-0.5",children:m.map(o=>e.jsx(I,{rec:o},o.id))})}),e.jsx(y,{})]})}function H(){const[s,i]=u.useState("normal"),n=[c[0],c[1],m[2],c[2],m[1],m[0]];return e.jsxs(v,{children:[e.jsx(j,{noteCount:c.length,recCount:m.length}),e.jsx(N,{priority:s,onPriorityChange:i}),e.jsx("div",{className:"relative flex-1 overflow-y-auto p-2 max-h-96",children:e.jsx("div",{className:"space-y-1",children:n.map(d=>{const a=d.source==="user",r=a?"border-l-amber-400/60":"border-l-purple-400/60";if(a){const t=d,l=f[t.priority];return e.jsxs("div",{className:`group flex items-start gap-3 pl-3 pr-3 py-2 border-l-2 ${r} hover:bg-muted/20 transition-colors ml-1`,children:[e.jsx("div",{className:`w-1.5 h-1.5 rounded-full mt-1.5 flex-shrink-0 ${l.dot}`}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-mono text-foreground/80 leading-snug",children:t.content}),e.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[e.jsx("span",{className:"text-[9px] font-mono font-bold uppercase px-1.5 py-0.5 rounded-sm bg-amber-500/10 text-amber-400/60 border border-amber-500/15",children:"note"}),e.jsx("span",{className:"text-[10px] font-mono text-muted-foreground/30",children:t.createdAt})]})]}),e.jsxs("div",{className:"flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity flex-shrink-0 pt-0.5",children:[e.jsx("button",{className:"p-1 text-muted-foreground/50 hover:text-emerald-400 cursor-pointer",children:e.jsx(h,{size:12})}),e.jsx("button",{className:"p-1 text-muted-foreground/50 hover:text-rose-400 cursor-pointer",children:e.jsx(g,{size:12})})]})]},t.id)}else{const t=d,l=b[t.target]||b.codebase,o=l.icon;return e.jsxs("div",{className:`group flex items-start gap-3 pl-3 pr-3 py-2 border-l-2 ${r} hover:bg-muted/20 transition-colors ml-1`,children:[e.jsx("div",{className:`p-1 rounded ${l.bg} flex-shrink-0 mt-0.5`,children:e.jsx(o,{size:10,className:l.text})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-mono text-foreground/80 leading-snug",children:t.action}),e.jsx("p",{className:"text-[11px] font-mono text-muted-foreground/40 mt-0.5",children:t.friction}),e.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[e.jsx("span",{className:"text-[9px] font-mono font-bold uppercase px-1.5 py-0.5 rounded-sm bg-purple-500/10 text-purple-400/60 border border-purple-500/15",children:"ai"}),e.jsx("span",{className:"text-[10px] font-mono text-muted-foreground/30",children:t.createdAt})]})]}),e.jsxs("div",{className:"flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity flex-shrink-0 pt-0.5",children:[e.jsx("button",{className:"p-1 text-muted-foreground/50 hover:text-emerald-400 cursor-pointer",children:e.jsx(h,{size:12})}),e.jsx("button",{className:"p-1 text-muted-foreground/50 hover:text-rose-400 cursor-pointer",children:e.jsx(g,{size:12})})]})]},t.id)}})})}),e.jsx(y,{})]})}function V(){return e.jsx("div",{className:"min-h-dvh bg-background p-8",children:e.jsxs("div",{className:"max-w-6xl mx-auto",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-lg font-mono font-bold text-cyan-400 uppercase tracking-wider mb-2",children:"Action Queue — Unified Dialog"}),e.jsx("p",{className:"text-sm font-mono text-muted-foreground",children:"Consolidating dev notes + AI recommendations into one first-class feature"}),e.jsx("p",{className:"text-xs font-mono text-muted-foreground/50 mt-1",children:'Icon: ListTodo · Name: "Queue" · Header badges: amber (notes) + purple (AI)'})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-10",children:[e.jsxs("div",{children:[e.jsxs("h2",{className:"text-[10px] font-mono font-bold text-amber-400 uppercase tracking-wider mb-2 flex items-center gap-2",children:[e.jsx("span",{className:"text-muted-foreground/40",children:"A."}),"Separated Sections"]}),e.jsx("p",{className:"text-xs font-mono text-muted-foreground/60 mb-4",children:'User notes by priority, then AI recommendations below a purple divider. Clear distinction between "my items" and "AI suggestions".'}),e.jsx(B,{})]}),e.jsxs("div",{children:[e.jsxs("h2",{className:"text-[10px] font-mono font-bold text-amber-400 uppercase tracking-wider mb-2 flex items-center gap-2",children:[e.jsx("span",{className:"text-muted-foreground/40",children:"B."}),"Unified Priority Stream"]}),e.jsx("p",{className:"text-xs font-mono text-muted-foreground/60 mb-4",children:"All items interleaved within priority groups. Source shown as YOU/AI badge. Recs map to NORMAL priority by default."}),e.jsx(D,{})]}),e.jsxs("div",{children:[e.jsxs("h2",{className:"text-[10px] font-mono font-bold text-amber-400 uppercase tracking-wider mb-2 flex items-center gap-2",children:[e.jsx("span",{className:"text-muted-foreground/40",children:"C."}),"Tab Switcher"]}),e.jsx("p",{className:"text-xs font-mono text-muted-foreground/60 mb-4",children:"Two tabs: Notes and AI. Each tab shows its items. Quick-add only visible on Notes tab. Shared session footer."}),e.jsx(F,{})]}),e.jsxs("div",{children:[e.jsxs("h2",{className:"text-[10px] font-mono font-bold text-amber-400 uppercase tracking-wider mb-2 flex items-center gap-2",children:[e.jsx("span",{className:"text-muted-foreground/40",children:"D."}),"Flat Timeline"]}),e.jsx("p",{className:"text-xs font-mono text-muted-foreground/60 mb-4",children:"Chronological feed. Left border accent for source (amber = note, purple = AI). Priority shown as colored dot on notes."}),e.jsx(H,{})]})]}),e.jsxs("div",{className:"mt-12 p-4 rounded-sm border border-border/30 bg-card/50",children:[e.jsx("h3",{className:"text-[10px] font-mono font-bold text-cyan-400 uppercase tracking-wider mb-3",children:"Design Decisions"}),e.jsxs("ul",{className:"text-xs font-mono text-muted-foreground/70 space-y-1.5",children:[e.jsxs("li",{children:["- ",e.jsx("span",{className:"text-cyan-400/80",children:"Icon:"})," ListTodo replaces StickyNote — implies actionable queue, not just sticky notes"]}),e.jsxs("li",{children:["- ",e.jsx("span",{className:"text-cyan-400/80",children:"Name:"}),' "Queue" — neutral, implies ordered processing from multiple sources']}),e.jsxs("li",{children:["- ",e.jsx("span",{className:"text-cyan-400/80",children:"Color:"})," Cyan header accent (was amber) — Queue is a first-class feature, not dev-only"]}),e.jsxs("li",{children:["- ",e.jsx("span",{className:"text-cyan-400/80",children:"Badges:"})," Amber count for notes, Purple count for AI recs — at a glance source breakdown"]}),e.jsxs("li",{children:["- ",e.jsx("span",{className:"text-cyan-400/80",children:"AI section:"})," Purple accent throughout (Bot icon, borders, badges) — consistent AI identity"]}),e.jsxs("li",{children:["- ",e.jsx("span",{className:"text-cyan-400/80",children:"Actions:"})," Check (complete) + Trash (dismiss) on all items — unified interaction model"]}),e.jsxs("li",{children:["- ",e.jsx("span",{className:"text-cyan-400/80",children:"Recs show:"})," Target icon + action (primary) + friction (muted subtitle)"]})]})]})]})})}export{V as ActionQueuePrototype,V as default};
|
package/dist/web/assets/{ArchivedCardPrototype-DxjGD6qd.js → ArchivedCardPrototype-Co-lT_Kc.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as p,j as e,e as u,A as g,f as x,R as d,F as h}from"./main-CtqMoNCi.js";const i=[{sessionId:"abc123def456",insights:{purpose:"Implement pagination for archived sessions",theme:"ui",tags:{complexity:"tricky"}},sessionInfo:{customName:null,identity_image:null},workingDirectory:"/home/jason/claudia",updatedAt:new Date(Date.now()-7200*1e3).toISOString(),createdAt:new Date(Date.now()-300*60*1e3).toISOString()},{sessionId:"xyz789ghi012",insights:{purpose:"Fix SSE reconnection bug in activity stream",theme:"infra",tags:{complexity:"gnarly"}},sessionInfo:{customName:"SSE Bug Hunt",identity_image:null},workingDirectory:"/home/jason/claudia",updatedAt:new Date(Date.now()-1440*60*1e3).toISOString(),createdAt:new Date(Date.now()-1560*60*1e3).toISOString()},{sessionId:"mno345pqr678",insights:{purpose:"Add voice transcription via Gemini API",theme:"feature",tags:{complexity:"routine"}},sessionInfo:{customName:null,identity_image:null},workingDirectory:"/home/jason/claudia",updatedAt:new Date(Date.now()-4320*60*1e3).toISOString(),createdAt:new Date(Date.now()-4320*60*1e3).toISOString()},{sessionId:"stu901vwx234",insights:{purpose:"Refactor insights computation pipeline",theme:"refactor",tags:{complexity:"gnarly"}},sessionInfo:{customName:"Insights Refactor",identity_image:null},workingDirectory:"/home/jason/claudia",updatedAt:new Date(Date.now()-10080*60*1e3).toISOString(),createdAt:new Date(Date.now()-11520*60*1e3).toISOString()},{sessionId:"yzab567cdef8",insights:{purpose:"Debug memory leak in session polling",theme:"bugfix",tags:{complexity:"tricky"}},sessionInfo:{customName:null,identity_image:null},workingDirectory:"/home/jason/claudia",updatedAt:new Date(Date.now()-336*60*60*1e3).toISOString(),createdAt:new Date(Date.now()-336*60*60*1e3).toISOString()},{sessionId:"ghij901klmn2",insights:{purpose:"CK3 motto generation pipeline",theme:"project",tags:{complexity:"tricky"}},sessionInfo:{customName:"CK3 Mottos",identity_image:null},workingDirectory:"/mnt/c/Users/jason/Documents/ck3-motto-ideation",updatedAt:new Date(Date.now()-720*60*60*1e3).toISOString(),createdAt:new Date(Date.now()-840*60*60*1e3).toISOString()}];function l(s){const n=Date.now()-new Date(s).getTime(),t=Math.floor(n/6e4),r=Math.floor(t/60),o=Math.floor(r/24);return t<60?`${t}m ago`:r<24?`${r}h ago`:o<7?`${o}d ago`:o<30?`${Math.floor(o/7)}w ago`:new Date(s).toLocaleDateString()}function c(s){switch(s){case"ui":return"text-cyan-400 bg-cyan-500/10 border-cyan-500/30";case"infra":return"text-purple-400 bg-purple-500/10 border-purple-500/30";case"feature":return"text-emerald-400 bg-emerald-500/10 border-emerald-500/30";case"refactor":return"text-amber-400 bg-amber-500/10 border-amber-500/30";case"bugfix":return"text-rose-400 bg-rose-500/10 border-rose-500/30";case"project":return"text-blue-400 bg-blue-500/10 border-blue-500/30";default:return"text-muted-foreground/70 bg-muted/30 border-border/30"}}function f({session:s,onRestore:n}){const{insights:t,sessionInfo:r,workingDirectory:o,updatedAt:a,sessionId:m}=s;return e.jsxs("div",{className:"flex items-center gap-4 p-3 rounded-md bg-card/30 border border-border/20 hover:border-rose-500/30 transition-all",children:[e.jsx("div",{className:"w-14 h-10 rounded-sm flex-shrink-0 bg-gradient-to-br from-muted/20 via-muted/10 to-muted/20 border border-border/20"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"text-sm font-mono font-medium text-foreground/90 truncate",children:r?.customName||t?.purpose||m.slice(0,8)}),e.jsxs("div",{className:"flex items-center gap-2 mt-1 text-[10px] font-mono text-muted-foreground/40",children:[e.jsx(x,{size:10}),e.jsx("span",{children:l(a)}),o&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-muted-foreground/20",children:"•"}),e.jsx("span",{className:"truncate max-w-[150px]",children:o.split("/").slice(-2).join("/")})]})]})]}),t?.theme&&e.jsx("span",{className:`text-[9px] px-1.5 py-0.5 rounded border font-display uppercase tracking-wider ${c(t.theme)}`,children:t.theme}),e.jsx("button",{onClick:n,className:"p-1.5 rounded-sm text-muted-foreground/40 hover:text-emerald-400 hover:bg-emerald-500/10 transition-all",title:"Restore",children:e.jsx(d,{size:14})})]})}function b({session:s,onRestore:n}){const{insights:t,sessionInfo:r,updatedAt:o,sessionId:a}=s;return e.jsxs("div",{className:"rounded-lg border border-border/20 overflow-hidden bg-card/30 hover:border-rose-500/30 hover:shadow-[2px_2px_0_rgba(244,63,94,0.2)] hover:translate-x-[-1px] hover:translate-y-[-1px] transition-all group",children:[e.jsx("div",{className:"h-10 bg-gradient-to-r from-muted/10 via-muted/20 to-muted/10 relative",children:t?.theme&&e.jsx("span",{className:`absolute top-1.5 right-1.5 text-[8px] px-1 py-0.5 rounded border font-display uppercase tracking-wider ${c(t.theme)}`,children:t.theme})}),e.jsxs("div",{className:"p-3",children:[e.jsx("h3",{className:"text-sm font-mono font-medium text-foreground/90 group-hover:text-rose-400 truncate transition-colors",children:r?.customName||t?.purpose||a.slice(0,8)}),e.jsxs("div",{className:"flex items-center justify-between mt-2",children:[e.jsxs("div",{className:"flex items-center gap-1.5 text-[10px] font-mono text-muted-foreground/30",children:[e.jsx(x,{size:10}),e.jsx("span",{children:l(o)})]}),e.jsxs("button",{onClick:n,className:"flex items-center gap-1 px-2 py-1 rounded-sm text-[10px] font-mono text-muted-foreground/40 hover:text-emerald-400 hover:bg-emerald-500/10 transition-all",children:[e.jsx(d,{size:10}),e.jsx("span",{children:"Restore"})]})]})]})]})}function j({session:s,onRestore:n}){const{insights:t,sessionInfo:r,updatedAt:o,sessionId:a}=s;return e.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 rounded-sm hover:bg-muted/20 transition-all group",children:[e.jsx("span",{className:"text-[10px] font-mono text-muted-foreground/30 w-12 flex-shrink-0",children:l(o)}),e.jsx("h3",{className:"flex-1 text-sm font-mono text-foreground/70 group-hover:text-rose-400 truncate transition-colors",children:r?.customName||t?.purpose||a.slice(0,8)}),t?.theme&&e.jsx("span",{className:`text-[8px] px-1 py-0.5 rounded font-display uppercase ${c(t.theme)}`,children:t.theme}),e.jsx("button",{onClick:n,className:"opacity-0 group-hover:opacity-100 p-1 rounded-sm text-muted-foreground/40 hover:text-emerald-400 transition-all",children:e.jsx(d,{size:12})})]})}function v({session:s,onRestore:n}){const{insights:t,sessionInfo:r,updatedAt:o,sessionId:a}=s;return e.jsxs("div",{className:"p-2.5 rounded-md border border-border/20 bg-card/30 hover:border-rose-500/30 transition-all group",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsx("h3",{className:"text-xs font-mono font-medium text-foreground/80 group-hover:text-rose-400 line-clamp-2 transition-colors",children:r?.customName||t?.purpose||a.slice(0,8)}),e.jsx("button",{onClick:n,className:"opacity-0 group-hover:opacity-100 p-0.5 rounded-sm text-muted-foreground/40 hover:text-emerald-400 transition-all flex-shrink-0",children:e.jsx(d,{size:10})})]}),e.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[t?.theme&&e.jsx("span",{className:`text-[8px] px-1 py-0.5 rounded font-display uppercase ${c(t.theme)}`,children:t.theme}),e.jsx("span",{className:"text-[9px] font-mono text-muted-foreground/30 ml-auto",children:l(o)})]})]})}function N({session:s,onRestore:n}){const{insights:t,sessionInfo:r,workingDirectory:o,updatedAt:a,sessionId:m}=s;return e.jsxs("div",{className:"flex gap-3 group",children:[e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:"w-2 h-2 rounded-full bg-rose-500/40 group-hover:bg-rose-400 transition-colors"}),e.jsx("div",{className:"w-px flex-1 bg-border/30"})]}),e.jsxs("div",{className:"flex-1 pb-6",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx("span",{className:"text-[10px] font-mono text-muted-foreground/40",children:l(a)}),t?.theme&&e.jsx("span",{className:`text-[8px] px-1 py-0.5 rounded border font-display uppercase ${c(t.theme)}`,children:t.theme})]}),e.jsx("h3",{className:"text-sm font-mono font-medium text-foreground/80 group-hover:text-rose-400 transition-colors",children:r?.customName||t?.purpose||m.slice(0,8)}),o&&e.jsxs("div",{className:"flex items-center gap-1 mt-1.5 text-[10px] text-muted-foreground/30",children:[e.jsx(h,{size:10}),e.jsx("span",{className:"truncate",children:o.split("/").slice(-2).join("/")})]}),e.jsxs("button",{onClick:n,className:"mt-2 flex items-center gap-1 px-2 py-1 rounded-sm text-[10px] font-mono text-muted-foreground/40 hover:text-emerald-400 hover:bg-emerald-500/10 transition-all",children:[e.jsx(d,{size:10}),e.jsx("span",{children:"Restore"})]})]})]})}function y(){const[s,n]=p.useState("row"),t=()=>{};return e.jsxs("div",{className:"min-h-dvh bg-background text-foreground",children:[e.jsx("div",{className:"fixed inset-0 bg-[linear-gradient(rgba(0,255,255,0.02)_1px,transparent_1px),linear-gradient(90deg,rgba(0,255,255,0.02)_1px,transparent_1px)] bg-[size:24px_24px] pointer-events-none"}),e.jsx("header",{className:"relative border-b border-border/30 bg-card/80 backdrop-blur-md sticky top-0 z-10",children:e.jsx("div",{className:"max-w-4xl mx-auto px-6 py-4 flex items-center justify-between",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(u,{to:"/dev",className:"p-2 -ml-2 rounded-sm text-muted-foreground hover:text-cyan-400 hover:bg-cyan-500/10 transition-all",children:e.jsx(g,{size:18})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-lg font-mono font-bold tracking-wider text-rose-400",children:"ARCHIVED CARD VARIATIONS"}),e.jsx("p",{className:"text-[10px] font-display uppercase tracking-wider text-muted-foreground/50",children:"Exploring layouts for archived session display"})]})]})})}),e.jsx("div",{className:"relative max-w-4xl mx-auto px-6 py-4 border-b border-border/20",children:e.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:["row","grid","compact","mini","timeline"].map(r=>e.jsx("button",{onClick:()=>n(r),className:`
|
|
1
|
+
import{r as p,j as e,e as u,A as g,f as x,R as d,F as h}from"./main-CL2lNLUN.js";const i=[{sessionId:"abc123def456",insights:{purpose:"Implement pagination for archived sessions",theme:"ui",tags:{complexity:"tricky"}},sessionInfo:{customName:null,identity_image:null},workingDirectory:"/home/jason/claudia",updatedAt:new Date(Date.now()-7200*1e3).toISOString(),createdAt:new Date(Date.now()-300*60*1e3).toISOString()},{sessionId:"xyz789ghi012",insights:{purpose:"Fix SSE reconnection bug in activity stream",theme:"infra",tags:{complexity:"gnarly"}},sessionInfo:{customName:"SSE Bug Hunt",identity_image:null},workingDirectory:"/home/jason/claudia",updatedAt:new Date(Date.now()-1440*60*1e3).toISOString(),createdAt:new Date(Date.now()-1560*60*1e3).toISOString()},{sessionId:"mno345pqr678",insights:{purpose:"Add voice transcription via Gemini API",theme:"feature",tags:{complexity:"routine"}},sessionInfo:{customName:null,identity_image:null},workingDirectory:"/home/jason/claudia",updatedAt:new Date(Date.now()-4320*60*1e3).toISOString(),createdAt:new Date(Date.now()-4320*60*1e3).toISOString()},{sessionId:"stu901vwx234",insights:{purpose:"Refactor insights computation pipeline",theme:"refactor",tags:{complexity:"gnarly"}},sessionInfo:{customName:"Insights Refactor",identity_image:null},workingDirectory:"/home/jason/claudia",updatedAt:new Date(Date.now()-10080*60*1e3).toISOString(),createdAt:new Date(Date.now()-11520*60*1e3).toISOString()},{sessionId:"yzab567cdef8",insights:{purpose:"Debug memory leak in session polling",theme:"bugfix",tags:{complexity:"tricky"}},sessionInfo:{customName:null,identity_image:null},workingDirectory:"/home/jason/claudia",updatedAt:new Date(Date.now()-336*60*60*1e3).toISOString(),createdAt:new Date(Date.now()-336*60*60*1e3).toISOString()},{sessionId:"ghij901klmn2",insights:{purpose:"CK3 motto generation pipeline",theme:"project",tags:{complexity:"tricky"}},sessionInfo:{customName:"CK3 Mottos",identity_image:null},workingDirectory:"/mnt/c/Users/jason/Documents/ck3-motto-ideation",updatedAt:new Date(Date.now()-720*60*60*1e3).toISOString(),createdAt:new Date(Date.now()-840*60*60*1e3).toISOString()}];function l(s){const n=Date.now()-new Date(s).getTime(),t=Math.floor(n/6e4),r=Math.floor(t/60),o=Math.floor(r/24);return t<60?`${t}m ago`:r<24?`${r}h ago`:o<7?`${o}d ago`:o<30?`${Math.floor(o/7)}w ago`:new Date(s).toLocaleDateString()}function c(s){switch(s){case"ui":return"text-cyan-400 bg-cyan-500/10 border-cyan-500/30";case"infra":return"text-purple-400 bg-purple-500/10 border-purple-500/30";case"feature":return"text-emerald-400 bg-emerald-500/10 border-emerald-500/30";case"refactor":return"text-amber-400 bg-amber-500/10 border-amber-500/30";case"bugfix":return"text-rose-400 bg-rose-500/10 border-rose-500/30";case"project":return"text-blue-400 bg-blue-500/10 border-blue-500/30";default:return"text-muted-foreground/70 bg-muted/30 border-border/30"}}function f({session:s,onRestore:n}){const{insights:t,sessionInfo:r,workingDirectory:o,updatedAt:a,sessionId:m}=s;return e.jsxs("div",{className:"flex items-center gap-4 p-3 rounded-md bg-card/30 border border-border/20 hover:border-rose-500/30 transition-all",children:[e.jsx("div",{className:"w-14 h-10 rounded-sm flex-shrink-0 bg-gradient-to-br from-muted/20 via-muted/10 to-muted/20 border border-border/20"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"text-sm font-mono font-medium text-foreground/90 truncate",children:r?.customName||t?.purpose||m.slice(0,8)}),e.jsxs("div",{className:"flex items-center gap-2 mt-1 text-[10px] font-mono text-muted-foreground/40",children:[e.jsx(x,{size:10}),e.jsx("span",{children:l(a)}),o&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-muted-foreground/20",children:"•"}),e.jsx("span",{className:"truncate max-w-[150px]",children:o.split("/").slice(-2).join("/")})]})]})]}),t?.theme&&e.jsx("span",{className:`text-[9px] px-1.5 py-0.5 rounded border font-display uppercase tracking-wider ${c(t.theme)}`,children:t.theme}),e.jsx("button",{onClick:n,className:"p-1.5 rounded-sm text-muted-foreground/40 hover:text-emerald-400 hover:bg-emerald-500/10 transition-all",title:"Restore",children:e.jsx(d,{size:14})})]})}function b({session:s,onRestore:n}){const{insights:t,sessionInfo:r,updatedAt:o,sessionId:a}=s;return e.jsxs("div",{className:"rounded-lg border border-border/20 overflow-hidden bg-card/30 hover:border-rose-500/30 hover:shadow-[2px_2px_0_rgba(244,63,94,0.2)] hover:translate-x-[-1px] hover:translate-y-[-1px] transition-all group",children:[e.jsx("div",{className:"h-10 bg-gradient-to-r from-muted/10 via-muted/20 to-muted/10 relative",children:t?.theme&&e.jsx("span",{className:`absolute top-1.5 right-1.5 text-[8px] px-1 py-0.5 rounded border font-display uppercase tracking-wider ${c(t.theme)}`,children:t.theme})}),e.jsxs("div",{className:"p-3",children:[e.jsx("h3",{className:"text-sm font-mono font-medium text-foreground/90 group-hover:text-rose-400 truncate transition-colors",children:r?.customName||t?.purpose||a.slice(0,8)}),e.jsxs("div",{className:"flex items-center justify-between mt-2",children:[e.jsxs("div",{className:"flex items-center gap-1.5 text-[10px] font-mono text-muted-foreground/30",children:[e.jsx(x,{size:10}),e.jsx("span",{children:l(o)})]}),e.jsxs("button",{onClick:n,className:"flex items-center gap-1 px-2 py-1 rounded-sm text-[10px] font-mono text-muted-foreground/40 hover:text-emerald-400 hover:bg-emerald-500/10 transition-all",children:[e.jsx(d,{size:10}),e.jsx("span",{children:"Restore"})]})]})]})]})}function j({session:s,onRestore:n}){const{insights:t,sessionInfo:r,updatedAt:o,sessionId:a}=s;return e.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 rounded-sm hover:bg-muted/20 transition-all group",children:[e.jsx("span",{className:"text-[10px] font-mono text-muted-foreground/30 w-12 flex-shrink-0",children:l(o)}),e.jsx("h3",{className:"flex-1 text-sm font-mono text-foreground/70 group-hover:text-rose-400 truncate transition-colors",children:r?.customName||t?.purpose||a.slice(0,8)}),t?.theme&&e.jsx("span",{className:`text-[8px] px-1 py-0.5 rounded font-display uppercase ${c(t.theme)}`,children:t.theme}),e.jsx("button",{onClick:n,className:"opacity-0 group-hover:opacity-100 p-1 rounded-sm text-muted-foreground/40 hover:text-emerald-400 transition-all",children:e.jsx(d,{size:12})})]})}function v({session:s,onRestore:n}){const{insights:t,sessionInfo:r,updatedAt:o,sessionId:a}=s;return e.jsxs("div",{className:"p-2.5 rounded-md border border-border/20 bg-card/30 hover:border-rose-500/30 transition-all group",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsx("h3",{className:"text-xs font-mono font-medium text-foreground/80 group-hover:text-rose-400 line-clamp-2 transition-colors",children:r?.customName||t?.purpose||a.slice(0,8)}),e.jsx("button",{onClick:n,className:"opacity-0 group-hover:opacity-100 p-0.5 rounded-sm text-muted-foreground/40 hover:text-emerald-400 transition-all flex-shrink-0",children:e.jsx(d,{size:10})})]}),e.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[t?.theme&&e.jsx("span",{className:`text-[8px] px-1 py-0.5 rounded font-display uppercase ${c(t.theme)}`,children:t.theme}),e.jsx("span",{className:"text-[9px] font-mono text-muted-foreground/30 ml-auto",children:l(o)})]})]})}function N({session:s,onRestore:n}){const{insights:t,sessionInfo:r,workingDirectory:o,updatedAt:a,sessionId:m}=s;return e.jsxs("div",{className:"flex gap-3 group",children:[e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:"w-2 h-2 rounded-full bg-rose-500/40 group-hover:bg-rose-400 transition-colors"}),e.jsx("div",{className:"w-px flex-1 bg-border/30"})]}),e.jsxs("div",{className:"flex-1 pb-6",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx("span",{className:"text-[10px] font-mono text-muted-foreground/40",children:l(a)}),t?.theme&&e.jsx("span",{className:`text-[8px] px-1 py-0.5 rounded border font-display uppercase ${c(t.theme)}`,children:t.theme})]}),e.jsx("h3",{className:"text-sm font-mono font-medium text-foreground/80 group-hover:text-rose-400 transition-colors",children:r?.customName||t?.purpose||m.slice(0,8)}),o&&e.jsxs("div",{className:"flex items-center gap-1 mt-1.5 text-[10px] text-muted-foreground/30",children:[e.jsx(h,{size:10}),e.jsx("span",{className:"truncate",children:o.split("/").slice(-2).join("/")})]}),e.jsxs("button",{onClick:n,className:"mt-2 flex items-center gap-1 px-2 py-1 rounded-sm text-[10px] font-mono text-muted-foreground/40 hover:text-emerald-400 hover:bg-emerald-500/10 transition-all",children:[e.jsx(d,{size:10}),e.jsx("span",{children:"Restore"})]})]})]})}function y(){const[s,n]=p.useState("row"),t=()=>{};return e.jsxs("div",{className:"min-h-dvh bg-background text-foreground",children:[e.jsx("div",{className:"fixed inset-0 bg-[linear-gradient(rgba(0,255,255,0.02)_1px,transparent_1px),linear-gradient(90deg,rgba(0,255,255,0.02)_1px,transparent_1px)] bg-[size:24px_24px] pointer-events-none"}),e.jsx("header",{className:"relative border-b border-border/30 bg-card/80 backdrop-blur-md sticky top-0 z-10",children:e.jsx("div",{className:"max-w-4xl mx-auto px-6 py-4 flex items-center justify-between",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(u,{to:"/dev",className:"p-2 -ml-2 rounded-sm text-muted-foreground hover:text-cyan-400 hover:bg-cyan-500/10 transition-all",children:e.jsx(g,{size:18})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-lg font-mono font-bold tracking-wider text-rose-400",children:"ARCHIVED CARD VARIATIONS"}),e.jsx("p",{className:"text-[10px] font-display uppercase tracking-wider text-muted-foreground/50",children:"Exploring layouts for archived session display"})]})]})})}),e.jsx("div",{className:"relative max-w-4xl mx-auto px-6 py-4 border-b border-border/20",children:e.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:["row","grid","compact","mini","timeline"].map(r=>e.jsx("button",{onClick:()=>n(r),className:`
|
|
2
2
|
px-3 py-1.5 rounded-sm text-xs font-display font-bold uppercase tracking-wider
|
|
3
3
|
transition-all duration-100
|
|
4
4
|
${s===r?"bg-rose-500/20 text-rose-400 border border-rose-500/30":"text-muted-foreground hover:text-foreground border border-transparent hover:border-border/30"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,r as d,S as P,g as R,h as N,i as B,D as L,k as G,G as y,N as b,l as M,m as w,n as U,o as $,P as k,p as C,q as W,E as A,X as O,s as Z,a as H,t as S,u as m,v as J,w as p,x as f,y as z,z as v,b as V,H as Q,U as q,f as T}from"./main-
|
|
1
|
+
import{j as e,r as d,S as P,g as R,h as N,i as B,D as L,k as G,G as y,N as b,l as M,m as w,n as U,o as $,P as k,p as C,q as W,E as A,X as O,s as Z,a as H,t as S,u as m,v as J,w as p,x as f,y as z,z as v,b as V,H as Q,U as q,f as T}from"./main-CL2lNLUN.js";const c=[{id:"art-001",name:"React Custom Hook Template",description:"Reusable template for creating data-fetching hooks with loading/error states",type:"code-snippet",scope:"global",contentType:"code",content:`import { useState, useEffect } from 'react';
|
|
2
2
|
|
|
3
3
|
export function useFetch<T>(url: string) {
|
|
4
4
|
const [data, setData] = useState<T | null>(null);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as v,j as s}from"./main-CtqMoNCi.js";const C_={FULL_WIDTH:0,FITTING:1,SMUSHING:2,CONTROLLED_SMUSHING:3};class x_{constructor(){this.comment="",this.numChars=0,this.options={}}}const T_=["1Row","3-D","3D Diagonal","3D-ASCII","3x5","4Max","5 Line Oblique","AMC 3 Line","AMC 3 Liv1","AMC AAA01","AMC Neko","AMC Razor","AMC Razor2","AMC Slash","AMC Slider","AMC Thin","AMC Tubes","AMC Untitled","ANSI Compact","ANSI Regular","ANSI Shadow","ASCII 12","ASCII 9","ASCII New Roman","Acrobatic","Alligator","Alligator2","Alpha","Alphabet","Arrows","Avatar","B1FF","Babyface Lame","Babyface Leet","Banner","Banner3-D","Banner3","Banner4","Barbwire","Basic","Bear","Bell","Benjamin","Big ASCII 12","Big ASCII 9","Big Chief","Big Money-ne","Big Money-nw","Big Money-se","Big Money-sw","Big Mono 12","Big Mono 9","Big","Bigfig","Binary","Block","Blocks","Bloody","BlurVision ASCII","Bolger","Braced","Bright","Broadway KB","Broadway","Bubble","Bulbhead","Caligraphy","Caligraphy2","Calvin S","Cards","Catwalk","Chiseled","Chunky","Circle","Classy","Coder Mini","Coinstak","Cola","Colossal","Computer","Contessa","Contrast","Cosmike","Cosmike2","Crawford","Crawford2","Crazy","Cricket","Cursive","Cyberlarge","Cybermedium","Cybersmall","Cygnet","DANC4","DOS Rebel","DWhistled","Dancing Font","Decimal","Def Leppard","Delta Corps Priest 1","DiamFont","Diamond","Diet Cola","Digital","Doh","Doom","Dot Matrix","Double Shorts","Double","Dr Pepper","Efti Chess","Efti Font","Efti Italic","Efti Piti","Efti Robot","Efti Wall","Efti Water","Electronic","Elite","Emboss 2","Emboss","Epic","Fender","Filter","Fire Font-k","Fire Font-s","Flipped","Flower Power","Font Font","Four Tops","Fraktur","Fun Face","Fun Faces","Future","Fuzzy","Georgi16","Georgia11","Ghost","Ghoulish","Glenyn","Goofy","Gothic","Graceful","Gradient","Graffiti","Greek","Heart Left","Heart Right","Henry 3D","Hex","Hieroglyphs","Hollywood","Horizontal Left","Horizontal Right","ICL-1900","Impossible","Invita","Isometric1","Isometric2","Isometric3","Isometric4","Italic","Ivrit","JS Block Letters","JS Bracket Letters","JS Capital Curves","JS Cursive","JS Stick Letters","Jacky","Jazmine","Jerusalem","Katakana","Kban","Keyboard","Knob","Konto Slant","Konto","LCD","Larry 3D 2","Larry 3D","Lean","Letter","Letters","Lil Devil","Line Blocks","Linux","Lockergnome","Madrid","Marquee","Maxfour","Merlin1","Merlin2","Mike","Mini","Mirror","Mnemonic","Modular","Mono 12","Mono 9","Morse","Morse2","Moscow","Mshebrew210","Muzzle","NScript","NT Greek","NV Script","Nancyj-Fancy","Nancyj-Improved","Nancyj-Underlined","Nancyj","Nipples","O8","OS2","Octal","Ogre","Old Banner","Pagga","Patorjk's Cheese","Patorjk-HeX","Pawp","Peaks Slant","Peaks","Pebbles","Pepper","Poison","Puffy","Puzzle","Pyramid","Rammstein","Rebel","Rectangles","Red Phoenix","Relief","Relief2","Reverse","Roman","Rot13","Rotated","Rounded","Rowan Cap","Rozzo","RubiFont","Runic","Runyc","S Blood","SL Script","Santa Clara","Script","Serifcap","Shaded Blocky","Shadow","Shimrod","Short","Slant Relief","Slant","Slide","Small ASCII 12","Small ASCII 9","Small Block","Small Braille","Small Caps","Small Isometric1","Small Keyboard","Small Mono 12","Small Mono 9","Small Poison","Small Script","Small Shadow","Small Slant","Small Tengwar","Small","Soft","Speed","Spliff","Stacey","Stampate","Stampatello","Standard","Star Strips","Star Wars","Stellar","Stforek","Stick Letters","Stop","Straight","Stronger Than All","Sub-Zero","Swamp Land","Swan","Sweet","THIS","Tanja","Tengwar","Term","Terrace","Test1","The Edge","Thick","Thin","Thorned","Three Point","Ticks Slant","Ticks","Tiles","Tinker-Toy","Tmplr","Tombstone","Train","Trek","Tsalagi","Tubular","Twisted","Two Point","USA Flag","Univers","Upside Down Text","Varsity","Wavescape","Wavy","Weird","Wet Letter","Whimsy","WideTerm","Wow","miniwi"],I_={"ANSI-Compact":"ANSI Compact"},e_=t=>I_[t]?I_[t]:t;function v_(t){return/[.*+?^${}()|[\]\\]/.test(t)?"\\"+t:t}const h_=(()=>{const{FULL_WIDTH:t=0,FITTING:n,SMUSHING:a,CONTROLLED_SMUSHING:I}=C_,T={},f={font:"Standard",fontPath:"./fonts",fetchFontIfMissing:!0};function h(e,$,_){const u=v_(e.trim().slice(-1))||"@",r=$===_-1?new RegExp(u+u+"?\\s*$"):new RegExp(u+"\\s*$");return e.replace(r,"")}function c(e=-1,$=null){let _={},u,r=[[16384,"vLayout",a],[8192,"vLayout",n],[4096,"vRule5",!0],[2048,"vRule4",!0],[1024,"vRule3",!0],[512,"vRule2",!0],[256,"vRule1",!0],[128,"hLayout",a],[64,"hLayout",n],[32,"hRule6",!0],[16,"hRule5",!0],[8,"hRule4",!0],[4,"hRule3",!0],[2,"hRule2",!0],[1,"hRule1",!0]];u=$!==null?$:e;for(const[i,l,o]of r)u>=i?(u-=i,_[l]===void 0&&(_[l]=o)):l!=="vLayout"&&l!=="hLayout"&&(_[l]=!1);return typeof _.hLayout>"u"?e===0?_.hLayout=n:e===-1?_.hLayout=t:_.hRule1||_.hRule2||_.hRule3||_.hRule4||_.hRule5||_.hRule6?_.hLayout=I:_.hLayout=a:_.hLayout===a&&(_.hRule1||_.hRule2||_.hRule3||_.hRule4||_.hRule5||_.hRule6)&&(_.hLayout=I),typeof _.vLayout>"u"?_.vRule1||_.vRule2||_.vRule3||_.vRule4||_.vRule5?_.vLayout=I:_.vLayout=t:_.vLayout===a&&(_.vRule1||_.vRule2||_.vRule3||_.vRule4||_.vRule5)&&(_.vLayout=I),_}function N(e,$,_=""){return e===$&&e!==_?e:!1}function E(e,$){let _="|/\\[]{}()<>";if(e==="_"){if(_.indexOf($)!==-1)return $}else if($==="_"&&_.indexOf(e)!==-1)return e;return!1}function C(e,$){let _="| /\\ [] {} () <>",u=_.indexOf(e),r=_.indexOf($);if(u!==-1&&r!==-1&&u!==r&&Math.abs(u-r)!==1){const i=Math.max(u,r),l=i+1;return _.substring(i,l)}return!1}function x(e,$){let _="[] {} ()",u=_.indexOf(e),r=_.indexOf($);return u!==-1&&r!==-1&&Math.abs(u-r)<=1?"|":!1}function S(e,$){return{"/\\":"|","\\/":"Y","><":"X"}[e+$]||!1}function D(e,$,_=""){return e===_&&$===_?_:!1}function F(e,$){return e===$?e:!1}function p(e,$){return E(e,$)}function b(e,$){return C(e,$)}function q(e,$){return e==="-"&&$==="_"||e==="_"&&$==="-"?"=":!1}function P(e,$){return e==="|"&&$==="|"?"|":!1}function O(e,$,_){return $===" "||$===""||$===_&&e!==" "?e:$}function i_(e,$,_){if(_.fittingRules&&_.fittingRules.vLayout===t)return"invalid";let u,r=Math.min(e.length,$.length),i,l,o=!1,A;if(r===0)return"invalid";for(u=0;u<r;u++)if(i=e.substring(u,u+1),l=$.substring(u,u+1),i!==" "&&l!==" "){if(_.fittingRules&&_.fittingRules.vLayout===n)return"invalid";if(_.fittingRules&&_.fittingRules.vLayout===a)return"end";if(P(i,l)){o=o||!1;continue}if(A=!1,A=_.fittingRules&&_.fittingRules.vRule1?F(i,l):A,A=!A&&_.fittingRules&&_.fittingRules.vRule2?p(i,l):A,A=!A&&_.fittingRules&&_.fittingRules.vRule3?b(i,l):A,A=!A&&_.fittingRules&&_.fittingRules.vRule4?q(i,l):A,o=!0,!A)return"invalid"}return o?"end":"valid"}function $_(e,$,_){let u=e.length,r=e.length,i,l,o,A=1,L,R,d;for(;A<=u;){for(i=e.slice(Math.max(0,r-A),r),l=$.slice(0,Math.min(u,A)),o=l.length,d="",L=0;L<o;L++)if(R=i_(i[L],l[L],_),R==="end")d=R;else if(R==="invalid"){d=R;break}else d===""&&(d="valid");if(d==="invalid"){A--;break}if(d==="end")break;d==="valid"&&A++}return Math.min(u,A)}function a_(e,$,_){let u,r=Math.min(e.length,$.length),i,l,o="",A;const L=_.fittingRules||{};for(u=0;u<r;u++)i=e.substring(u,u+1),l=$.substring(u,u+1),i!==" "&&l!==" "?L.vLayout===n||L.vLayout===a?o+=O(i,l):(A=!1,A=L.vRule5?P(i,l):A,A=!A&&L.vRule1?F(i,l):A,A=!A&&L.vRule2?p(i,l):A,A=!A&&L.vRule3?b(i,l):A,A=!A&&L.vRule4?q(i,l):A,o+=A):o+=O(i,l);return o}function L_(e,$,_,u){let r=e.length,i=$.length,l=e.slice(0,Math.max(0,r-_)),o=e.slice(Math.max(0,r-_),r),A=$.slice(0,Math.min(_,i)),L,R,d,m=[],g;for(R=o.length,L=0;L<R;L++)L>=i?d=o[L]:d=a_(o[L],A[L],u),m.push(d);return g=$.slice(Math.min(_,i),i),[...l,...m,...g]}function Z(e,$){const _=" ".repeat($);return e.map(u=>u+_)}function l_(e,$,_){let u=e[0].length,r=$[0].length,i;return u>r?$=Z($,u-r):r>u&&(e=Z(e,r-u)),i=$_(e,$,_),L_(e,$,i,_)}function X(e,$,_){const u=_.fittingRules||{};if(u.hLayout===t)return 0;let r,i=e.length,l=$.length,o=i,A=1,L=!1,R,d,m,g;if(i===0)return 0;_:for(;A<=o;){const j=i-A;for(R=e.substring(j,j+A),d=$.substring(0,Math.min(A,l)),r=0;r<Math.min(A,l);r++)if(m=R.substring(r,r+1),g=d.substring(r,r+1),m!==" "&&g!==" "){if(u.hLayout===n){A=A-1;break _}else if(u.hLayout===a){(m===_.hardBlank||g===_.hardBlank)&&(A=A-1);break _}else if(L=!0,!(u.hRule1&&N(m,g,_.hardBlank)||u.hRule2&&E(m,g)||u.hRule3&&C(m,g)||u.hRule4&&x(m,g)||u.hRule5&&S(m,g)||u.hRule6&&D(m,g,_.hardBlank))){A=A-1;break _}}if(L)break;A++}return Math.min(o,A)}function __(e,$,_,u){let r,i,l=[],o,A,L,R,d,m,g,j;const M=u.fittingRules||{};if(typeof u.height!="number")throw new Error("height is not defined.");for(r=0;r<u.height;r++){g=e[r],j=$[r],d=g.length,m=j.length,o=d-_,A=g.slice(0,Math.max(0,o)),L="";const u_=Math.max(0,d-_);let U=g.substring(u_,u_+_),z=j.substring(0,Math.min(_,m));for(i=0;i<_;i++){let H=i<d?U.substring(i,i+1):" ",w=i<m?z.substring(i,i+1):" ";if(H!==" "&&w!==" ")if(M.hLayout===n||M.hLayout===a)L+=O(H,w,u.hardBlank);else{const p_=M.hRule1&&N(H,w,u.hardBlank)||M.hRule2&&E(H,w)||M.hRule3&&C(H,w)||M.hRule4&&x(H,w)||M.hRule5&&S(H,w)||M.hRule6&&D(H,w,u.hardBlank)||O(H,w,u.hardBlank);L+=p_}else L+=O(H,w,u.hardBlank)}_>=m?R="":R=j.substring(_,_+Math.max(0,m-_)),l[r]=A+L+R}return l}function W(e){return new Array(e).fill("")}const G=function(e){return Math.max(...e.map($=>$.length))};function k(e,$,_){return e.reduce(function(u,r){return __(u,r.fig,r.overlap||0,_)},W($))}function Y(e,$,_){for(let u=e.length-1;u>0;u--){const r=k(e.slice(0,u),$,_);if(G(r)<=_.width)return{outputFigText:r,chars:e.slice(u)}}return{outputFigText:W($),chars:e}}function o_(e,$,_){let u,r,i=0,l,o,A,L=_.height,R=[],d,m={chars:[],overlap:i},g=[],j,M,u_,U,z;if(typeof L!="number")throw new Error("height is not defined.");o=W(L);const H=_.fittingRules||{};for(_.printDirection===1&&(e=e.split("").reverse().join("")),A=e.length,u=0;u<A;u++)if(j=e.substring(u,u+1),M=j.match(/\s/),r=$[j.charCodeAt(0)],U=null,r){if(H.hLayout!==t){for(i=1e4,l=0;l<L;l++)i=Math.min(i,X(o[l],r[l],_));i=i===1e4?0:i}if(_.width>0&&(_.whitespaceBreak?(u_=k(m.chars.concat([{fig:r,overlap:i}]),L,_),U=k(g.concat([{fig:u_,overlap:m.overlap}]),L,_),d=G(U)):(U=__(o,r,i,_),d=G(U)),d>=_.width&&u>0&&(_.whitespaceBreak?(o=k(g.slice(0,-1),L,_),g.length>1&&(R.push(o),o=W(L)),g=[]):(R.push(o),o=W(L)))),_.width>0&&_.whitespaceBreak&&((!M||u===A-1)&&m.chars.push({fig:r,overlap:i}),M||u===A-1)){for(z=null;U=k(m.chars,L,_),d=G(U),d>=_.width;)z=Y(m.chars,L,_),m={chars:z.chars},R.push(z.outputFigText);d>0&&(z?g.push({fig:U,overlap:1}):g.push({fig:U,overlap:m.overlap})),M&&(g.push({fig:r,overlap:i}),o=W(L)),u===A-1&&(o=k(g,L,_)),m={chars:[],overlap:i};continue}o=__(o,r,i,_)}return G(o)>0&&R.push(o),_.showHardBlanks||R.forEach(function(w){for(A=w.length,l=0;l<A;l++)w[l]=w[l].replace(new RegExp("\\"+_.hardBlank,"g")," ")}),e===""&&R.length===0&&R.push(new Array(L).fill("")),R}const A_=function(e,$){let _;const u=$.fittingRules||{};if(e==="default")_={hLayout:u.hLayout,hRule1:u.hRule1,hRule2:u.hRule2,hRule3:u.hRule3,hRule4:u.hRule4,hRule5:u.hRule5,hRule6:u.hRule6};else if(e==="full")_={hLayout:t,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else if(e==="fitted")_={hLayout:n,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else if(e==="controlled smushing")_={hLayout:I,hRule1:!0,hRule2:!0,hRule3:!0,hRule4:!0,hRule5:!0,hRule6:!0};else if(e==="universal smushing")_={hLayout:a,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else return;return _},J=function(e,$){let _={};const u=$.fittingRules||{};if(e==="default")_={vLayout:u.vLayout,vRule1:u.vRule1,vRule2:u.vRule2,vRule3:u.vRule3,vRule4:u.vRule4,vRule5:u.vRule5};else if(e==="full")_={vLayout:t,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else if(e==="fitted")_={vLayout:n,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else if(e==="controlled smushing")_={vLayout:I,vRule1:!0,vRule2:!0,vRule3:!0,vRule4:!0,vRule5:!0};else if(e==="universal smushing")_={vLayout:a,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else return;return _},V=function(e,$,_){_=_.replace(/\r\n/g,`
|
|
1
|
+
import{r as v,j as s}from"./main-CL2lNLUN.js";const C_={FULL_WIDTH:0,FITTING:1,SMUSHING:2,CONTROLLED_SMUSHING:3};class x_{constructor(){this.comment="",this.numChars=0,this.options={}}}const T_=["1Row","3-D","3D Diagonal","3D-ASCII","3x5","4Max","5 Line Oblique","AMC 3 Line","AMC 3 Liv1","AMC AAA01","AMC Neko","AMC Razor","AMC Razor2","AMC Slash","AMC Slider","AMC Thin","AMC Tubes","AMC Untitled","ANSI Compact","ANSI Regular","ANSI Shadow","ASCII 12","ASCII 9","ASCII New Roman","Acrobatic","Alligator","Alligator2","Alpha","Alphabet","Arrows","Avatar","B1FF","Babyface Lame","Babyface Leet","Banner","Banner3-D","Banner3","Banner4","Barbwire","Basic","Bear","Bell","Benjamin","Big ASCII 12","Big ASCII 9","Big Chief","Big Money-ne","Big Money-nw","Big Money-se","Big Money-sw","Big Mono 12","Big Mono 9","Big","Bigfig","Binary","Block","Blocks","Bloody","BlurVision ASCII","Bolger","Braced","Bright","Broadway KB","Broadway","Bubble","Bulbhead","Caligraphy","Caligraphy2","Calvin S","Cards","Catwalk","Chiseled","Chunky","Circle","Classy","Coder Mini","Coinstak","Cola","Colossal","Computer","Contessa","Contrast","Cosmike","Cosmike2","Crawford","Crawford2","Crazy","Cricket","Cursive","Cyberlarge","Cybermedium","Cybersmall","Cygnet","DANC4","DOS Rebel","DWhistled","Dancing Font","Decimal","Def Leppard","Delta Corps Priest 1","DiamFont","Diamond","Diet Cola","Digital","Doh","Doom","Dot Matrix","Double Shorts","Double","Dr Pepper","Efti Chess","Efti Font","Efti Italic","Efti Piti","Efti Robot","Efti Wall","Efti Water","Electronic","Elite","Emboss 2","Emboss","Epic","Fender","Filter","Fire Font-k","Fire Font-s","Flipped","Flower Power","Font Font","Four Tops","Fraktur","Fun Face","Fun Faces","Future","Fuzzy","Georgi16","Georgia11","Ghost","Ghoulish","Glenyn","Goofy","Gothic","Graceful","Gradient","Graffiti","Greek","Heart Left","Heart Right","Henry 3D","Hex","Hieroglyphs","Hollywood","Horizontal Left","Horizontal Right","ICL-1900","Impossible","Invita","Isometric1","Isometric2","Isometric3","Isometric4","Italic","Ivrit","JS Block Letters","JS Bracket Letters","JS Capital Curves","JS Cursive","JS Stick Letters","Jacky","Jazmine","Jerusalem","Katakana","Kban","Keyboard","Knob","Konto Slant","Konto","LCD","Larry 3D 2","Larry 3D","Lean","Letter","Letters","Lil Devil","Line Blocks","Linux","Lockergnome","Madrid","Marquee","Maxfour","Merlin1","Merlin2","Mike","Mini","Mirror","Mnemonic","Modular","Mono 12","Mono 9","Morse","Morse2","Moscow","Mshebrew210","Muzzle","NScript","NT Greek","NV Script","Nancyj-Fancy","Nancyj-Improved","Nancyj-Underlined","Nancyj","Nipples","O8","OS2","Octal","Ogre","Old Banner","Pagga","Patorjk's Cheese","Patorjk-HeX","Pawp","Peaks Slant","Peaks","Pebbles","Pepper","Poison","Puffy","Puzzle","Pyramid","Rammstein","Rebel","Rectangles","Red Phoenix","Relief","Relief2","Reverse","Roman","Rot13","Rotated","Rounded","Rowan Cap","Rozzo","RubiFont","Runic","Runyc","S Blood","SL Script","Santa Clara","Script","Serifcap","Shaded Blocky","Shadow","Shimrod","Short","Slant Relief","Slant","Slide","Small ASCII 12","Small ASCII 9","Small Block","Small Braille","Small Caps","Small Isometric1","Small Keyboard","Small Mono 12","Small Mono 9","Small Poison","Small Script","Small Shadow","Small Slant","Small Tengwar","Small","Soft","Speed","Spliff","Stacey","Stampate","Stampatello","Standard","Star Strips","Star Wars","Stellar","Stforek","Stick Letters","Stop","Straight","Stronger Than All","Sub-Zero","Swamp Land","Swan","Sweet","THIS","Tanja","Tengwar","Term","Terrace","Test1","The Edge","Thick","Thin","Thorned","Three Point","Ticks Slant","Ticks","Tiles","Tinker-Toy","Tmplr","Tombstone","Train","Trek","Tsalagi","Tubular","Twisted","Two Point","USA Flag","Univers","Upside Down Text","Varsity","Wavescape","Wavy","Weird","Wet Letter","Whimsy","WideTerm","Wow","miniwi"],I_={"ANSI-Compact":"ANSI Compact"},e_=t=>I_[t]?I_[t]:t;function v_(t){return/[.*+?^${}()|[\]\\]/.test(t)?"\\"+t:t}const h_=(()=>{const{FULL_WIDTH:t=0,FITTING:n,SMUSHING:a,CONTROLLED_SMUSHING:I}=C_,T={},f={font:"Standard",fontPath:"./fonts",fetchFontIfMissing:!0};function h(e,$,_){const u=v_(e.trim().slice(-1))||"@",r=$===_-1?new RegExp(u+u+"?\\s*$"):new RegExp(u+"\\s*$");return e.replace(r,"")}function c(e=-1,$=null){let _={},u,r=[[16384,"vLayout",a],[8192,"vLayout",n],[4096,"vRule5",!0],[2048,"vRule4",!0],[1024,"vRule3",!0],[512,"vRule2",!0],[256,"vRule1",!0],[128,"hLayout",a],[64,"hLayout",n],[32,"hRule6",!0],[16,"hRule5",!0],[8,"hRule4",!0],[4,"hRule3",!0],[2,"hRule2",!0],[1,"hRule1",!0]];u=$!==null?$:e;for(const[i,l,o]of r)u>=i?(u-=i,_[l]===void 0&&(_[l]=o)):l!=="vLayout"&&l!=="hLayout"&&(_[l]=!1);return typeof _.hLayout>"u"?e===0?_.hLayout=n:e===-1?_.hLayout=t:_.hRule1||_.hRule2||_.hRule3||_.hRule4||_.hRule5||_.hRule6?_.hLayout=I:_.hLayout=a:_.hLayout===a&&(_.hRule1||_.hRule2||_.hRule3||_.hRule4||_.hRule5||_.hRule6)&&(_.hLayout=I),typeof _.vLayout>"u"?_.vRule1||_.vRule2||_.vRule3||_.vRule4||_.vRule5?_.vLayout=I:_.vLayout=t:_.vLayout===a&&(_.vRule1||_.vRule2||_.vRule3||_.vRule4||_.vRule5)&&(_.vLayout=I),_}function N(e,$,_=""){return e===$&&e!==_?e:!1}function E(e,$){let _="|/\\[]{}()<>";if(e==="_"){if(_.indexOf($)!==-1)return $}else if($==="_"&&_.indexOf(e)!==-1)return e;return!1}function C(e,$){let _="| /\\ [] {} () <>",u=_.indexOf(e),r=_.indexOf($);if(u!==-1&&r!==-1&&u!==r&&Math.abs(u-r)!==1){const i=Math.max(u,r),l=i+1;return _.substring(i,l)}return!1}function x(e,$){let _="[] {} ()",u=_.indexOf(e),r=_.indexOf($);return u!==-1&&r!==-1&&Math.abs(u-r)<=1?"|":!1}function S(e,$){return{"/\\":"|","\\/":"Y","><":"X"}[e+$]||!1}function D(e,$,_=""){return e===_&&$===_?_:!1}function F(e,$){return e===$?e:!1}function p(e,$){return E(e,$)}function b(e,$){return C(e,$)}function q(e,$){return e==="-"&&$==="_"||e==="_"&&$==="-"?"=":!1}function P(e,$){return e==="|"&&$==="|"?"|":!1}function O(e,$,_){return $===" "||$===""||$===_&&e!==" "?e:$}function i_(e,$,_){if(_.fittingRules&&_.fittingRules.vLayout===t)return"invalid";let u,r=Math.min(e.length,$.length),i,l,o=!1,A;if(r===0)return"invalid";for(u=0;u<r;u++)if(i=e.substring(u,u+1),l=$.substring(u,u+1),i!==" "&&l!==" "){if(_.fittingRules&&_.fittingRules.vLayout===n)return"invalid";if(_.fittingRules&&_.fittingRules.vLayout===a)return"end";if(P(i,l)){o=o||!1;continue}if(A=!1,A=_.fittingRules&&_.fittingRules.vRule1?F(i,l):A,A=!A&&_.fittingRules&&_.fittingRules.vRule2?p(i,l):A,A=!A&&_.fittingRules&&_.fittingRules.vRule3?b(i,l):A,A=!A&&_.fittingRules&&_.fittingRules.vRule4?q(i,l):A,o=!0,!A)return"invalid"}return o?"end":"valid"}function $_(e,$,_){let u=e.length,r=e.length,i,l,o,A=1,L,R,d;for(;A<=u;){for(i=e.slice(Math.max(0,r-A),r),l=$.slice(0,Math.min(u,A)),o=l.length,d="",L=0;L<o;L++)if(R=i_(i[L],l[L],_),R==="end")d=R;else if(R==="invalid"){d=R;break}else d===""&&(d="valid");if(d==="invalid"){A--;break}if(d==="end")break;d==="valid"&&A++}return Math.min(u,A)}function a_(e,$,_){let u,r=Math.min(e.length,$.length),i,l,o="",A;const L=_.fittingRules||{};for(u=0;u<r;u++)i=e.substring(u,u+1),l=$.substring(u,u+1),i!==" "&&l!==" "?L.vLayout===n||L.vLayout===a?o+=O(i,l):(A=!1,A=L.vRule5?P(i,l):A,A=!A&&L.vRule1?F(i,l):A,A=!A&&L.vRule2?p(i,l):A,A=!A&&L.vRule3?b(i,l):A,A=!A&&L.vRule4?q(i,l):A,o+=A):o+=O(i,l);return o}function L_(e,$,_,u){let r=e.length,i=$.length,l=e.slice(0,Math.max(0,r-_)),o=e.slice(Math.max(0,r-_),r),A=$.slice(0,Math.min(_,i)),L,R,d,m=[],g;for(R=o.length,L=0;L<R;L++)L>=i?d=o[L]:d=a_(o[L],A[L],u),m.push(d);return g=$.slice(Math.min(_,i),i),[...l,...m,...g]}function Z(e,$){const _=" ".repeat($);return e.map(u=>u+_)}function l_(e,$,_){let u=e[0].length,r=$[0].length,i;return u>r?$=Z($,u-r):r>u&&(e=Z(e,r-u)),i=$_(e,$,_),L_(e,$,i,_)}function X(e,$,_){const u=_.fittingRules||{};if(u.hLayout===t)return 0;let r,i=e.length,l=$.length,o=i,A=1,L=!1,R,d,m,g;if(i===0)return 0;_:for(;A<=o;){const j=i-A;for(R=e.substring(j,j+A),d=$.substring(0,Math.min(A,l)),r=0;r<Math.min(A,l);r++)if(m=R.substring(r,r+1),g=d.substring(r,r+1),m!==" "&&g!==" "){if(u.hLayout===n){A=A-1;break _}else if(u.hLayout===a){(m===_.hardBlank||g===_.hardBlank)&&(A=A-1);break _}else if(L=!0,!(u.hRule1&&N(m,g,_.hardBlank)||u.hRule2&&E(m,g)||u.hRule3&&C(m,g)||u.hRule4&&x(m,g)||u.hRule5&&S(m,g)||u.hRule6&&D(m,g,_.hardBlank))){A=A-1;break _}}if(L)break;A++}return Math.min(o,A)}function __(e,$,_,u){let r,i,l=[],o,A,L,R,d,m,g,j;const M=u.fittingRules||{};if(typeof u.height!="number")throw new Error("height is not defined.");for(r=0;r<u.height;r++){g=e[r],j=$[r],d=g.length,m=j.length,o=d-_,A=g.slice(0,Math.max(0,o)),L="";const u_=Math.max(0,d-_);let U=g.substring(u_,u_+_),z=j.substring(0,Math.min(_,m));for(i=0;i<_;i++){let H=i<d?U.substring(i,i+1):" ",w=i<m?z.substring(i,i+1):" ";if(H!==" "&&w!==" ")if(M.hLayout===n||M.hLayout===a)L+=O(H,w,u.hardBlank);else{const p_=M.hRule1&&N(H,w,u.hardBlank)||M.hRule2&&E(H,w)||M.hRule3&&C(H,w)||M.hRule4&&x(H,w)||M.hRule5&&S(H,w)||M.hRule6&&D(H,w,u.hardBlank)||O(H,w,u.hardBlank);L+=p_}else L+=O(H,w,u.hardBlank)}_>=m?R="":R=j.substring(_,_+Math.max(0,m-_)),l[r]=A+L+R}return l}function W(e){return new Array(e).fill("")}const G=function(e){return Math.max(...e.map($=>$.length))};function k(e,$,_){return e.reduce(function(u,r){return __(u,r.fig,r.overlap||0,_)},W($))}function Y(e,$,_){for(let u=e.length-1;u>0;u--){const r=k(e.slice(0,u),$,_);if(G(r)<=_.width)return{outputFigText:r,chars:e.slice(u)}}return{outputFigText:W($),chars:e}}function o_(e,$,_){let u,r,i=0,l,o,A,L=_.height,R=[],d,m={chars:[],overlap:i},g=[],j,M,u_,U,z;if(typeof L!="number")throw new Error("height is not defined.");o=W(L);const H=_.fittingRules||{};for(_.printDirection===1&&(e=e.split("").reverse().join("")),A=e.length,u=0;u<A;u++)if(j=e.substring(u,u+1),M=j.match(/\s/),r=$[j.charCodeAt(0)],U=null,r){if(H.hLayout!==t){for(i=1e4,l=0;l<L;l++)i=Math.min(i,X(o[l],r[l],_));i=i===1e4?0:i}if(_.width>0&&(_.whitespaceBreak?(u_=k(m.chars.concat([{fig:r,overlap:i}]),L,_),U=k(g.concat([{fig:u_,overlap:m.overlap}]),L,_),d=G(U)):(U=__(o,r,i,_),d=G(U)),d>=_.width&&u>0&&(_.whitespaceBreak?(o=k(g.slice(0,-1),L,_),g.length>1&&(R.push(o),o=W(L)),g=[]):(R.push(o),o=W(L)))),_.width>0&&_.whitespaceBreak&&((!M||u===A-1)&&m.chars.push({fig:r,overlap:i}),M||u===A-1)){for(z=null;U=k(m.chars,L,_),d=G(U),d>=_.width;)z=Y(m.chars,L,_),m={chars:z.chars},R.push(z.outputFigText);d>0&&(z?g.push({fig:U,overlap:1}):g.push({fig:U,overlap:m.overlap})),M&&(g.push({fig:r,overlap:i}),o=W(L)),u===A-1&&(o=k(g,L,_)),m={chars:[],overlap:i};continue}o=__(o,r,i,_)}return G(o)>0&&R.push(o),_.showHardBlanks||R.forEach(function(w){for(A=w.length,l=0;l<A;l++)w[l]=w[l].replace(new RegExp("\\"+_.hardBlank,"g")," ")}),e===""&&R.length===0&&R.push(new Array(L).fill("")),R}const A_=function(e,$){let _;const u=$.fittingRules||{};if(e==="default")_={hLayout:u.hLayout,hRule1:u.hRule1,hRule2:u.hRule2,hRule3:u.hRule3,hRule4:u.hRule4,hRule5:u.hRule5,hRule6:u.hRule6};else if(e==="full")_={hLayout:t,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else if(e==="fitted")_={hLayout:n,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else if(e==="controlled smushing")_={hLayout:I,hRule1:!0,hRule2:!0,hRule3:!0,hRule4:!0,hRule5:!0,hRule6:!0};else if(e==="universal smushing")_={hLayout:a,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else return;return _},J=function(e,$){let _={};const u=$.fittingRules||{};if(e==="default")_={vLayout:u.vLayout,vRule1:u.vRule1,vRule2:u.vRule2,vRule3:u.vRule3,vRule4:u.vRule4,vRule5:u.vRule5};else if(e==="full")_={vLayout:t,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else if(e==="fitted")_={vLayout:n,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else if(e==="controlled smushing")_={vLayout:I,vRule1:!0,vRule2:!0,vRule3:!0,vRule4:!0,vRule5:!0};else if(e==="universal smushing")_={vLayout:a,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else return;return _},V=function(e,$,_){_=_.replace(/\r\n/g,`
|
|
2
2
|
`).replace(/\r/g,`
|
|
3
3
|
`);const u=e_(e);let r=_.split(`
|
|
4
4
|
`),i=[],l,o,A;for(o=r.length,l=0;l<o;l++)i=i.concat(o_(r[l],T[u],$));for(o=i.length,A=i[0],l=1;l<o;l++)A=l_(A,i[l],$);return A?A.join(`
|