@jyork0828/pi-pilot 0.0.7 → 0.1.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/public/index.html CHANGED
@@ -28,10 +28,10 @@
28
28
  media="print"
29
29
  onload="this.media='all'"
30
30
  />
31
- <script type="module" crossorigin src="/assets/index-CX2ohSDO.js"></script>
31
+ <script type="module" crossorigin src="/assets/index-DfuMmOel.js"></script>
32
32
  <link rel="modulepreload" crossorigin href="/assets/markdown-CY-Rm0E5.js">
33
33
  <link rel="modulepreload" crossorigin href="/assets/shiki-BZ0sbaMe.js">
34
- <link rel="stylesheet" crossorigin href="/assets/index-CyoTMDCN.css">
34
+ <link rel="stylesheet" crossorigin href="/assets/index-B4g3DrFC.css">
35
35
  </head>
36
36
  <body>
37
37
  <div id="root"></div>
@@ -1 +0,0 @@
1
- import{j as e,r as c}from"./markdown-CY-Rm0E5.js";import{_ as k,r as u,b as I,A as T,a as E,y as _,x as b,t as P,v as R,w as B,B as y,u as D,ac as W,ab as z,j as F,E as H,g as M,I as L,X as S,e as K,f as O,Q as U,C as V,h as $,c as G,H as g,m as Q}from"./index-CX2ohSDO.js";import"./shiki-BZ0sbaMe.js";const X=()=>Math.min(window.innerWidth*.7,960);function se({open:t,onClose:o}){const{width:r,isResizing:a,onMouseDown:i,onDoubleClick:s}=k({storageKey:I,defaultWidth:T,min:E,max:X,side:"left",enabled:t});return t?e.jsxs("aside",{className:"relative flex h-full shrink-0 flex-col border-l border-border bg-popover",style:{width:`${r}px`},children:[e.jsx("div",{onMouseDown:i,onDoubleClick:s,className:u("absolute left-0 top-0 z-30 h-full w-px cursor-col-resize","bg-transparent hover:bg-brand/60 transition-colors",a&&"bg-brand"),"aria-label":"Resize artifacts panel",title:"Drag to resize · double-click to reset",children:e.jsx("div",{className:"absolute inset-y-0 -left-2 -right-2"})}),e.jsx(Y,{onClose:o})]}):null}function Y({onClose:t}){const o=_(n=>n.items),r=b(n=>n.selectedToolCallId),a=b(n=>n.select),i=c.useMemo(()=>P(o),[o]),s=R(i,r)??B(i),[d,x]=c.useState("preview"),N=s==null?void 0:s.toolCallId;if(c.useEffect(()=>{x("preview")},[N]),!s)return e.jsxs(e.Fragment,{children:[e.jsx(j,{title:"Artifacts",onClose:t}),e.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-8 text-center",children:[e.jsx(y,{className:"h-6 w-6 text-muted-foreground/50"}),e.jsxs("p",{className:"text-[12.5px] leading-relaxed text-muted-foreground",children:["No artifacts yet. When the agent publishes one with"," ",e.jsx("span",{className:"font-mono text-[11.5px]",children:"create_artifact"}),", it shows up here."]})]})]});const p=D(i),f=W(i,s.id),l=z(i,s),m=n=>{const C=f.findIndex(A=>A.toolCallId===s.toolCallId),h=f[C+n];h&&a(h.toolCallId)};return e.jsxs(e.Fragment,{children:[e.jsx(j,{title:s.title,onClose:t}),p.length>1&&e.jsx("div",{className:"flex gap-1 overflow-x-auto border-b border-border-soft px-2 py-1.5",children:p.map(n=>e.jsx("button",{type:"button",onClick:()=>a(n.toolCallId),title:n.title,className:u("max-w-[160px] shrink-0 truncate rounded-md px-2 py-0.5 text-[11.5px] font-medium transition-colors",n.id===s.id?"bg-brand-ghost text-brand-strong":"text-muted-foreground hover:bg-accent/60 hover:text-foreground"),children:n.title},n.id))}),e.jsxs("div",{className:"flex items-center gap-2 border-b border-border-soft px-3 py-1.5",children:[e.jsx(F,{tone:"ghost",children:s.type}),l.count>1&&e.jsxs("div",{className:"flex items-center gap-0.5 text-muted-foreground",children:[e.jsx(w,{dir:"prev",disabled:l.index<=1,onClick:()=>m(-1)}),e.jsxs("span",{className:"font-mono text-[11px] tabular-nums",children:["v",l.index,"/",l.count]}),e.jsx(w,{dir:"next",disabled:l.index>=l.count,onClick:()=>m(1)})]}),e.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[(s.type==="html"||s.type==="svg")&&e.jsxs("div",{className:"flex items-center gap-0.5 rounded-md border border-border-soft bg-card p-0.5 text-[11px] font-medium",children:[e.jsx(v,{active:d==="preview",onClick:()=>x("preview"),icon:e.jsx(H,{className:"h-3 w-3"}),label:"Preview"}),e.jsx(v,{active:d==="code",onClick:()=>x("code"),icon:e.jsx(M,{className:"h-3 w-3"}),label:"Code"})]}),e.jsx(J,{content:s.content})]})]}),e.jsx("div",{className:"min-h-0 flex-1 overflow-auto",children:e.jsx(q,{record:s,view:d})})]})}function q({record:t,view:o}){const{type:r,content:a,language:i}=t;return r==="markdown"?e.jsx("div",{className:"px-4 py-3",children:e.jsx(G,{text:a})}):r==="code"?e.jsx(g,{code:a,lang:i,className:"px-4 py-3"}):o==="code"?e.jsx(g,{code:a,lang:r,className:"px-4 py-3"}):e.jsx(Q,{code:a,lang:r})}function j({title:t,onClose:o}){return e.jsxs("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-3 py-2",children:[e.jsx(y,{className:"h-3.5 w-3.5 shrink-0 text-brand"}),e.jsx("span",{className:"min-w-0 flex-1 truncate text-[13px] font-medium text-foreground",title:t,children:t}),e.jsx(L,{title:"Close",onClick:o,"aria-label":"Close artifacts panel",children:e.jsx(S,{className:"h-3.5 w-3.5"})})]})}function v({active:t,onClick:o,icon:r,label:a}){return e.jsxs("button",{type:"button",onClick:o,"aria-pressed":t,className:u("flex items-center gap-1 rounded-[5px] px-1.5 py-0.5 transition-colors",t?"bg-brand-ghost text-brand-strong":"text-muted-foreground hover:text-foreground"),children:[r,a]})}function w({dir:t,disabled:o,onClick:r}){return e.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":t==="prev"?"Previous version":"Next version",className:"rounded p-0.5 transition-colors hover:text-foreground disabled:cursor-not-allowed disabled:opacity-30",children:t==="prev"?e.jsx(K,{className:"h-3.5 w-3.5"}):e.jsx(O,{className:"h-3.5 w-3.5"})})}function J({content:t}){const o=U(s=>s.pushToast),[r,a]=c.useState(!1),i=async()=>{try{await navigator.clipboard.writeText(t),a(!0),setTimeout(()=>a(!1),1200)}catch{o({id:`copy-${Date.now()}`,workspaceId:"",message:"Copy failed — clipboard not available",notifyType:"warning"})}};return e.jsx("button",{type:"button",onClick:i,title:"Copy content","aria-label":"Copy artifact content",className:"rounded-md border border-border-soft bg-card p-1 text-muted-foreground transition-colors hover:text-foreground",children:r?e.jsx(V,{className:"h-3 w-3 text-signal-ok"}):e.jsx($,{className:"h-3 w-3"})})}export{se as ArtifactsPanel};
@@ -1,19 +0,0 @@
1
- import{j as e,r as x}from"./markdown-CY-Rm0E5.js";import{s as ee,D as te,X as _,K as se,J as re,a6 as ne,V as oe,a9 as ae,a8 as le,L as B,r as P,P as ie,$ as de,Z as ce,n as g,o as xe,I as F,R as me,N as ue,F as z,M as pe,k as he,j as ge,i as fe,p as be,a1 as je,T as Ne,aa as ye,a5 as ve}from"./index-CX2ohSDO.js";import"./shiki-BZ0sbaMe.js";/**
2
- * @license lucide-react v0.468.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const ke=ee("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);function we({workspaceId:t,request:s,onClose:r}){return e.jsxs(te,{open:!0,onClose:r,className:"m-4 h-full max-h-[90vh] w-full max-w-3xl",children:[e.jsx(Se,{kind:s.kind,mode:s.mode,onClose:r}),s.mode==="create"?e.jsx(Pe,{workspaceId:t,kind:s.kind,defaultScope:s.defaultScope,onDone:r}):e.jsx(Ce,{workspaceId:t,kind:s.kind,filePath:s.filePath,onDone:r})]})}function Se({kind:t,mode:s,onClose:r}){const a=s==="create"?t==="skill"?"New skill":"New prompt template":t==="skill"?"Edit skill":"Edit prompt template";return e.jsxs("header",{className:"flex items-center justify-between border-b border-border px-4 py-2",children:[e.jsx("h2",{className:"text-sm font-semibold text-foreground",children:a}),e.jsx("button",{type:"button",onClick:r,className:"rounded-md p-1 text-muted-foreground hover:bg-accent hover:text-accent-foreground","aria-label":"Close editor",children:e.jsx(_,{className:"h-4 w-4"})})]})}function Pe({workspaceId:t,kind:s,defaultScope:r,onDone:a}){var v,k;const[o,l]=x.useState(r),[i,n]=x.useState(""),[d,u]=x.useState(""),[h,f]=x.useState(""),[m,b]=x.useState(!1),[c,p]=x.useState(s==="skill"?Ee:""),j=se(t),N=re(t),S=j.isPending||N.isPending,C=((v=j.error)==null?void 0:v.message)??((k=N.error)==null?void 0:k.message),y=async()=>{try{s==="skill"?await j.mutateAsync({scope:o,name:i.trim(),description:d.trim(),body:c,disableModelInvocation:m||void 0}):await N.mutateAsync({scope:o,name:i.trim(),description:d.trim(),argumentHint:h.trim()||void 0,body:c}),a()}catch{}},E=!S&&i.trim().length>0&&d.trim().length>0&&c.length>0;return e.jsx(O,{kind:s,scope:o,onScopeChange:l,scopeLocked:!1,name:i,onNameChange:n,description:d,onDescriptionChange:u,argumentHint:h,onArgumentHintChange:f,disableModelInvocation:m,onDisableModelInvocationChange:b,body:c,onBodyChange:p,submitLabel:"Create",canSubmit:E,pending:S,error:C,onSubmit:y,onCancel:a})}function Ce({workspaceId:t,kind:s,filePath:r,onDone:a}){var R,H,I;const o=ne(t,s==="skill"?r:void 0),l=oe(t,s==="prompt"?r:void 0),i=s==="skill"?o.data:l.data,n=(R=s==="skill"?o.error:l.error)==null?void 0:R.message,d=s==="skill"?o.isLoading:l.isLoading,[u,h]=x.useState(!1),[f]=x.useState(void 0),[m,b]=x.useState(""),[c,p]=x.useState(""),[j,N]=x.useState(""),[S,C]=x.useState(!1),[y,E]=x.useState("");x.useEffect(()=>{!i||u||(b(i.name),p(i.description),N(i.argumentHint??""),C(!!i.disableModelInvocation),E(i.body),h(!0))},[i,u]);const v=ae(t),k=le(t),$=v.isPending||k.isPending,Q=((H=v.error)==null?void 0:H.message)??((I=k.error)==null?void 0:I.message),Y=async()=>{try{s==="skill"?await v.mutateAsync({filePath:r,name:m.trim(),description:c.trim(),body:y,disableModelInvocation:S||void 0}):await k.mutateAsync({filePath:r,name:m.trim(),description:c.trim(),argumentHint:j.trim()||void 0,body:y}),a()}catch{}};if(d)return e.jsxs("div",{className:"flex flex-1 items-center justify-center text-muted-foreground",children:[e.jsx(B,{className:"h-4 w-4 animate-spin"}),e.jsx("span",{className:"ml-2 text-xs",children:"Loading file\\u2026"})]});if(n||!i)return e.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-4 text-xs text-signal-error",children:[e.jsx("p",{children:n??"Failed to load file"}),e.jsx("button",{type:"button",onClick:a,className:"rounded-md border border-input bg-background px-3 py-1.5 text-foreground",children:"Close"})]});const q=u&&!$&&m.trim().length>0&&c.trim().length>0&&y.length>0;return e.jsx(O,{kind:s,scope:f??i.scope,onScopeChange:()=>{},scopeLocked:!0,scopeLockedReason:"Move the file on disk to change scope.",name:m,onNameChange:b,description:c,onDescriptionChange:p,argumentHint:j,onArgumentHintChange:N,disableModelInvocation:S,onDisableModelInvocationChange:C,body:y,onBodyChange:E,filePath:i.filePath,submitLabel:"Save",canSubmit:q,pending:$,error:Q,onSubmit:Y,onCancel:a})}function O(t){return e.jsxs("form",{className:"flex min-h-0 flex-1 flex-col",onSubmit:s=>{s.preventDefault(),t.canSubmit&&t.onSubmit()},children:[e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-3 overflow-y-auto p-4",children:[t.filePath&&e.jsx("p",{className:"truncate font-mono text-[10px] text-muted-foreground",title:t.filePath,children:t.filePath}),e.jsxs(w,{label:"Scope",children:[e.jsxs("div",{className:"flex gap-1",children:[e.jsx(U,{active:t.scope==="project",onClick:()=>t.onScopeChange("project"),disabled:t.scopeLocked,children:"Project"}),e.jsx(U,{active:t.scope==="user",onClick:()=>t.onScopeChange("user"),disabled:t.scopeLocked,children:"User"})]}),e.jsx("p",{className:"mt-1 text-[11px] text-muted-foreground",children:t.scopeLocked?t.scopeLockedReason??"Scope is fixed for existing files.":t.scope==="project"?`Lives in <workspace>/.pi/${t.kind==="skill"?"skills":"prompts"}/`:`Lives in ~/.pi/agent/${t.kind==="skill"?"skills":"prompts"}/`})]}),e.jsxs(w,{label:t.kind==="skill"?"Name":"Name (becomes /name)",children:[e.jsx("input",{type:"text",value:t.name,onChange:s=>t.onNameChange(s.target.value),placeholder:t.kind==="skill"?"pdf-tools":"review-pr",className:"w-full rounded-md border border-input bg-background px-3 py-1.5 text-sm font-mono outline-none focus:ring-1 focus:ring-ring"}),e.jsxs("p",{className:"mt-1 text-[11px] text-muted-foreground",children:["Lowercase a-z, 0-9, hyphens",t.kind==="prompt"?" or underscores":"","; 1\\u201364 chars."]})]}),e.jsx(w,{label:"Description",children:e.jsx("textarea",{value:t.description,onChange:s=>t.onDescriptionChange(s.target.value),rows:2,placeholder:t.kind==="skill"?"What this skill does and when to use it. Be specific.":"What this prompt template does.",className:"w-full resize-y rounded-md border border-input bg-background px-3 py-1.5 text-sm outline-none focus:ring-1 focus:ring-ring"})}),t.kind==="skill"?e.jsx(w,{label:"",children:e.jsxs("label",{className:"flex cursor-pointer items-start gap-2 text-xs",children:[e.jsx("input",{type:"checkbox",checked:t.disableModelInvocation,onChange:s=>t.onDisableModelInvocationChange(s.target.checked),className:"mt-0.5 accent-primary"}),e.jsxs("span",{children:[e.jsx("span",{className:"font-medium text-foreground",children:"Manual invocation only"}),e.jsxs("span",{className:"block text-muted-foreground",children:["Hide from the system prompt. Users must explicitly run /skill:",t.name||"name","."]})]})]})}):e.jsxs(w,{label:"Argument hint (optional)",children:[e.jsx("input",{type:"text",value:t.argumentHint,onChange:s=>t.onArgumentHintChange(s.target.value),placeholder:"<file> [--flag]",className:"w-full rounded-md border border-input bg-background px-3 py-1.5 text-sm font-mono outline-none focus:ring-1 focus:ring-ring"}),e.jsxs("p",{className:"mt-1 text-[11px] text-muted-foreground",children:["Shown in autocomplete, e.g. ",e.jsx("code",{className:"font-mono",children:"<PR-URL>"}),"."]})]}),e.jsxs(w,{label:"Body (markdown)",children:[e.jsx("textarea",{value:t.body,onChange:s=>t.onBodyChange(s.target.value),rows:14,spellCheck:!1,className:"w-full resize-y rounded-md border border-input bg-background px-3 py-1.5 text-sm font-mono outline-none focus:ring-1 focus:ring-ring"}),t.kind==="prompt"&&e.jsxs("p",{className:"mt-1 text-[11px] text-muted-foreground",children:["Use ",e.jsx("code",{className:"font-mono",children:"$1"}),", ",e.jsx("code",{className:"font-mono",children:"$2"}),", ",e.jsx("code",{className:"font-mono",children:"$@"}),", ",e.jsxs("code",{className:"font-mono",children:["$","{@:N}"]}),", ",e.jsxs("code",{className:"font-mono",children:["$","{@:N:L}"]})," for arguments."]})]}),t.error&&e.jsx("p",{className:"rounded-md border border-error-ghost bg-error-ghost px-3 py-1.5 text-xs text-signal-error",children:t.error})]}),e.jsxs("footer",{className:"flex items-center justify-end gap-2 border-t border-border px-4 py-2",children:[e.jsx("button",{type:"button",onClick:t.onCancel,disabled:t.pending,className:"rounded-md border border-input bg-background px-3 py-1.5 text-sm text-foreground hover:bg-accent disabled:opacity-50",children:"Cancel"}),e.jsxs("button",{type:"submit",disabled:!t.canSubmit,className:"inline-flex items-center gap-1 rounded-md bg-primary px-3 py-1.5 text-sm text-primary-foreground disabled:opacity-50",children:[t.pending&&e.jsx(B,{className:"h-3.5 w-3.5 animate-spin"}),t.submitLabel]})]})]})}function w({label:t,children:s}){return e.jsxs("div",{children:[t&&e.jsx("label",{className:"mb-1 block text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:t}),s]})}function U({active:t,disabled:s,onClick:r,children:a}){return e.jsx("button",{type:"button",onClick:r,disabled:s,className:P("rounded-md border px-3 py-1 text-xs transition-colors",t?"border-primary bg-primary text-primary-foreground":"border-input bg-background text-foreground hover:bg-accent",s&&"cursor-not-allowed opacity-60 hover:bg-background"),children:a})}const Ee=`# Skill name
7
-
8
- Describe what the skill does, when to use it, and any setup steps.
9
-
10
- ## Usage
11
-
12
- \`\`\`bash
13
- ./scripts/example.sh <input>
14
- \`\`\`
15
- `;function Ue({workspaceId:t,open:s,onClose:r}){return s?e.jsx("aside",{className:`flex h-full ${ie} shrink-0 flex-col border-l border-border bg-popover`,children:e.jsx(De,{workspaceId:t,onClose:r})}):null}function De({workspaceId:t,onClose:s}){const{data:r,isLoading:a,error:o}=de(t),l=ce(t),[i,n]=x.useState("skills"),[d,u]=x.useState(null),h=c=>u({kind:c,mode:"create",defaultScope:"project"}),f=(c,p)=>u({kind:c,mode:"edit",filePath:p}),m={skills:(r==null?void 0:r.skills.length)??0,prompts:(r==null?void 0:r.prompts.length)??0,extensions:((r==null?void 0:r.builtinExtensions.length)??0)+((r==null?void 0:r.extensions.filter(c=>c.source.label!=="inline").length)??0)},b=m.skills+m.prompts+m.extensions;return a?e.jsxs(e.Fragment,{children:[e.jsx(L,{total:0,onReload:()=>l.mutate(),reloading:l.isPending,onClose:s}),e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[e.jsxs("div",{className:"flex gap-1 border-b border-border-soft px-3 pb-1 pt-2",children:[e.jsx(g,{className:"h-6 w-20 rounded-md"}),e.jsx(g,{className:"h-6 w-24 rounded-md"}),e.jsx(g,{className:"h-6 w-28 rounded-md"})]}),e.jsxs("div",{className:"flex-1 space-y-2 p-3",children:[e.jsx(g,{className:"h-7 w-24 rounded-md"}),Array.from({length:4}).map((c,p)=>e.jsxs("div",{className:"rounded-[10px] border border-border-soft bg-card px-3 py-2.5",children:[e.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[e.jsx(g,{className:"h-3.5 w-32"}),e.jsx(g,{className:"h-3 w-12 rounded-full"})]}),e.jsx(xe,{className:"mt-2",rows:2}),e.jsx(g,{className:"mt-2 h-2.5 w-40"})]},p))]})]})]}):o||!r?e.jsxs(e.Fragment,{children:[e.jsx(L,{total:0,onReload:()=>l.mutate(),reloading:l.isPending,onClose:s}),e.jsx("p",{className:"px-4 py-4 text-center text-[12.5px] text-signal-error",children:(o==null?void 0:o.message)??"Failed to load resources"})]}):e.jsxs(e.Fragment,{children:[e.jsx(L,{total:b,onReload:()=>l.mutate(),reloading:l.isPending,onClose:s}),l.isError&&e.jsx("p",{className:"border-b border-error-ghost bg-error-ghost px-4 py-1.5 text-[11.5px] text-signal-error",children:l.error.message}),e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[e.jsxs("div",{className:"flex gap-1 border-b border-border-soft px-3 pb-1 pt-2",children:[e.jsx(T,{active:i==="skills",onClick:()=>n("skills"),label:"Skills",count:m.skills}),e.jsx(T,{active:i==="prompts",onClick:()=>n("prompts"),label:"Prompts",count:m.prompts}),e.jsx(T,{active:i==="extensions",onClick:()=>n("extensions"),label:"Extensions",count:m.extensions})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto p-3",children:[i==="skills"&&e.jsx(Le,{workspaceId:t,skills:r.skills,onNew:()=>h("skill"),onEdit:c=>f("skill",c.filePath)}),i==="prompts"&&e.jsx(Te,{workspaceId:t,prompts:r.prompts,onNew:()=>h("prompt"),onEdit:c=>f("prompt",c.filePath)}),i==="extensions"&&e.jsx(Be,{workspaceId:t,builtinExtensions:r.builtinExtensions,extensionsEnabled:r.extensionsEnabled,extensions:r.extensions,errors:r.extensionErrors,disabledExtensions:r.disabledExtensions})]})]}),d&&e.jsx(we,{workspaceId:t,request:d,onClose:()=>u(null)})]})}function L({total:t,onReload:s,reloading:r,onClose:a}){return e.jsxs("header",{className:"flex h-[44px] items-center gap-1 border-b border-border-soft px-4",children:[e.jsxs("span",{className:"text-[13px] font-medium tracking-[-0.005em] text-foreground",children:["Resources",t>0&&e.jsx("span",{className:"ml-1.5 text-muted-foreground/60",children:t})]}),e.jsx("span",{className:"flex-1"}),e.jsx(F,{onClick:s,disabled:r,title:"Reload resources","aria-label":"Reload resources",children:e.jsx(me,{className:P("h-3.5 w-3.5",r&&"animate-spin")})}),e.jsx(F,{onClick:a,title:"Close","aria-label":"Close resources panel",children:e.jsx(_,{className:"h-3.5 w-3.5"})})]})}function T({active:t,onClick:s,label:r,count:a}){return e.jsxs("button",{type:"button",onClick:s,className:P("inline-flex items-center gap-1.5 rounded-md px-2.5 py-1 text-[12px] font-medium transition-colors ring-brand-focus",t?"bg-brand-ghost text-brand-strong":"text-muted-foreground hover:bg-accent/60 hover:text-foreground"),children:[e.jsx("span",{children:r}),e.jsx("span",{className:"font-mono text-[10.5px] tabular-nums opacity-70",children:a})]})}function Le({workspaceId:t,skills:s,onNew:r,onEdit:a}){const o=ue(t),l=z(),i=async n=>{await l({title:"Delete skill",message:`Delete skill "${n.name}"?
16
-
17
- This removes ${n.filePath} and any sibling files in its directory.`,confirmLabel:"Delete",variant:"danger"})&&o.mutate({filePath:n.filePath})};return e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx(G,{label:"New skill",onClick:r}),o.isError&&e.jsx("p",{className:"rounded-md border border-error-ghost bg-error-ghost px-2.5 py-1.5 text-[11.5px] text-signal-error",children:o.error.message}),s.length===0?e.jsx(Z,{text:"No skills discovered."}):e.jsx("ul",{className:"flex flex-col gap-2",children:s.map(n=>{var d;return e.jsxs("li",{className:"rounded-[10px] border border-border-soft bg-card px-3 py-2.5 transition-colors hover:border-border",children:[e.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[e.jsx("span",{className:"truncate text-[13px] font-medium text-foreground",children:n.name}),e.jsx(A,{source:n.source})]}),n.description&&e.jsx("p",{className:"mt-1 text-[12px] text-muted-foreground",children:n.description}),n.disableModelInvocation&&e.jsxs("p",{className:"mt-1 text-[11.5px] italic text-muted-foreground",children:["Manual invocation only (/skill:",n.name,")"]}),e.jsx(M,{path:n.filePath}),n.managed?e.jsx(K,{onEdit:()=>a(n),onDelete:()=>i(n),deleting:o.isPending&&((d=o.variables)==null?void 0:d.filePath)===n.filePath}):e.jsx(J,{kind:"skill",source:n.source})]},n.filePath)})})]})}function Te({workspaceId:t,prompts:s,onNew:r,onEdit:a}){const o=pe(t),l=z(),i=async n=>{await l({title:"Delete prompt",message:`Delete prompt template /${n.name}?
18
-
19
- ${n.filePath}`,confirmLabel:"Delete",variant:"danger"})&&o.mutate({filePath:n.filePath})};return e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx(G,{label:"New prompt",onClick:r}),o.isError&&e.jsx("p",{className:"rounded-md border border-error-ghost bg-error-ghost px-2.5 py-1.5 text-[11.5px] text-signal-error",children:o.error.message}),s.length===0?e.jsx(Z,{text:"No prompt templates discovered."}):e.jsx("ul",{className:"flex flex-col gap-2",children:s.map(n=>{var d;return e.jsxs("li",{className:"rounded-[10px] border border-border-soft bg-card px-3 py-2.5 transition-colors hover:border-border",children:[e.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[e.jsxs("span",{className:"truncate text-[13px] font-medium text-foreground",children:["/",n.name,n.argumentHint&&e.jsx("span",{className:"ml-1 font-normal text-muted-foreground",children:n.argumentHint})]}),e.jsx(A,{source:n.source})]}),n.description&&e.jsx("p",{className:"mt-1 text-[12px] text-muted-foreground",children:n.description}),e.jsxs("details",{className:"mt-1.5 text-[12px]",children:[e.jsx("summary",{className:"cursor-pointer select-none rounded px-1 -mx-1 text-muted-foreground hover:text-foreground",children:"View template"}),e.jsx("pre",{className:"mt-1 max-h-64 overflow-auto rounded-md border border-border-soft bg-muted p-2 font-mono text-[11.5px] leading-relaxed text-foreground",children:n.content})]}),e.jsx(M,{path:n.filePath}),n.managed?e.jsx(K,{onEdit:()=>a(n),onDelete:()=>i(n),deleting:o.isPending&&((d=o.variables)==null?void 0:d.filePath)===n.filePath}):e.jsx(J,{kind:"prompt",source:n.source})]},n.filePath)})})]})}function Be({workspaceId:t,builtinExtensions:s,extensionsEnabled:r,extensions:a,errors:o,disabledExtensions:l}){const i=a.filter(n=>n.source.label!=="inline");return e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsx(Me,{workspaceId:t,builtins:s}),e.jsx(Ae,{workspaceId:t}),e.jsx($e,{extensionsEnabled:r,extensions:i,errors:o,disabledExtensions:l})]})}function Ae({workspaceId:t}){var i,n;const{data:s}=ye(),r=ve(),a=s==null?void 0:s.find(d=>d.id===t);if(!a)return null;const o=r.isPending&&((i=r.variables)==null?void 0:i.id)===a.id,l=o?((n=r.variables)==null?void 0:n.trustProjectAgents)??a.trustProjectAgents:a.trustProjectAgents;return e.jsxs("section",{className:"flex flex-col gap-2",children:[e.jsx(D,{children:"Project agents"}),r.isError&&e.jsx("p",{className:"rounded-md border border-error-ghost bg-error-ghost px-2.5 py-1.5 text-[11.5px] text-signal-error",children:r.error.message}),e.jsxs("div",{className:"rounded-[10px] border border-border-soft bg-card px-3 py-2.5 transition-colors hover:border-border",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("span",{className:"truncate text-[13px] font-medium text-foreground",children:["Trust ",e.jsx("span",{className:"font-mono text-[12px]",children:".pi/agents/"})," in this workspace"]}),e.jsx(V,{checked:l,disabled:o,onChange:d=>r.mutate({id:a.id,trustProjectAgents:d}),label:`${l?"Distrust":"Trust"} project agents`})]}),e.jsxs("p",{className:"mt-1 text-[12px] leading-relaxed text-muted-foreground",children:["When on, the subagent roster also loads agent definitions from this repo's ",e.jsx("span",{className:"font-mono text-[11px]",children:".pi/agents/*.md"})," ","(highest precedence). Off by default: repo files define subagent system prompts, so only enable this for repositories you trust."]})]})]})}function Me({workspaceId:t,builtins:s}){var o;const r=je(t),a=r.isPending?(o=r.variables)==null?void 0:o.id:void 0;return e.jsxs("section",{className:"flex flex-col gap-2",children:[e.jsx(D,{children:"Built-in"}),e.jsx("p",{className:"text-[11.5px] leading-relaxed text-muted-foreground/80",children:"Master switches that apply to every conversation — turning one off removes its tools and commands everywhere. To keep an extension on but hide individual tools in a single conversation, use Settings → Session → Tools."}),r.isError&&e.jsx("p",{className:"rounded-md border border-error-ghost bg-error-ghost px-2.5 py-1.5 text-[11.5px] text-signal-error",children:r.error.message}),e.jsx("ul",{className:"flex flex-col gap-2",children:s.map(l=>{const i=a===l.id,n=i&&r.variables?r.variables.enabled:l.enabled;return e.jsxs("li",{className:"rounded-[10px] border border-border-soft bg-card px-3 py-2.5 transition-colors hover:border-border",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[e.jsx(Ne,{tool:l.id,className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}),e.jsx("span",{className:"truncate text-[13px] font-medium text-foreground",children:l.name})]}),e.jsx(V,{checked:n,disabled:i,onChange:d=>r.mutate({id:l.id,enabled:d}),label:`${n?"Disable":"Enable"} ${l.name}`})]}),e.jsx("p",{className:"mt-1 text-[12px] leading-relaxed text-muted-foreground",children:l.description}),e.jsx(X,{facets:[{label:"tools",items:l.tools},{label:"commands",items:l.commands.map(d=>`/${d}`)}].filter(d=>d.items.length>0)})]},l.id)})})]})}function V({checked:t,disabled:s,onChange:r,label:a}){return e.jsx("button",{type:"button",role:"switch","aria-checked":t,"aria-label":a,title:a,disabled:s,onClick:()=>r(!t),className:P("relative inline-flex h-[18px] w-[32px] shrink-0 items-center rounded-full border transition-colors ring-brand-focus disabled:cursor-not-allowed disabled:opacity-60",t?"border-brand-subtle bg-brand":"border-border bg-muted"),children:e.jsx("span",{className:P("inline-block h-3 w-3 rounded-full bg-white shadow-sm transition-transform",t?"translate-x-[15px]":"translate-x-[2px]")})})}function $e({extensionsEnabled:t,extensions:s,errors:r,disabledExtensions:a}){return t?e.jsxs("section",{className:"flex flex-col gap-2",children:[e.jsx(D,{children:"Third-party"}),s.length===0&&r.length===0&&e.jsxs("div",{className:"rounded-[10px] border border-border-soft bg-card px-3 py-3",children:[e.jsx("p",{className:"text-[13px] font-medium text-foreground",children:"Extensions enabled, none installed"}),e.jsxs("p",{className:"mt-1.5 text-[12px] leading-relaxed text-muted-foreground",children:[e.jsx("code",{className:"rounded bg-muted px-1 font-mono",children:"PI_PILOT_ENABLE_EXTENSIONS=1"})," is set but no extension modules were discovered under"," ",e.jsx("code",{className:"rounded bg-muted px-1 font-mono",children:"~/.pi/agent/extensions/"})," or"," ",e.jsx("code",{className:"rounded bg-muted px-1 font-mono",children:".pi/extensions/"}),"."]})]}),r.map(o=>e.jsxs("div",{className:"rounded-[10px] border border-error-ghost bg-error-ghost px-3 py-2.5 text-[12px] text-signal-error",children:[e.jsx("p",{className:"text-[11.5px] font-medium",children:"Failed to load"}),e.jsx("p",{className:"mt-1 break-all font-mono text-[11px] text-signal-error/80",children:o.path}),e.jsx("p",{className:"mt-1 break-words",children:o.error})]},o.path)),s.map(o=>e.jsxs("div",{className:"rounded-[10px] border border-border-soft bg-card px-3 py-2.5 transition-colors hover:border-border",children:[e.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[e.jsx("span",{className:"truncate text-[13px] font-medium text-foreground",children:W(o.path)}),e.jsx(A,{source:o.source})]}),e.jsx(Re,{ext:o}),e.jsx(M,{path:o.resolvedPath})]},o.resolvedPath))]}):e.jsxs("section",{className:"flex flex-col gap-3",children:[e.jsx(D,{children:"Third-party"}),e.jsxs("div",{className:"rounded-[10px] border border-border-soft bg-card px-3 py-3",children:[e.jsx("p",{className:"text-[13px] font-medium text-foreground",children:"Third-party extensions are not supported"}),e.jsx("p",{className:"mt-1.5 text-[12px] leading-relaxed text-muted-foreground",children:"The pi extension system is built for a terminal UI (custom renderers, ANSI themes, keyboard overlays). These APIs cannot be bridged to the Web in any meaningful way, so pi-pilot does not load extensions from disk by default."}),e.jsx("p",{className:"mt-2 text-[12px] leading-relaxed text-muted-foreground",children:"Skills, prompts, and the built-in extensions above work as usual; only third-party extension modules are skipped."})]}),a.length>0&&e.jsxs("div",{className:"flex flex-col gap-1.5",children:[e.jsx("p",{className:"px-1 text-[12px] font-medium text-muted-foreground",children:"Detected but disabled"}),a.map(o=>e.jsxs("div",{className:"flex items-center gap-2 rounded-[8px] border border-border-soft bg-muted/50 px-2.5 py-1.5",title:o,children:[e.jsx(ke,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),e.jsx("span",{className:"truncate font-mono text-[11px] text-muted-foreground",children:W(o)})]},o))]})]})}function D({children:t}){return e.jsx("h3",{className:"text-[11.5px] font-medium text-muted-foreground",children:t})}function Re({ext:t}){const s=[{label:"tools",items:t.tools},{label:"commands",items:t.commands.map(r=>`/${r}`)},{label:"flags",items:t.flags.map(r=>`--${r}`)},{label:"shortcuts",items:t.shortcuts}].filter(r=>r.items.length>0);return s.length===0?e.jsx("p",{className:"mt-1.5 text-[11.5px] italic text-muted-foreground",children:"No registrations."}):e.jsx(X,{facets:s})}function X({facets:t}){return e.jsx("dl",{className:"mt-1.5 flex flex-col gap-1 text-[11.5px]",children:t.map(s=>e.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[e.jsxs("dt",{className:"shrink-0 text-muted-foreground",children:[s.label,":"]}),e.jsx("dd",{className:"flex flex-wrap gap-1",children:s.items.map(r=>e.jsx("span",{className:"rounded border border-border-soft bg-muted px-1.5 py-px font-mono text-[10.5px] text-foreground",children:r},r))})]},s.label))})}function G({label:t,onClick:s}){return e.jsxs("button",{type:"button",onClick:s,className:"group inline-flex items-center justify-center gap-1.5 rounded-md border border-dashed border-border bg-transparent px-2 py-2 text-[12px] font-medium text-muted-foreground transition-colors hover:border-brand-subtle hover:text-brand ring-brand-focus",children:[e.jsx(he,{className:"h-3 w-3 transition-transform group-hover:rotate-90"}),t]})}function J({kind:t,source:s}){return e.jsxs("p",{className:"mt-1.5 text-[11px] text-muted-foreground",children:["Read-only · ",t," from ",s.label]})}function K({onEdit:t,onDelete:s,deleting:r}){return e.jsxs("div",{className:"mt-2 flex justify-end gap-1.5",children:[e.jsxs("button",{type:"button",onClick:t,className:"inline-flex items-center gap-1.5 rounded-md border border-border bg-card px-2.5 py-1 text-[11.5px] font-medium text-foreground transition-colors hover:border-brand-subtle hover:text-brand ring-brand-focus",children:[e.jsx(fe,{className:"h-3 w-3"})," Edit"]}),e.jsxs("button",{type:"button",onClick:s,disabled:r,className:"inline-flex items-center gap-1.5 rounded-md border border-error-ghost bg-card px-2.5 py-1 text-[11.5px] font-medium text-signal-error transition-colors hover:bg-error-ghost disabled:opacity-50 ring-brand-focus",children:[r?e.jsx(B,{className:"h-3 w-3 animate-spin"}):e.jsx(be,{className:"h-3 w-3"})," ","Delete"]})]})}function A({source:t}){const s=t.scope==="user"?"default":t.scope==="project"?"brand":"warn";return e.jsx(ge,{tone:s,className:"shrink-0",children:e.jsx("span",{title:t.label,children:t.scope})})}function M({path:t}){return e.jsx("p",{className:"mt-1.5 truncate font-mono text-[10.5px] tracking-[-0.005em] text-muted-foreground",title:t,children:t})}function Z({text:t}){return e.jsx("p",{className:"py-8 text-center text-[12.5px] text-muted-foreground",children:t})}function W(t){return t.replace(/\/+$/,"").split("/").at(-1)||t}export{Ue as ResourcesPanel};
@@ -1,16 +0,0 @@
1
- import{r as l,j as n}from"./markdown-CY-Rm0E5.js";import{s as D,y as L,a0 as Y,ad as O,Q as Z,P as ee,G as X,L as q,I as V,X as te,f as ne,d as se,r as j}from"./index-CX2ohSDO.js";import"./shiki-BZ0sbaMe.js";/**
2
- * @license lucide-react v0.468.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const re=D("ChevronsDown",[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]]);/**
7
- * @license lucide-react v0.468.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */const ae=D("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
12
- * @license lucide-react v0.468.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const ie=D("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);function oe(e,a,o=null){if(a==="all")return e.slice();const s=new Set;for(const c of e)(le(c,a)||c.id===o)&&s.add(c.id);const i=new Map;for(const c of e)i.set(c.id,c);const u=a==="labeled",r=new Set(s);for(const c of s){let d=i.get(c);for(;d!=null&&d.parentId;){const p=i.get(d.parentId);if(!p)break;(u||p.childCount>1)&&r.add(p.id),d=p}}return e.filter(c=>r.has(c.id))}function le(e,a){switch(a){case"default":return G(e)||ce(e)&&ue(e)||e.entryType==="compaction"||e.entryType==="branch_summary"||e.label!=null;case"user-only":return G(e);case"labeled":return e.label!=null;case"all":return!0}}function G(e){return e.entryType==="message"&&e.messageRole==="user"}function ce(e){return e.entryType==="message"&&e.messageRole==="assistant"}function ue(e){return e.preview.trim().length>0}function M(e){const a=new Map;for(const o of e)a.set(o.id,o);return a}function de(e,a=M(e)){const o=new Map;for(const s of e){if(!s.parentId){o.set(s.id,0);continue}const i=a.get(s.parentId);if(!i){o.set(s.id,0);continue}const u=o.get(i.id)??0;i.childCount>1&&!s.active?o.set(s.id,u+1):o.set(s.id,u)}return o}function pe(e,a,o=M(e)){const s=new Map;for(const i of e){if(!i.parentId){s.set(i.id,!0);continue}const u=o.get(i.parentId);if(!u){s.set(i.id,!0);continue}const r=s.get(u.id)??!0,d=!(u.childCount>1&&!i.active)||a.has(u.id);s.set(i.id,r&&d)}return s}function fe(e,a=M(e)){const o=new Map;for(const s of e){if(!s.parentId||s.active)continue;const i=a.get(s.parentId);!i||i.childCount<=1||o.set(s.parentId,(o.get(s.parentId)??0)+1)}return o}function me(e,a){if(e==="message")switch(a){case"user":return"User";case"assistant":return"Assistant";case"toolResult":return"Tool result";case"bashExecution":return"Bash";case"custom":return"Extension";case"branchSummary":return"Branch summary";case"compactionSummary":return"Compaction summary";default:return"Message"}switch(e){case"compaction":return"Compaction";case"branch_summary":return"Branch summary";case"model_change":return"Model change";case"thinking_level_change":return"Thinking";case"custom":return"Custom";case"custom_message":return"Extension";case"label":return"Label";case"session_info":return"Session info";default:return e}}function xe(e,a,o){const s=o?"":" opacity-50";if(e==="message")switch(a){case"user":return"text-brand"+s;case"assistant":return"text-foreground"+s;default:return"text-muted-foreground"+s}switch(e){case"compaction":return"text-signal-warn"+s;case"branch_summary":return"text-signal-ok"+s;default:return"text-muted-foreground"+s}}const he=[{value:"default",label:"Default"},{value:"user-only",label:"User only"},{value:"all",label:"All entries"},{value:"labeled",label:"Labeled"}];function Ne({workspaceId:e,open:a,onClose:o}){const s=L(t=>t.running),i=L(t=>t.switching),u=L(t=>t.setSwitching),{data:r,isFetching:c}=Y(e,a),[d,p]=l.useState("user-only"),[h,x]=l.useState(null),[g,v]=l.useState(()=>new Set),f=l.useRef(null),C=l.useRef(0);l.useEffect(()=>()=>{var t;(t=f.current)==null||t.call(f),f.current=null},[]);const k=l.useMemo(()=>r?oe(r.nodes,d,r.leafId):[],[r,d]),b=l.useMemo(()=>r?M(r.nodes):new Map,[r]),z=l.useMemo(()=>r?de(r.nodes,b):new Map,[r,b]),J=l.useMemo(()=>r?fe(r.nodes,b):new Map,[r,b]),T=l.useMemo(()=>r?r.nodes.filter(t=>t.childCount>1).map(t=>t.id):[],[r]),S=T.some(t=>g.has(t)),R=l.useMemo(()=>r?pe(r.nodes,g,b):new Map,[r,g,b]),E=l.useMemo(()=>k.filter(t=>R.get(t.id)??!0),[k,R]),w=l.useMemo(()=>{let t=null;for(const m of(r==null?void 0:r.nodes)??[])(!t||m.timestamp>t.timestamp)&&(t=m);return t},[r]),Q=l.useCallback(t=>{v(m=>{const y=new Set(m);return y.has(t)?y.delete(t):y.add(t),y})},[]),$=l.useCallback(()=>v(new Set(T)),[T]),W=l.useCallback(()=>v(new Set),[]),A=l.useCallback(t=>{var U;if(s||i||h)return;const m=++C.current;x(t.id),u(!0),O.send({type:"navigate_tree",workspaceId:e,targetId:t.id}),(U=f.current)==null||U.call(f);const y=setTimeout(()=>{m===C.current&&(x(null),u(!1),N())},3e4),K=O.on(I=>{if(I.type==="navigate_tree_result"){if(m!==C.current)return;x(null),I.cancelled&&Z.getState().pushToast({id:`nav-cancelled-${Date.now()}`,workspaceId:e,message:"Tree navigation was cancelled.",notifyType:"info"}),N();return}if(I.type==="error"&&I.command==="navigate_tree"){if(m!==C.current)return;x(null),u(!1),N()}}),N=()=>{clearTimeout(y),K(),f.current===N&&(f.current=null)};f.current=N},[e,s,i,h,u]);if(!a)return null;const P=s||i||!!h,B=!w||w.id===(r==null?void 0:r.leafId),_=!!r&&r.nodes.some(t=>t.entryType==="message");return n.jsxs("aside",{className:`flex h-full ${ee} shrink-0 flex-col border-l border-border bg-popover`,children:[n.jsxs("header",{className:"flex h-[44px] items-center justify-between border-b border-border-soft px-4",children:[n.jsxs("div",{className:"flex items-center gap-2 text-[13px] font-medium tracking-[-0.005em] text-foreground",children:[n.jsx(X,{className:"h-4 w-4 text-muted-foreground"}),n.jsx("span",{children:"Session Tree"}),c&&n.jsx(q,{className:"h-3 w-3 animate-spin text-muted-foreground"})]}),n.jsxs("div",{className:"flex items-center gap-0.5",children:[w&&n.jsx(V,{onClick:()=>{w&&A(w)},disabled:P||B,title:B?"Already at the latest":"Jump to latest",children:n.jsx(re,{className:"h-3.5 w-3.5"})}),n.jsx(V,{onClick:o,title:"Close",children:n.jsx(te,{className:"h-3.5 w-3.5"})})]})]}),n.jsxs("div",{className:"flex items-center gap-2 border-b border-border-soft px-3 py-1.5",children:[n.jsx(ae,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),n.jsx("select",{value:d,onChange:t=>p(t.target.value),className:"flex-1 bg-transparent text-[11.5px] text-foreground outline-none",children:he.map(t=>n.jsx("option",{value:t.value,children:t.label},t.value))}),T.length>0&&n.jsx("button",{type:"button",onClick:S?W:$,title:S?"Collapse all branches":"Expand all branches",className:"shrink-0 rounded px-1.5 py-0.5 text-[10.5px] font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground ring-brand-focus",children:S?"Collapse all":"Expand all"}),r&&n.jsxs("span",{className:"shrink-0 font-mono text-[10.5px] tabular-nums text-muted-foreground",children:[E.length,"/",r.nodes.length]})]}),n.jsxs("div",{className:"flex-1 overflow-y-auto py-1",children:[!r&&!c&&n.jsx(F,{children:"No session tree available."}),r&&!_&&n.jsx(F,{children:"No conversation yet — send a message and it’ll appear here."}),_&&k.length===0&&n.jsx(F,{children:"Nothing matches this filter — try “All entries”."}),_&&k.length>0&&E.length===0&&n.jsxs("div",{className:"px-4 py-6 text-center text-[11.5px] leading-relaxed text-muted-foreground",children:["Matching entries are inside collapsed branches."," ",n.jsx("button",{type:"button",onClick:$,className:"rounded font-medium text-brand transition-colors hover:underline ring-brand-focus",children:"Expand all"})]}),E.map(t=>n.jsx(ge,{node:t,indent:z.get(t.id)??0,isFork:t.childCount>1,collapsed:t.childCount>1&&!g.has(t.id),hiddenCount:J.get(t.id)??0,onToggle:Q,isNavigating:h===t.id,disabled:P,onNavigate:A},t.id))]}),(s||i)&&n.jsx("div",{className:"border-t border-border-soft px-3 py-2 text-[10.5px] text-muted-foreground",children:s?"Navigation disabled while agent is running.":"Navigating…"})]})}function F({children:e}){return n.jsx("div",{className:"px-4 py-6 text-center text-[11.5px] leading-relaxed text-muted-foreground",children:e})}const H=14;function ge({node:e,indent:a,isFork:o,collapsed:s,hiddenCount:i,onToggle:u,isNavigating:r,disabled:c,onNavigate:d}){const p=e.isLeaf,h=xe(e.entryType,e.messageRole,e.active),x=me(e.entryType,e.messageRole),g=10+a*H,v=c||p;return n.jsxs("div",{className:j("group/tree-row relative flex w-full items-center text-left transition-colors","hover:bg-accent/60",p&&"bg-brand-ghost hover:bg-brand-subtle"),style:{paddingLeft:`${g}px`},children:[a>0&&n.jsx("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-y-0 w-px bg-border-soft",style:{left:`${10+(a-1)*H+5}px`}}),o?n.jsx("button",{type:"button",onClick:()=>u(e.id),"aria-expanded":!s,title:s?`Expand ${i} branch${i===1?"":"es"}`:"Collapse branches",className:"flex w-[18px] shrink-0 items-center justify-center self-stretch text-muted-foreground transition-colors hover:text-foreground ring-brand-focus",children:s?n.jsx(ne,{className:"h-3 w-3"}):n.jsx(se,{className:"h-3 w-3"})}):n.jsx("span",{"aria-hidden":!0,className:"w-[18px] shrink-0"}),n.jsxs("button",{type:"button",onClick:()=>d(e),disabled:v,"aria-current":p?"location":void 0,title:p?"Current position":c?"Navigation unavailable right now":`Navigate to this ${x.toLowerCase()}`,className:j("flex min-w-0 flex-1 items-center gap-2 py-[5px] pr-2.5 text-left","focus:outline-none focus-visible:bg-accent/60","disabled:cursor-default"),children:[n.jsx("span",{className:j("h-[7px] w-[7px] shrink-0 rounded-full bg-current",h)}),n.jsx("span",{className:j("shrink-0 text-[9.5px] font-medium uppercase tracking-wide",e.active?"text-muted-foreground":"text-muted-foreground/60"),children:x}),o&&n.jsxs("span",{title:`${i} alternate branch${i===1?"":"es"}`,className:"inline-flex shrink-0 items-center gap-0.5 text-[9px] font-medium text-muted-foreground tabular-nums",children:[n.jsx(X,{className:"h-2.5 w-2.5"}),i]}),n.jsx("span",{className:j("min-w-0 flex-1 truncate text-[11px]",e.active?"text-foreground/90":"text-muted-foreground"),children:e.preview||"—"}),e.label&&n.jsx("span",{className:"shrink-0 rounded bg-brand-tint px-1 py-px text-[9px] font-medium text-brand",children:e.label}),p&&n.jsx(ie,{className:"h-3 w-3 shrink-0 text-brand"}),r&&n.jsx(q,{className:"h-3 w-3 shrink-0 animate-spin text-brand"}),n.jsx("span",{className:"shrink-0 font-mono text-[9.5px] tabular-nums text-muted-foreground opacity-0 transition-opacity group-hover/tree-row:opacity-100",children:be(e.timestamp)})]})]})}function be(e){const a=new Date(e);return Number.isNaN(a.getTime())?"":a.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",hour12:!1})}export{Ne as SessionTree};
@@ -1 +0,0 @@
1
- const e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#f9826c","activityBar.background":"#24292e","activityBar.border":"#1b1f23","activityBar.foreground":"#e1e4e8","activityBar.inactiveForeground":"#6a737d","activityBarBadge.background":"#0366d6","activityBarBadge.foreground":"#fff","badge.background":"#044289","badge.foreground":"#c8e1ff","breadcrumb.activeSelectionForeground":"#d1d5da","breadcrumb.focusForeground":"#e1e4e8","breadcrumb.foreground":"#959da5","breadcrumbPicker.background":"#2b3036","button.background":"#176f2c","button.foreground":"#dcffe4","button.hoverBackground":"#22863a","button.secondaryBackground":"#444d56","button.secondaryForeground":"#fff","button.secondaryHoverBackground":"#586069","checkbox.background":"#444d56","checkbox.border":"#1b1f23","debugToolBar.background":"#2b3036","descriptionForeground":"#959da5","diffEditor.insertedTextBackground":"#28a74530","diffEditor.removedTextBackground":"#d73a4930","dropdown.background":"#2f363d","dropdown.border":"#1b1f23","dropdown.foreground":"#e1e4e8","dropdown.listBackground":"#24292e","editor.background":"#24292e","editor.findMatchBackground":"#ffd33d44","editor.findMatchHighlightBackground":"#ffd33d22","editor.focusedStackFrameHighlightBackground":"#2b6a3033","editor.foldBackground":"#58606915","editor.foreground":"#e1e4e8","editor.inactiveSelectionBackground":"#3392FF22","editor.lineHighlightBackground":"#2b3036","editor.linkedEditingBackground":"#3392FF22","editor.selectionBackground":"#3392FF44","editor.selectionHighlightBackground":"#17E5E633","editor.selectionHighlightBorder":"#17E5E600","editor.stackFrameHighlightBackground":"#C6902625","editor.wordHighlightBackground":"#17E5E600","editor.wordHighlightBorder":"#17E5E699","editor.wordHighlightStrongBackground":"#17E5E600","editor.wordHighlightStrongBorder":"#17E5E666","editorBracketHighlight.foreground1":"#79b8ff","editorBracketHighlight.foreground2":"#ffab70","editorBracketHighlight.foreground3":"#b392f0","editorBracketHighlight.foreground4":"#79b8ff","editorBracketHighlight.foreground5":"#ffab70","editorBracketHighlight.foreground6":"#b392f0","editorBracketMatch.background":"#17E5E650","editorBracketMatch.border":"#17E5E600","editorCursor.foreground":"#c8e1ff","editorError.foreground":"#f97583","editorGroup.border":"#1b1f23","editorGroupHeader.tabsBackground":"#1f2428","editorGroupHeader.tabsBorder":"#1b1f23","editorGutter.addedBackground":"#28a745","editorGutter.deletedBackground":"#ea4a5a","editorGutter.modifiedBackground":"#2188ff","editorIndentGuide.activeBackground":"#444d56","editorIndentGuide.background":"#2f363d","editorLineNumber.activeForeground":"#e1e4e8","editorLineNumber.foreground":"#444d56","editorOverviewRuler.border":"#1b1f23","editorWarning.foreground":"#ffea7f","editorWhitespace.foreground":"#444d56","editorWidget.background":"#1f2428","errorForeground":"#f97583","focusBorder":"#005cc5","foreground":"#d1d5da","gitDecoration.addedResourceForeground":"#34d058","gitDecoration.conflictingResourceForeground":"#ffab70","gitDecoration.deletedResourceForeground":"#ea4a5a","gitDecoration.ignoredResourceForeground":"#6a737d","gitDecoration.modifiedResourceForeground":"#79b8ff","gitDecoration.submoduleResourceForeground":"#6a737d","gitDecoration.untrackedResourceForeground":"#34d058","input.background":"#2f363d","input.border":"#1b1f23","input.foreground":"#e1e4e8","input.placeholderForeground":"#959da5","list.activeSelectionBackground":"#39414a","list.activeSelectionForeground":"#e1e4e8","list.focusBackground":"#044289","list.hoverBackground":"#282e34","list.hoverForeground":"#e1e4e8","list.inactiveFocusBackground":"#1d2d3e","list.inactiveSelectionBackground":"#282e34","list.inactiveSelectionForeground":"#e1e4e8","notificationCenterHeader.background":"#24292e","notificationCenterHeader.foreground":"#959da5","notifications.background":"#2f363d","notifications.border":"#1b1f23","notifications.foreground":"#e1e4e8","notificationsErrorIcon.foreground":"#ea4a5a","notificationsInfoIcon.foreground":"#79b8ff","notificationsWarningIcon.foreground":"#ffab70","panel.background":"#1f2428","panel.border":"#1b1f23","panelInput.border":"#2f363d","panelTitle.activeBorder":"#f9826c","panelTitle.activeForeground":"#e1e4e8","panelTitle.inactiveForeground":"#959da5","peekViewEditor.background":"#1f242888","peekViewEditor.matchHighlightBackground":"#ffd33d33","peekViewResult.background":"#1f2428","peekViewResult.matchHighlightBackground":"#ffd33d33","pickerGroup.border":"#444d56","pickerGroup.foreground":"#e1e4e8","progressBar.background":"#0366d6","quickInput.background":"#24292e","quickInput.foreground":"#e1e4e8","scrollbar.shadow":"#0008","scrollbarSlider.activeBackground":"#6a737d88","scrollbarSlider.background":"#6a737d33","scrollbarSlider.hoverBackground":"#6a737d44","settings.headerForeground":"#e1e4e8","settings.modifiedItemIndicator":"#0366d6","sideBar.background":"#1f2428","sideBar.border":"#1b1f23","sideBar.foreground":"#d1d5da","sideBarSectionHeader.background":"#1f2428","sideBarSectionHeader.border":"#1b1f23","sideBarSectionHeader.foreground":"#e1e4e8","sideBarTitle.foreground":"#e1e4e8","statusBar.background":"#24292e","statusBar.border":"#1b1f23","statusBar.debuggingBackground":"#931c06","statusBar.debuggingForeground":"#fff","statusBar.foreground":"#d1d5da","statusBar.noFolderBackground":"#24292e","statusBarItem.prominentBackground":"#282e34","statusBarItem.remoteBackground":"#24292e","statusBarItem.remoteForeground":"#d1d5da","tab.activeBackground":"#24292e","tab.activeBorder":"#24292e","tab.activeBorderTop":"#f9826c","tab.activeForeground":"#e1e4e8","tab.border":"#1b1f23","tab.hoverBackground":"#24292e","tab.inactiveBackground":"#1f2428","tab.inactiveForeground":"#959da5","tab.unfocusedActiveBorder":"#24292e","tab.unfocusedActiveBorderTop":"#1b1f23","tab.unfocusedHoverBackground":"#24292e","terminal.ansiBlack":"#586069","terminal.ansiBlue":"#2188ff","terminal.ansiBrightBlack":"#959da5","terminal.ansiBrightBlue":"#79b8ff","terminal.ansiBrightCyan":"#56d4dd","terminal.ansiBrightGreen":"#85e89d","terminal.ansiBrightMagenta":"#b392f0","terminal.ansiBrightRed":"#f97583","terminal.ansiBrightWhite":"#fafbfc","terminal.ansiBrightYellow":"#ffea7f","terminal.ansiCyan":"#39c5cf","terminal.ansiGreen":"#34d058","terminal.ansiMagenta":"#b392f0","terminal.ansiRed":"#ea4a5a","terminal.ansiWhite":"#d1d5da","terminal.ansiYellow":"#ffea7f","terminal.foreground":"#d1d5da","terminal.tab.activeBorder":"#f9826c","terminalCursor.background":"#586069","terminalCursor.foreground":"#79b8ff","textBlockQuote.background":"#24292e","textBlockQuote.border":"#444d56","textCodeBlock.background":"#2f363d","textLink.activeForeground":"#c8e1ff","textLink.foreground":"#79b8ff","textPreformat.foreground":"#d1d5da","textSeparator.foreground":"#586069","titleBar.activeBackground":"#24292e","titleBar.activeForeground":"#e1e4e8","titleBar.border":"#1b1f23","titleBar.inactiveBackground":"#1f2428","titleBar.inactiveForeground":"#959da5","tree.indentGuidesStroke":"#2f363d","welcomePage.buttonBackground":"#2f363d","welcomePage.buttonHoverBackground":"#444d56"},"displayName":"GitHub Dark","name":"github-dark","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6a737d"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language"],"settings":{"foreground":"#79b8ff"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#b392f0"}},{"scope":"variable.parameter.function","settings":{"foreground":"#e1e4e8"}},{"scope":"entity.name.tag","settings":{"foreground":"#85e89d"}},{"scope":"keyword","settings":{"foreground":"#f97583"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#f97583"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#e1e4e8"}},{"scope":["string","punctuation.definition.string","string punctuation.section.embedded source"],"settings":{"foreground":"#9ecbff"}},{"scope":"support","settings":{"foreground":"#79b8ff"}},{"scope":"meta.property-name","settings":{"foreground":"#79b8ff"}},{"scope":"variable","settings":{"foreground":"#ffab70"}},{"scope":"variable.other","settings":{"foreground":"#e1e4e8"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"carriage-return","settings":{"background":"#f97583","content":"^M","fontStyle":"italic underline","foreground":"#24292e"}},{"scope":"message.error","settings":{"foreground":"#fdaeb7"}},{"scope":"string variable","settings":{"foreground":"#79b8ff"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#dbedff"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#dbedff"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#85e89d"}},{"scope":"support.constant","settings":{"foreground":"#79b8ff"}},{"scope":"support.variable","settings":{"foreground":"#79b8ff"}},{"scope":"meta.module-reference","settings":{"foreground":"#79b8ff"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#ffab70"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"markup.quote","settings":{"foreground":"#85e89d"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#e1e4e8"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#e1e4e8"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#79b8ff"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#86181d","foreground":"#fdaeb7"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#144620","foreground":"#85e89d"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#c24e00","foreground":"#ffab70"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#79b8ff","foreground":"#2f363d"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#b392f0"}},{"scope":"meta.diff.header","settings":{"foreground":"#79b8ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"meta.output","settings":{"foreground":"#79b8ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#d1d5da"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#fdaeb7"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"fontStyle":"underline","foreground":"#dbedff"}}],"type":"dark"}'));export{e as default};
@@ -1 +0,0 @@
1
- const e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#f9826c","activityBar.background":"#fff","activityBar.border":"#e1e4e8","activityBar.foreground":"#2f363d","activityBar.inactiveForeground":"#959da5","activityBarBadge.background":"#2188ff","activityBarBadge.foreground":"#fff","badge.background":"#dbedff","badge.foreground":"#005cc5","breadcrumb.activeSelectionForeground":"#586069","breadcrumb.focusForeground":"#2f363d","breadcrumb.foreground":"#6a737d","breadcrumbPicker.background":"#fafbfc","button.background":"#159739","button.foreground":"#fff","button.hoverBackground":"#138934","button.secondaryBackground":"#e1e4e8","button.secondaryForeground":"#1b1f23","button.secondaryHoverBackground":"#d1d5da","checkbox.background":"#fafbfc","checkbox.border":"#d1d5da","debugToolBar.background":"#fff","descriptionForeground":"#6a737d","diffEditor.insertedTextBackground":"#34d05822","diffEditor.removedTextBackground":"#d73a4922","dropdown.background":"#fafbfc","dropdown.border":"#e1e4e8","dropdown.foreground":"#2f363d","dropdown.listBackground":"#fff","editor.background":"#fff","editor.findMatchBackground":"#ffdf5d","editor.findMatchHighlightBackground":"#ffdf5d66","editor.focusedStackFrameHighlightBackground":"#28a74525","editor.foldBackground":"#d1d5da11","editor.foreground":"#24292e","editor.inactiveSelectionBackground":"#0366d611","editor.lineHighlightBackground":"#f6f8fa","editor.linkedEditingBackground":"#0366d611","editor.selectionBackground":"#0366d625","editor.selectionHighlightBackground":"#34d05840","editor.selectionHighlightBorder":"#34d05800","editor.stackFrameHighlightBackground":"#ffd33d33","editor.wordHighlightBackground":"#34d05800","editor.wordHighlightBorder":"#24943e99","editor.wordHighlightStrongBackground":"#34d05800","editor.wordHighlightStrongBorder":"#24943e50","editorBracketHighlight.foreground1":"#005cc5","editorBracketHighlight.foreground2":"#e36209","editorBracketHighlight.foreground3":"#5a32a3","editorBracketHighlight.foreground4":"#005cc5","editorBracketHighlight.foreground5":"#e36209","editorBracketHighlight.foreground6":"#5a32a3","editorBracketMatch.background":"#34d05840","editorBracketMatch.border":"#34d05800","editorCursor.foreground":"#044289","editorError.foreground":"#cb2431","editorGroup.border":"#e1e4e8","editorGroupHeader.tabsBackground":"#f6f8fa","editorGroupHeader.tabsBorder":"#e1e4e8","editorGutter.addedBackground":"#28a745","editorGutter.deletedBackground":"#d73a49","editorGutter.modifiedBackground":"#2188ff","editorIndentGuide.activeBackground":"#d7dbe0","editorIndentGuide.background":"#eff2f6","editorLineNumber.activeForeground":"#24292e","editorLineNumber.foreground":"#1b1f234d","editorOverviewRuler.border":"#fff","editorWarning.foreground":"#f9c513","editorWhitespace.foreground":"#d1d5da","editorWidget.background":"#f6f8fa","errorForeground":"#cb2431","focusBorder":"#2188ff","foreground":"#444d56","gitDecoration.addedResourceForeground":"#28a745","gitDecoration.conflictingResourceForeground":"#e36209","gitDecoration.deletedResourceForeground":"#d73a49","gitDecoration.ignoredResourceForeground":"#959da5","gitDecoration.modifiedResourceForeground":"#005cc5","gitDecoration.submoduleResourceForeground":"#959da5","gitDecoration.untrackedResourceForeground":"#28a745","input.background":"#fafbfc","input.border":"#e1e4e8","input.foreground":"#2f363d","input.placeholderForeground":"#959da5","list.activeSelectionBackground":"#e2e5e9","list.activeSelectionForeground":"#2f363d","list.focusBackground":"#cce5ff","list.hoverBackground":"#ebf0f4","list.hoverForeground":"#2f363d","list.inactiveFocusBackground":"#dbedff","list.inactiveSelectionBackground":"#e8eaed","list.inactiveSelectionForeground":"#2f363d","notificationCenterHeader.background":"#e1e4e8","notificationCenterHeader.foreground":"#6a737d","notifications.background":"#fafbfc","notifications.border":"#e1e4e8","notifications.foreground":"#2f363d","notificationsErrorIcon.foreground":"#d73a49","notificationsInfoIcon.foreground":"#005cc5","notificationsWarningIcon.foreground":"#e36209","panel.background":"#f6f8fa","panel.border":"#e1e4e8","panelInput.border":"#e1e4e8","panelTitle.activeBorder":"#f9826c","panelTitle.activeForeground":"#2f363d","panelTitle.inactiveForeground":"#6a737d","pickerGroup.border":"#e1e4e8","pickerGroup.foreground":"#2f363d","progressBar.background":"#2188ff","quickInput.background":"#fafbfc","quickInput.foreground":"#2f363d","scrollbar.shadow":"#6a737d33","scrollbarSlider.activeBackground":"#959da588","scrollbarSlider.background":"#959da533","scrollbarSlider.hoverBackground":"#959da544","settings.headerForeground":"#2f363d","settings.modifiedItemIndicator":"#2188ff","sideBar.background":"#f6f8fa","sideBar.border":"#e1e4e8","sideBar.foreground":"#586069","sideBarSectionHeader.background":"#f6f8fa","sideBarSectionHeader.border":"#e1e4e8","sideBarSectionHeader.foreground":"#2f363d","sideBarTitle.foreground":"#2f363d","statusBar.background":"#fff","statusBar.border":"#e1e4e8","statusBar.debuggingBackground":"#f9826c","statusBar.debuggingForeground":"#fff","statusBar.foreground":"#586069","statusBar.noFolderBackground":"#fff","statusBarItem.prominentBackground":"#e8eaed","statusBarItem.remoteBackground":"#fff","statusBarItem.remoteForeground":"#586069","tab.activeBackground":"#fff","tab.activeBorder":"#fff","tab.activeBorderTop":"#f9826c","tab.activeForeground":"#2f363d","tab.border":"#e1e4e8","tab.hoverBackground":"#fff","tab.inactiveBackground":"#f6f8fa","tab.inactiveForeground":"#6a737d","tab.unfocusedActiveBorder":"#fff","tab.unfocusedActiveBorderTop":"#e1e4e8","tab.unfocusedHoverBackground":"#fff","terminal.ansiBlack":"#24292e","terminal.ansiBlue":"#0366d6","terminal.ansiBrightBlack":"#959da5","terminal.ansiBrightBlue":"#005cc5","terminal.ansiBrightCyan":"#3192aa","terminal.ansiBrightGreen":"#22863a","terminal.ansiBrightMagenta":"#5a32a3","terminal.ansiBrightRed":"#cb2431","terminal.ansiBrightWhite":"#d1d5da","terminal.ansiBrightYellow":"#b08800","terminal.ansiCyan":"#1b7c83","terminal.ansiGreen":"#28a745","terminal.ansiMagenta":"#5a32a3","terminal.ansiRed":"#d73a49","terminal.ansiWhite":"#6a737d","terminal.ansiYellow":"#dbab09","terminal.foreground":"#586069","terminal.tab.activeBorder":"#f9826c","terminalCursor.background":"#d1d5da","terminalCursor.foreground":"#005cc5","textBlockQuote.background":"#fafbfc","textBlockQuote.border":"#e1e4e8","textCodeBlock.background":"#f6f8fa","textLink.activeForeground":"#005cc5","textLink.foreground":"#0366d6","textPreformat.foreground":"#586069","textSeparator.foreground":"#d1d5da","titleBar.activeBackground":"#fff","titleBar.activeForeground":"#2f363d","titleBar.border":"#e1e4e8","titleBar.inactiveBackground":"#f6f8fa","titleBar.inactiveForeground":"#6a737d","tree.indentGuidesStroke":"#e1e4e8","welcomePage.buttonBackground":"#f6f8fa","welcomePage.buttonHoverBackground":"#e1e4e8"},"displayName":"GitHub Light","name":"github-light","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6a737d"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language"],"settings":{"foreground":"#005cc5"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#6f42c1"}},{"scope":"variable.parameter.function","settings":{"foreground":"#24292e"}},{"scope":"entity.name.tag","settings":{"foreground":"#22863a"}},{"scope":"keyword","settings":{"foreground":"#d73a49"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#d73a49"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#24292e"}},{"scope":["string","punctuation.definition.string","string punctuation.section.embedded source"],"settings":{"foreground":"#032f62"}},{"scope":"support","settings":{"foreground":"#005cc5"}},{"scope":"meta.property-name","settings":{"foreground":"#005cc5"}},{"scope":"variable","settings":{"foreground":"#e36209"}},{"scope":"variable.other","settings":{"foreground":"#24292e"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"carriage-return","settings":{"background":"#d73a49","content":"^M","fontStyle":"italic underline","foreground":"#fafbfc"}},{"scope":"message.error","settings":{"foreground":"#b31d28"}},{"scope":"string variable","settings":{"foreground":"#005cc5"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#032f62"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#032f62"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#22863a"}},{"scope":"support.constant","settings":{"foreground":"#005cc5"}},{"scope":"support.variable","settings":{"foreground":"#005cc5"}},{"scope":"meta.module-reference","settings":{"foreground":"#005cc5"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#e36209"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#005cc5"}},{"scope":"markup.quote","settings":{"foreground":"#22863a"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#24292e"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#24292e"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#005cc5"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#ffeef0","foreground":"#b31d28"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#f0fff4","foreground":"#22863a"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#ffebda","foreground":"#e36209"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#005cc5","foreground":"#f6f8fa"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#6f42c1"}},{"scope":"meta.diff.header","settings":{"foreground":"#005cc5"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#005cc5"}},{"scope":"meta.output","settings":{"foreground":"#005cc5"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#586069"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#b31d28"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"fontStyle":"underline","foreground":"#032f62"}}],"type":"light"}'));export{e as default};