@wjarka/cezarion 0.18.0-dev.7648 → 0.18.0-dev.7661
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/package.json +2 -2
- package/web/dist/assets/{activity-motion-CJuRsJs-.js → activity-motion-DolQZDpQ.js} +1 -1
- package/web/dist/assets/{activity-route-B999gkxo.js → activity-route--JtxzMg2.js} +1 -1
- package/web/dist/assets/attention-BKUao3ek.js +1 -0
- package/web/dist/assets/{commit-diff-panel-DOEgpIAo.js → commit-diff-panel-B2gS1ZaB.js} +1 -1
- package/web/dist/assets/{diff-Crj7FMff.js → diff-gHdx2Gyg.js} +2 -2
- package/web/dist/assets/{diff-view-Dz323lcJ.js → diff-view-CiJf2jAb.js} +1 -1
- package/web/dist/assets/{file-preview-C2yywg9k.js → file-preview-wO3fbdrM.js} +1 -1
- package/web/dist/assets/{git-toolbar-BK5yHWl1.js → git-toolbar-kNAK8kM_.js} +1 -1
- package/web/dist/assets/{github-CheTq7R2.js → github-CeD4m2El.js} +1 -1
- package/web/dist/assets/{global-activity-route-GqcNdjhf.js → global-activity-route-DpAnt7mF.js} +1 -1
- package/web/dist/assets/index-O5OYjDqv.js +14 -0
- package/web/dist/assets/{markdown-BnyNka-W.js → markdown-CcWvWY7-.js} +1 -1
- package/web/dist/assets/{picker-pill-BDVQSD8T.js → picker-pill-B2VxxL1D.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-CyLHNe9w.js → preview-pane-connected-CqKhv4IY.js} +1 -1
- package/web/dist/assets/{project-router-CJ-APsTV.js → project-router-BNi9OCwj.js} +1 -1
- package/web/dist/assets/{project-scope-context-Ito06TKi.js → project-scope-context-DE_iUInX.js} +1 -1
- package/web/dist/assets/{prompt-template-menu-Cl4asEVh.js → prompt-template-menu-CSWQm6rc.js} +1 -1
- package/web/dist/assets/{queries-CczBZU0G.js → queries-BeaJJEJK.js} +1 -1
- package/web/dist/assets/{reference-chip-CP_u_4NW.js → reference-chip-7zf-u89p.js} +1 -1
- package/web/dist/assets/{repo-git-CTJrogdl.js → repo-git-_YXOm-_R.js} +1 -1
- package/web/dist/assets/{report-reader-VTcuImt1.js → report-reader-BzjGkXqT.js} +1 -1
- package/web/dist/assets/{reports-CfhAWOFd.js → reports-DXNWZuef.js} +1 -1
- package/web/dist/assets/{run-header-BhCysq_v.js → run-header-B-u7ZdQI.js} +1 -1
- package/web/dist/assets/runners-DGs5n2Tx.js +1 -0
- package/web/dist/assets/skills-DkGf6wZ1.js +1 -0
- package/web/dist/assets/{tab-link-B7uri0w5.js → tab-link-Bi9k8bF7.js} +1 -1
- package/web/dist/assets/task-changes-CA3AKPxL.js +1 -0
- package/web/dist/assets/{task-commits-CFO6ZLb3.js → task-commits-Dh2HOS5_.js} +1 -1
- package/web/dist/assets/{task-files-CEHjGOVR.js → task-files-Dnpis8EC.js} +1 -1
- package/web/dist/assets/{task-github-item-CSySa5nk.js → task-github-item-CeKxOrC7.js} +1 -1
- package/web/dist/assets/{task-thread-hE754xgI.js → task-thread-pDMc83WZ.js} +1 -1
- package/web/dist/assets/{thread-state-DOFm4wd8.js → thread-state-Dmdwd-NJ.js} +1 -1
- package/web/dist/assets/{use-desktop-GXqB6sBk.js → use-desktop-BIR3yp9r.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-HEhXe8kn.js → use-hand-to-agent-state-C-K9FCmf.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-VxGcKUy8.js → useInfiniteQuery-BipmcFHn.js} +1 -1
- package/web/dist/assets/useQuery-BfRbMVIN.js +1 -0
- package/web/dist/assets/{workflows-CypZ8Fqr.js → workflows-CLahFvij.js} +1 -1
- package/web/dist/assets/{ws-POSR1RIB.js → ws-Q8U4J3aJ.js} +1 -1
- package/web/dist/index.html +13 -13
- package/web/dist/assets/attention-DNTfJGJ-.js +0 -1
- package/web/dist/assets/index-B_Jb-DKg.js +0 -14
- package/web/dist/assets/runners-C1EVq1ad.js +0 -1
- package/web/dist/assets/skills-CRI1L9F6.js +0 -1
- package/web/dist/assets/task-changes-CM09-q2O.js +0 -1
- package/web/dist/assets/useQuery-DlAhPJSV.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Mt as e,Ur as t,_n as n,f as r}from"./project-scope-context-Ito06TKi.js";import{A as i,L as a,N as o,O as s,V as c}from"./live-protocol-CjfZMf1X.js";import{t as l}from"./useQuery-DlAhPJSV.js";var u=s([`own`,`provider-spanning`]),d=a({suggested:i(a({id:c(),label:c(),desc:c()})),retired:i(c())}),f=a({id:s([`settings`,`mcp`,`memory`]),label:c(),note:c().optional(),empty:c().optional(),showsUserMcp:o(!0).optional()}),p=a({label:c(),note:c().optional(),groups:i(f)}),m=a({runners:i(a({id:t,displayName:c(),modelListName:c(),modelIdScope:u,pickerLabel:c(),pickerDescription:c(),icon:c(),installHint:c(),loginCommand:c(),accountFolderExample:c().optional(),models:d,agentConfig:p}))}),h=[`workspace`,`runners`];async function g(t){return n(await r.api.v1.runners.$get({},e(t)),`/runners`,m)}var _={queryKey:h,queryFn:({signal:e})=>g({signal:e}),staleTime:1/0};function v(){return l(_)}function y(e){return e?.runners??[]}function b(e){return y(e).map(e=>e.id)}function x(e,t){return e?.runners.find(e=>e.id===t)}function S(e,t){return x(e,t)?.displayName??t}function C(e,t){return x(e,t)?.pickerLabel??t}function w(e,t){return x(e,t)?.modelListName}export{w as a,b as i,y as n,C as o,x as r,v as s,S as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{i as t,t as n}from"./react-runtime-CCIEwYL0.js";import{D as r,t as i,u as a}from"./button-RJMdCnZw.js";import{ti as o,wt as s}from"./project-scope-context-Ito06TKi.js";import{Rt as c,m as l,n as u}from"./queries-CczBZU0G.js";import{n as d}from"./toaster-BWMQArHJ.js";import{s as f,t as p}from"./runners-C1EVq1ad.js";import{O as m,T as h,X as g,Y as _,ct as v,ot as y,u as b}from"./design-icons-B6-0w7Aw.js";import{t as x}from"./project-router-CJ-APsTV.js";import{f as S,l as C}from"./skills-pM_PouEs.js";import{F as w,I as T,Rt as E,tn as D}from"./index-B_Jb-DKg.js";var O=e(t(),1),k=n(),A=e=>e.split(`@`)[0]||e,j={project:0,user:1,plugin:2,system:3,other:4},M={project:`This project`,user:`Your skills`,system:`Built in`,other:`Other`};function N(e){if(e.plugin)return{key:`plugin:${e.plugin}`,label:A(e.plugin),kind:`plugin`};let t=e.scope===`repo`?`project`:e.scope===`user`?`user`:e.scope===`system`?`system`:`other`;return{key:t,label:M[t],kind:t}}function P(e){let t=new Map;for(let n of e){let e=N(n),r=t.get(e.key)??{...e,skills:[]};r.skills.push(n),t.set(e.key,r)}return[...t.values()].sort((e,t)=>j[e.kind]-j[t.kind]||e.label.localeCompare(t.label))}function F(e){let t=e.plugin?`${A(e.plugin)}:`:``;return t&&e.name.startsWith(t)&&e.name.length>t.length?e.name.slice(t.length):e.name}var I={project:h,user:v,plugin:m,system:m,other:m};function L({groups:e,openId:t,searching:n,runner:r,account:i}){let[a,o]=(0,O.useState)(new Set),s=e=>o(t=>{let n=new Set(t);return n.delete(e)||n.add(e),n});return(0,k.jsx)(`div`,{"data-slot":`skills-list`,className:`overflow-hidden rounded-xl border border-border bg-card`,children:e.map(e=>{let o=n||!a.has(e.key);return(0,k.jsxs)(`section`,{"data-slot":`skill-group`,"aria-label":e.label,className:`border-border not-first:border-t`,children:[(0,k.jsx)(R,{group:e,open:o,onToggle:()=>s(e.key)}),o?e.skills.map(e=>(0,k.jsx)(z,{skill:e,open:e.id===t,runner:r,account:i},S(e))):null]},e.key)})})}function R({group:e,open:t,onToggle:n}){let r=I[e.kind];return(0,k.jsx)(`h2`,{className:`m-0`,children:(0,k.jsxs)(`button`,{type:`button`,"aria-expanded":t,onClick:n,className:`flex min-h-10 w-full items-center gap-2 bg-muted/45 px-3.5 text-left text-xs font-semibold text-muted-foreground focus-visible:outline-2 focus-visible:-outline-offset-2 pointer-hover:text-foreground`,children:[(0,k.jsx)(b,{"aria-hidden":`true`,className:a(`size-3.5 transition-transform motion-reduce:transition-none`,t&&`rotate-90`)}),(0,k.jsx)(r,{"aria-hidden":`true`,className:`size-3.5`}),(0,k.jsx)(`span`,{className:`min-w-0 truncate`,children:e.label}),(0,k.jsx)(`span`,{className:`font-medium text-soft-foreground`,children:e.skills.length})]})})}function z({skill:e,open:t,runner:n,account:r}){let a=E({skill:e.id,skillPath:e.path,runner:n,...r?{account:r}:{}});return(0,k.jsxs)(`details`,{"data-slot":`skill-row`,"data-skill":e.id,"data-skill-path":e.path,name:`skill-details`,open:t||void 0,className:`group/skill border-t border-border/60 open:bg-sidebar-row-selected`,children:[(0,k.jsxs)(`summary`,{className:`grid min-h-11 cursor-pointer list-none grid-cols-1 items-baseline gap-x-4 gap-y-0.5 py-2.5 pr-3.5 pl-9 focus-visible:outline-2 focus-visible:-outline-offset-2 pointer-hover:bg-sidebar-row-hover sm:grid-cols-[minmax(10rem,15rem)_minmax(0,1fr)] [&::-webkit-details-marker]:hidden`,children:[(0,k.jsx)(`span`,{className:`truncate text-[13.5px] font-semibold`,title:e.name,children:F(e)}),e.description?(0,k.jsx)(`span`,{className:`truncate text-[13px] text-muted-foreground group-open/skill:hidden`,children:e.description}):null]}),(0,k.jsx)(`div`,{className:`pr-3.5 pb-4 pl-9`,children:(0,k.jsx)(T,{skill:e,heading:null,actions:(0,k.jsx)(i,{asChild:!0,size:`sm`,"data-action":`start-task`,children:(0,k.jsx)(x,{to:a,children:`Start task`})})})})]})}function B(){let e=l(),[t,n]=(0,O.useState)(null),[o,s]=(0,O.useState)(null),[u,d]=(0,O.useState)(``),[f]=r(),p=t??e.data?.defaultRunner??`claude`,m=c(t??e.data?.defaultRunner,o),h=G(p,m.account),v=m.data??[];return(0,k.jsxs)(`div`,{"data-route":`skills`,className:`mx-auto grid min-h-full w-full max-w-[1100px] content-start gap-5 px-[18px] py-6 md:p-9 max-md:[padding-block-end:5rem]`,children:[(0,k.jsxs)(`header`,{children:[(0,k.jsx)(`h1`,{className:`text-[25px] font-semibold tracking-tight md:text-[30px]`,children:`Skills`}),(0,k.jsx)(`p`,{className:`mt-1 text-[13px] text-muted-foreground`,children:`The skills each agent loads in this project, as its runner reports them.`})]}),(0,k.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,k.jsx)(H,{runner:p,onChange:e=>{n(e),s(null)}}),(0,k.jsx)(U,{runner:p,account:o,onChange:s}),(0,k.jsx)(`span`,{className:`ml-auto text-xs text-soft-foreground`,"data-slot":`skills-count`,children:m.list?`${v.length} ${v.length===1?`skill`:`skills`}${m.list.source===`cache`?` · from cache`:``}`:null}),(0,k.jsxs)(i,{variant:`outline`,size:`sm`,onClick:()=>void h.run(),disabled:h.running||m.isPending,"data-slot":`skills-refresh`,children:[(0,k.jsx)(_,{"aria-hidden":`true`,className:a(`size-3.5`,h.running&&`motion-safe:animate-spin`)}),`Re-read`]})]}),(0,k.jsxs)(`div`,{className:`relative`,children:[(0,k.jsx)(g,{"aria-hidden":`true`,className:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),(0,k.jsx)(D,{"aria-label":`Search skills`,placeholder:`Filter by name or description…`,value:u,onChange:e=>d(e.target.value),className:`h-10 bg-card pl-9 text-[13px]`})]}),(0,k.jsx)(W,{query:m}),m.isPending?(0,k.jsx)(`p`,{role:`status`,className:`text-xs text-muted-foreground`,children:`Loading skills…`}):(0,k.jsx)(V,{skills:v,search:u,openId:f.get(`skill`),runner:p,account:m.account??null,unchecked:m.unchecked})]})}function V({skills:e,search:t,openId:n,runner:r,account:i,unchecked:a}){if(e.length===0)return a?null:(0,k.jsx)(`p`,{className:`text-[13px] text-muted-foreground`,children:`No skills reported by this runner and account.`});let o=C(e,t);return o.length===0?(0,k.jsxs)(`p`,{className:`text-[13px] text-muted-foreground`,children:[`No skills match “`,t.trim(),`”.`]}):(0,k.jsx)(L,{groups:P(o),openId:n,searching:t.trim()!==``,runner:r,account:i})}function H({runner:e,onChange:t}){let n=f().data;return n?(0,k.jsx)(`div`,{role:`group`,"aria-label":`Runner`,className:`flex max-w-full gap-0.5 overflow-x-auto rounded-[10px] border border-border bg-card p-[3px]`,children:n.runners.map(r=>(0,k.jsx)(`button`,{type:`button`,"aria-pressed":r.id===e,onClick:()=>t(r.id),className:`h-8 shrink-0 rounded-[7px] px-3 text-[13px] text-muted-foreground focus-visible:outline-2 aria-pressed:bg-muted aria-pressed:font-semibold aria-pressed:text-foreground pointer-hover:text-foreground`,children:p(n,r.id)},r.id))}):null}function U({runner:e,account:t,onChange:n}){let r=w().accounts.filter(t=>t.provider===e);return r.length===0?null:(0,k.jsxs)(`select`,{"aria-label":`Account`,value:t??``,onChange:e=>n(e.target.value||null),className:`h-[38px] rounded-md border border-border bg-card px-2.5 text-[13px] text-foreground focus-visible:outline-2`,children:[(0,k.jsx)(`option`,{value:``,children:`Account: project default`}),r.map(e=>(0,k.jsx)(`option`,{value:e.id,children:e.label},e.id))]})}function W({query:e}){let t=e.list?.problems??[];return!e.unchecked&&t.length===0?null:(0,k.jsxs)(`div`,{className:`grid gap-1.5 rounded-lg border border-pending/40 bg-pending/10 px-3.5 py-2.5 text-[13px]`,children:[e.unchecked&&!e.isPending?(0,k.jsxs)(`p`,{role:`status`,className:`flex gap-2`,children:[(0,k.jsx)(y,{"aria-hidden":`true`,className:`mt-0.5 size-4 shrink-0 text-pending-strong`}),(0,k.jsxs)(`span`,{children:[`Skill list unavailable. `,e.list?.reason??e.error?.message,` You can still type a skill id when starting a task.`]})]}):null,t.map((e,t)=>(0,k.jsxs)(`p`,{role:`alert`,className:`flex gap-2 break-words`,children:[(0,k.jsx)(y,{"aria-hidden":`true`,className:`mt-0.5 size-4 shrink-0 text-pending-strong`}),(0,k.jsxs)(`span`,{children:[e.message,e.path?` · ${e.path}`:``]})]},t))]})}function G(e,t){let n=o(),[r,i]=(0,O.useState)(!1),a=u.runnerSkills(e,t);return{running:r,run:async()=>{i(!0);try{n.setQueryData(a,await s(e,t,{refresh:!0})),await n.invalidateQueries({queryKey:a.slice(0,3)})}catch(e){d(e instanceof Error?e.message:String(e),{tone:`danger`})}finally{i(!1)}}}}export{B as SkillsRoute};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{i as t,t as n}from"./react-runtime-CCIEwYL0.js";import{E as r,t as i}from"./button-RJMdCnZw.js";import{Gt as a,Lt as o,er as s,h as c,i as l,sn as u,ti as d,vt as f,w as p,zt as m}from"./project-scope-context-Ito06TKi.js";import{N as h,Yt as g,ft as _,n as v,pt as y,st as b}from"./queries-CczBZU0G.js";import{n as x,q as S,z as C}from"./use-desktop-GXqB6sBk.js";import{n as w}from"./toaster-BWMQArHJ.js";import{C as T,j as E}from"./design-icons-B6-0w7Aw.js";import{t as D}from"./run-header-BhCysq_v.js";import{i as O,n as k,r as A}from"./git-toolbar-BK5yHWl1.js";import{a as j,i as M,o as N,r as P,s as F,t as I}from"./dialog-7Mg2IZCP.js";import{t as L}from"./centered-state-dmABwupF.js";import{D as R,E as z,Et as B,U as V,z as H}from"./index-B_Jb-DKg.js";import{t as U}from"./markdown-BBDDg-4t.js";import{t as W}from"./diff-Crj7FMff.js";var G=e(t(),1),K=`no worktree — this task ran directly in the repo working tree`;function q(e){let t=e=>({id:`commit`,label:`Commit`,enabled:!1,reason:e});return e.hasWorktree?e.run.status===`running`?t(`Commit unavailable — the agent is still working in this worktree`):e.changedFiles===void 0?t(`Commit unavailable — changes are still loading`):e.changedFiles===0?t(`Commit unavailable — no changes to commit`):{id:`commit`,label:`Commit`,enabled:!0}:t(`Commit unavailable — ${K}`)}function J(e){let t=e=>({id:`push`,label:`Push`,enabled:!1,reason:e});return e.hasWorktree?e.remote===void 0?t(`Push unavailable — no remote configured`):e.branch===void 0?t(`Push unavailable — the run has no branch to push`):e.run.status===`running`?t(`Push unavailable — the agent is still working in this worktree`):{id:`push`,label:`Push`,enabled:!0}:t(`Push unavailable — ${K}`)}function Y(e){let t=e=>({id:`create-pr`,label:`Create PR`,enabled:!1,reason:e});return!e.hasWorktree||e.branch===void 0?t(`Create PR unavailable — ${K}`):e.forge===null?t(`Create PR unavailable — no supported forge remote (GitHub) detected`):e.forge.available?s(e.run)?t(`Create PR unavailable — the run is waiting on a usage-limit hold; choose Don’t resume first`):S(e.run)?t(`Create PR unavailable — the run is still active; wait for the review gate`):{id:`create-pr`,label:`Create PR`,enabled:!0}:t(`Create PR unavailable — ${e.forge.reason??`the forge is unreachable`}`)}function X(e){let t=e.prUrl?{id:`view-pr`,label:`View PR`,enabled:!0,href:e.prUrl}:q(e),n=e.prUrl?[q(e),J(e)]:[J(e),Y(e)],r=[];if(e.localHandoff){let t=e.hasSession?S(e.run)?{id:`open-terminal`,label:`Open in terminal`,enabled:!1,reason:`Terminal unavailable — the session is still active in the engine`}:{id:`open-terminal`,label:`Open in terminal`,enabled:!0}:{id:`open-terminal`,label:`Open in terminal`,enabled:!1,reason:`Terminal unavailable — no agent session to resume`};r.push(t)}return{primary:t,secondary:n,menu:r}}var Z=n();function Q({run:e,open:t,onOpenChange:n}){let r=d(),[a,o]=(0,G.useState)(``),s=C(e),l=(0,G.useRef)(s);l.current=s,(0,G.useEffect)(()=>{t&&o(l.current)},[t]);let u=g({mutationFn:t=>c(e.id,t),onSuccess:t=>{w(`Committed ${t.sha.slice(0,7)}`),n(!1),r.invalidateQueries({queryKey:v.runs.changes(e.id)}),r.invalidateQueries({queryKey:v.runs.all})},onError:e=>w(e.message,{tone:`danger`})}),f=()=>{let e=a.trim();e.length===0||u.isPending||u.mutate(e)};return(0,Z.jsx)(I,{open:t,onOpenChange:n,children:(0,Z.jsxs)(P,{"data-slot":`commit-dialog`,children:[(0,Z.jsxs)(N,{children:[(0,Z.jsx)(F,{children:`Commit changes`}),(0,Z.jsxs)(M,{children:[`Stages everything in the task's worktree (git add -A) and commits to`,` `,e.branch?(0,Z.jsx)(`span`,{className:`font-mono`,children:e.branch}):`its branch`,`.`]})]}),(0,Z.jsx)(V,{"data-slot":`commit-message`,"aria-label":`Commit message`,rows:3,value:a,onChange:e=>o(e.target.value),onKeyDown:e=>{H({key:e.key,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey,repeat:e.repeat,isComposing:e.nativeEvent.isComposing})&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),f())}}),(0,Z.jsxs)(j,{children:[(0,Z.jsx)(i,{variant:`outline`,onClick:()=>n(!1),children:`Cancel`}),(0,Z.jsx)(i,{"data-slot":`commit-confirm`,disabled:a.trim().length===0||u.isPending,onClick:f,children:u.isPending?`Committing…`:`Commit`})]})]})})}function $(){let{id:e}=r(),t=_(e);return t.isPending?(0,Z.jsx)(R,{tab:`changes`}):t.isError?(0,Z.jsx)(z,{tab:`changes`,error:t.error}):(0,Z.jsx)(ee,{run:t.data})}function ee({run:e}){let t=h(),n=b(),r=y(e.id,S(e)),i=x(),[s,c]=(0,G.useState)(`unified`),[u,f]=(0,G.useState)(!1),[_,C]=(0,G.useState)(!1),[T,E]=(0,G.useState)(null),[O,j]=(0,G.useState)(!1),M=(0,G.useRef)(null),N=d(),P=()=>N.invalidateQueries({queryKey:v.runs.all}),F=e=>w(e.message,{tone:`danger`}),I=g({mutationFn:()=>a(e.id),onSuccess:e=>w(e.upstreamSet?`Pushed ${e.branch} to ${e.remote} (upstream set)`:`Pushed ${e.branch} to ${e.remote}`),onError:F}),L=g({mutationFn:()=>p(e.id),onSuccess:e=>{w(`Draft PR created — ${e.url}`),P()},onError:F}),R=g({mutationFn:()=>m(e.id),onError:e=>{if(e instanceof l&&e.command){navigator.clipboard.writeText(e.command).then(()=>w(`No terminal found — command copied to clipboard.`)).catch(()=>w(`Run manually: ${e.command}`));return}F(e)}}),z=g({mutationFn:t=>o(e.id,t),onError:F}),V=r.isError&&r.error instanceof l&&r.error.status===409,H=X({run:e,hasWorktree:!!e.worktreePath&&!V,branch:e.branch,changedFiles:r.data?.stat.files,remote:n.data?.info?.remote,forge:t.data?.forge??null,localHandoff:t.data?.capabilities.localHandoff??!1,hasSession:B(e)!==void 0,prUrl:e.pullRequestUrl}),W=e=>{switch(e){case`commit`:j(!0);break;case`push`:I.mutate();break;case`create-pr`:L.mutate();break;case`open-terminal`:R.mutate();break;case`view-pr`:break}},K=r.data?.files??[],q=(0,G.useMemo)(()=>A(K),[K]),J=(0,G.useMemo)(()=>K.some(U),[K]),Y=i?s:`unified`,$=!i||u;return(0,Z.jsxs)(`div`,{"data-route":`task-changes`,className:`flex min-h-full flex-col`,children:[(0,Z.jsx)(D,{run:e,tab:`changes`}),(0,Z.jsx)(k,{bar:H,healthReady:t.data!==void 0,branch:e.branch,stat:r.data?.stat,mode:Y,wrap:$,preview:_,onModeChange:c,onWrapChange:f,onPreviewChange:J?C:void 0,onAction:W}),r.data?.repointedHead?(0,Z.jsxs)(`p`,{"data-slot":`repointed-head-note`,className:`border-b px-4 py-2 text-xs text-soft-foreground md:px-9`,children:[`HEAD is on `,(0,Z.jsx)(`code`,{children:r.data.repointedHead.headBranch}),`, not this task's branch`,` `,(0,Z.jsx)(`code`,{children:r.data.repointedHead.taskBranch}),` — showing only what this task changed there.`]}):null,(0,Z.jsx)(te,{changes:r,changesRefused:V,fileCount:K.length,children:(0,Z.jsx)(ne,{runId:e.id,files:K,tree:q,selected:T,selectFile:e=>{E(e),M.current?.scrollToPath(e)},diffRef:M,effectiveMode:Y,effectiveWrap:$,preview:_,localHandoff:t.data?.capabilities.localHandoff,onOpenInApp:z.mutate})}),(0,Z.jsx)(Q,{run:e,open:O,onOpenChange:j})]})}function te({changes:e,changesRefused:t,fileCount:n,children:r}){return e.isPending?(0,Z.jsx)(`p`,{"data-slot":`changes-loading`,className:`px-4 py-6 text-center text-xs text-soft-foreground md:px-9`,children:`Loading changes…`}):e.isError?(0,Z.jsx)(L,{icon:t?(0,Z.jsx)(T,{size:16}):(0,Z.jsx)(E,{size:16}),tone:t?`neutral`:`danger`,heading:`h2`,title:t?`No changes to show`:`Could not load the changes`,subtitle:e.error.message}):n===0?(0,Z.jsx)(L,{icon:(0,Z.jsx)(T,{size:16}),tone:`neutral`,heading:`h2`,title:`No changes yet`,subtitle:`The worktree matches its base branch. Changes appear here as the agent works.`}):r}function ne({runId:e,files:t,tree:n,selected:r,selectFile:i,diffRef:a,effectiveMode:o,effectiveWrap:s,preview:c,localHandoff:l,onOpenInApp:d}){return(0,Z.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col items-stretch gap-5 md:flex-row md:items-start px-[18px] pb-9 pt-0 [--diff-sticky-top:0px] md:[--diff-sticky-top:1rem] md:px-9`,children:[(0,Z.jsxs)(`aside`,{"data-slot":`changes-tree-pane`,className:`md:sticky md:top-4 max-h-[calc(100dvh_-_64px_-_var(--diff-sticky-top)_-_1rem)] w-full md:w-60 shrink-0 overflow-y-auto overscroll-contain rounded-xl border border-border bg-card p-3.5 md:block lg:w-[250px]`,children:[(0,Z.jsx)(`h2`,{className:`mb-3 border-b border-border pb-3 text-xs font-semibold`,children:`Changed files`}),(0,Z.jsx)(O,{root:n,selected:r,onSelect:i})]}),(0,Z.jsx)(W,{files:t,viewRef:a,mode:o,wrap:s,preview:c,loadFileText:t=>re(e,t),imageSrc:t=>u(e,t),onOpenInApp:l?e=>d(e):void 0,className:`min-w-0 flex-1`})]})}async function re(e,t){try{let n=await f(e,t);return n.type!==`file`||n.binary||n.tooLarge?null:n.content??null}catch{return null}}export{$ as TaskChangesRoute};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Gr as e,ni as t}from"./project-scope-context-Ito06TKi.js";function n(n,r){return e(n,t,r)}export{n as t};
|