@sma1lboy/kobe 0.9.35 → 0.9.36
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/cli/index.js +257 -257
- package/dist/cli/kobe-run.js +257 -257
- package/dist/cli/rove-run.js +257 -257
- package/dist/web-ui/assets/AppShell-B7CivyDd.js +5 -0
- package/dist/web-ui/assets/{Board-C2ZC0E_s.js → Board-q_9MtcHd.js} +1 -1
- package/dist/web-ui/assets/{BoardPeek-C2y3xudZ.js → BoardPeek-S_PO5O5U.js} +1 -1
- package/dist/web-ui/assets/{ChatTranscript-BaXVLIwa.js → ChatTranscript-Ccrk8G8U.js} +1 -1
- package/dist/web-ui/assets/{ConfirmDialog-BJlYZhgy.js → ConfirmDialog-SJlZUycl.js} +1 -1
- package/dist/web-ui/assets/IssueIntakePanel-sziV01K6.js +1 -0
- package/dist/web-ui/assets/IssuePeek-BqxYnKJo.js +1 -0
- package/dist/web-ui/assets/{IssuesPage-CcK7xKWZ.js → IssuesPage-C3Cp8Wsa.js} +1 -1
- package/dist/web-ui/assets/{SettingsPage-BARY9KCh.js → SettingsPage-tLF6TOZT.js} +2 -2
- package/dist/web-ui/assets/{RichEditor-D2OJbR2A.js → SlideOver-BPuRlYRc.js} +52 -52
- package/dist/web-ui/assets/{ViewToggle-CROAjX49.js → ViewToggle-DFsgA1oB.js} +1 -1
- package/dist/web-ui/assets/{WorkspaceTabs-D2mBvhlt.js → WorkspaceTabs-DnCwqBDD.js} +1 -1
- package/dist/web-ui/assets/{active-task-DOIy-xHd.js → active-task-Dcgkjlku.js} +1 -1
- package/dist/web-ui/assets/board-D_4CPQWU.js +1 -0
- package/dist/web-ui/assets/{index-wTeVn7Ca.js → index-DVzmgaP7.js} +3 -3
- package/dist/web-ui/assets/{issues-Bq1lyZOv.js → issues-B31tVo5T.js} +2 -2
- package/dist/web-ui/assets/issues-Cr3q1Jk7.js +1 -0
- package/dist/web-ui/assets/{lazy-issue-panels-egQaaSL6.js → lazy-issue-panels-DlXOkazw.js} +3 -3
- package/dist/web-ui/assets/routes-D4B5iM7M.js +1 -0
- package/dist/web-ui/assets/{task._taskId-pDb6g2Xt.js → task._taskId-JA2GmlLZ.js} +1 -1
- package/dist/web-ui/assets/{worktrees-DMXokhJi.js → worktrees-CYSL7oNO.js} +1 -1
- package/dist/web-ui/index.html +2 -2
- package/package.json +1 -1
- package/dist/web-ui/assets/AppShell-BfIm07jW.js +0 -5
- package/dist/web-ui/assets/IssueIntakePanel-CP8LZ6ts.js +0 -1
- package/dist/web-ui/assets/IssuePeek-DG0cbGID.js +0 -1
- package/dist/web-ui/assets/SlideOver-CFuCH6OP.js +0 -1
- package/dist/web-ui/assets/board-SxP8ovsE.js +0 -1
- package/dist/web-ui/assets/issues-DPd_ri4P.js +0 -1
- package/dist/web-ui/assets/routes-1WHKiK_P.js +0 -1
- /package/dist/web-ui/assets/{RichEditor-B4sEOPyN.css → SlideOver-B4sEOPyN.css} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o as e,r as t,s as n}from"./terminal-Nt-mXbb9.js";import{c as r,n as i}from"./tabs-C1KFppnz.js";import{p as a}from"./createLucideIcon-C8T7_EGK.js";import{t as o}from"./store-C3IHXPqa.js";import{
|
|
1
|
+
import{o as e,r as t,s as n}from"./terminal-Nt-mXbb9.js";import{c as r,n as i}from"./tabs-C1KFppnz.js";import{p as a}from"./createLucideIcon-C8T7_EGK.js";import{t as o}from"./store-C3IHXPqa.js";import{t as s}from"./active-task-Dcgkjlku.js";import{l as c}from"./index-DVzmgaP7.js";import{t as l}from"./text-match-DW3sD-Rt.js";var u=[{key:`backlog`,title:`Backlog`,accent:`text-subtle`,alwaysVisible:!0},{key:`in_progress`,title:`In progress`,accent:`text-kobe-orange`,alwaysVisible:!0},{key:`done`,title:`Done`,accent:`text-kobe-green`,alwaysVisible:!0}],d=new Set([`done`]);function f(e){return e.status===`done`?`done`:e.taskId!==void 0&&e.taskId!==``?`in_progress`:`backlog`}function p(e){return e.taskId!==void 0&&e.taskId!==``}function m(e,t){return e.issue.created===t.issue.created?t.issue.id-e.issue.id:e.issue.created<t.issue.created?1:-1}function h(e){let t=new Map,n=(e,n)=>{let r=t.get(e);r?r.push(n):t.set(e,[n])};for(let t of e)n(f(t.issue),t);for(let e of t.values())e.sort(m);let r=(e,t)=>!d.has(e)||t.length<=30?{cards:t,hiddenCount:0}:{cards:t.slice(0,30),hiddenCount:t.length-30};return u.map(e=>({...e,...r(e.key,t.get(e.key)??[])})).filter(e=>e.alwaysVisible||e.cards.length+e.hiddenCount>0)}function g(e){return e.reduce((e,t)=>e+t.cards.length,0)}function _(e){let t=new Map;for(let n of e){let e=n.repo,r=t.get(e);r?r.push(n):t.set(e,[n])}let n=[...t.keys()];return n.map(e=>({repo:e,label:y(e,n),columns:h(t.get(e)??[])})).sort((e,t)=>e.label.localeCompare(t.label))}function v(e){let t=e.replace(/\/+$/,``);return t.split(`/`).pop()||t}function y(e,t){let n=v(e);return t.some(t=>t!==e&&v(t)===n)?e.replace(/\/+$/,``).split(`/`).slice(-2).join(`/`):n}function b(e,t,n){let r=[];for(let i of t){let t=e[i];if(!(!t||!t.exists))for(let e of t.issues){let t=n.get(`${i}:${e.id}`);r.push(t&&!e.taskId?{repo:i,issue:{...e,taskId:t.taskId}}:{repo:i,issue:e})}}return r}function x(e){let t=new Map;for(let{repo:n}of e)t.set(n,(t.get(n)??0)+1);let n=[...t.keys()];return n.map(e=>({repo:e,label:y(e,n),count:t.get(e)??0})).sort((e,t)=>e.label.localeCompare(t.label))}function S(e,t,n){return e.filter(({repo:e,issue:r})=>n&&e!==n?!1:l(`#${r.id} ${r.title} ${r.body}`,t))}function C(e){let t=b(e.issueData,e.issueRepos,e.pendingLinks),n=x(t),r=_(S(t,e.query,e.repoFilter));return e.repoFilter&&r.length===0&&e.issueRepos.includes(e.repoFilter)&&r.push({repo:e.repoFilter,label:y(e.repoFilter,e.issueRepos),columns:h([])}),{allIssues:t,repoChips:n,projectBoards:r,shownCount:r.reduce((e,t)=>e+g(t.columns),0),hasAnyCard:t.length>0}}function w(e){let t=[`Work on user story #${e.id}: ${e.title}`,``],n=e.body.trim();return n&&t.push(n,``),t}function T(e,t,n){return[...w(e),`Treat this as the story's dedicated ${n} task session: work only in this task worktree, and preserve any repo init instructions already delivered to the session.`,`Before finishing, verify the acceptance criteria implied by the story and summarize what changed plus any verification still needed.`,`Then merge the task branch back into the current project's main branch after the worktree is clean and checks pass.`,`When the work lands, run: ${t} issue-set-status --repo . --id ${e.id} --status done`].join(`
|
|
2
2
|
`)}function E(e,t){return[...w(e),`You are working directly in the project checkout — no dedicated worktree or branch was created. Keep changes reviewable and do not switch branches unless asked.`,`Before finishing, verify the acceptance criteria implied by the story and summarize what changed plus any verification still needed.`,`When the work lands, run: ${t} issue-set-status --repo . --id ${e.id} --status done`].join(`
|
|
3
3
|
`)}function D(e,t){return[`Finish user story #${e.id}: ${e.title}`,``,`Verify the acceptance criteria implied by the story, then summarize what changed and any verification still needed.`,`Then merge this task branch back into the current project's main branch after the worktree is clean and checks pass. Resolve conflicts if needed.`,`When the work lands, run: ${t} issue-set-status --repo . --id ${e.id} --status done`].join(`
|
|
4
|
-
`)}var O=`${n} api`;async function k(){let t=await e.getOr(`/api/cli-invocation`,{},{label:`load CLI invocation`});return typeof t.api==`string`&&t.api.trim().length>0?t.api:O}async function A(){let t=await e.get(`/api/projects`,{label:`load projects`});return Array.isArray(t.projects)?t.projects.filter(e=>typeof e==`string`):[]}async function j(t){return e.get(`/api/issues`,{query:{repoRoot:t},label:`load issues`})}async function M(t,n){return e.post(`/api/issues`,{repoRoot:t,op:n},{label:`update issues`})}async function N(e,t){return M(e,{type:`create`,...t})}async function P(e,t,n){return M(e,{type:`setStatus`,id:t,status:n})}async function F(e,t,n){return M(e,{type:`update`,id:t,...n})}async function I(e,t,n){return M(e,{type:`link`,id:t,taskId:n})}async function L(e,t){return M(e,{type:`delete`,id:t})}var R=[`open`,`doing`,`hold`,`done`],z={open:{title:`Backlog`,accent:`text-kobe-blue`},doing:{title:`In session`,accent:`text-kobe-orange`},hold:{title:`Blocked`,accent:`text-kobe-yellow`},done:{title:`Done`,accent:`text-kobe-green`}};function B(e){return e!==`done`}function V(e,t){let n=(t.query??``).trim().toLowerCase(),r=t.statuses&&t.statuses.length>0?t.statuses:null;return e.filter(e=>r&&!r.includes(e.status)?!1:!n||`#${e.id} ${e.title} ${e.body}`.toLowerCase().includes(n))}function H(e){let t={open:[],doing:[],hold:[],done:[]};for(let n of e)t[n.status]?.push(n);let n=(e,t)=>e.created===t.created?t.id-e.id:e.created<t.created?1:-1;return t.open.sort(n),t.doing.sort(n),t.hold.sort(n),t.done.sort((e,t)=>t.id-e.id),t}function U(e,t=[]){let n=new Map;for(let e of t)e.trim().length>0&&n.set(e,0);let r=new Set(e.filter(e
|
|
4
|
+
`)}var O=`${n} api`;async function k(){let t=await e.getOr(`/api/cli-invocation`,{},{label:`load CLI invocation`});return typeof t.api==`string`&&t.api.trim().length>0?t.api:O}async function A(){let t=await e.get(`/api/projects`,{label:`load projects`});return Array.isArray(t.projects)?t.projects.filter(e=>typeof e==`string`):[]}async function j(t){return e.get(`/api/issues`,{query:{repoRoot:t},label:`load issues`})}async function M(t,n){return e.post(`/api/issues`,{repoRoot:t,op:n},{label:`update issues`})}async function N(e,t){return M(e,{type:`create`,...t})}async function P(e,t,n){return M(e,{type:`setStatus`,id:t,status:n})}async function F(e,t,n){return M(e,{type:`update`,id:t,...n})}async function I(e,t,n){return M(e,{type:`link`,id:t,taskId:n})}async function L(e,t){return M(e,{type:`delete`,id:t})}var R=[`open`,`doing`,`hold`,`done`],z={open:{title:`Backlog`,accent:`text-kobe-blue`},doing:{title:`In session`,accent:`text-kobe-orange`},hold:{title:`Blocked`,accent:`text-kobe-yellow`},done:{title:`Done`,accent:`text-kobe-green`}};function B(e){return e!==`done`}function V(e,t){let n=(t.query??``).trim().toLowerCase(),r=t.statuses&&t.statuses.length>0?t.statuses:null;return e.filter(e=>r&&!r.includes(e.status)?!1:!n||`#${e.id} ${e.title} ${e.body}`.toLowerCase().includes(n))}function H(e){let t={open:[],doing:[],hold:[],done:[]};for(let n of e)t[n.status]?.push(n);let n=(e,t)=>e.created===t.created?t.id-e.id:e.created<t.created?1:-1;return t.open.sort(n),t.doing.sort(n),t.hold.sort(n),t.done.sort((e,t)=>t.id-e.id),t}function U(e,t=[]){let n=new Map;for(let e of t)e.trim().length>0&&n.set(e,0);let r=new Set(e.filter(e=>e.kind===`main`&&e.repo).map(e=>e.repo));for(let e of r)n.set(e,n.get(e)??0);let i=new Set(n.keys());for(let t of e)t.repo&&(i.size>0&&!i.has(t.repo)||n.set(t.repo,(n.get(t.repo)??0)+1));let a=[...n.keys()];return a.map(e=>({repo:e,label:y(e,a),count:n.get(e)??0})).sort((e,t)=>e.label.localeCompare(t.label))}function W(e,t){return e.length===0?null:t&&e.some(e=>e.repo===t)?t:e[0]?.repo??null}async function G(e,n,i,o){let c=await K(e,n,i,o);s(c);let l=await k().catch(()=>O),u=r(c);return await t(u,c,T(n,l,a())),{taskId:c}}async function K(e,t,n,r){let i=n?.trim()||await c(),{taskId:a}=await o(`task.create`,{repo:e,title:`#${t.id} ${t.title}`,...i?{vendor:i}:{},...r?.trim()?{effort:r.trim()}:{}});return await I(e,t.id,a).catch(()=>{}),a}async function q(e,n,r={}){let c=r.placement??`task`;if(c===`task`){let{taskId:t}=await G(e,n,r.vendor,r.effort);return{taskId:t,workspaceTaskId:t}}let l=await k().catch(()=>O),{task:u}=await o(`task.ensureMain`,{repo:e}),d=u.id;if(c===`projectWorktree`){let o=await K(e,n,r.vendor,r.effort);s(d);let c=i(d,o);return await t(c,o,T(n,l,a())),{taskId:o,workspaceTaskId:d}}let f=r.vendor?.trim();f&&await o(`task.setVendor`,{taskId:d,vendor:f}),s(d),await P(e,n.id,`doing`).catch(()=>{});let p=i(d);return await t(p,d,E(n,l)),{taskId:d,workspaceTaskId:d}}async function J(e,n){let i=await k().catch(()=>O),a=r(e);await t(a,e,D(n,i))}export{p as _,L as a,V as c,J as d,G as f,C as g,F as h,N as i,H as l,q as m,z as n,j as o,W as p,B as r,A as s,R as t,U as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{IssuesPage as e}from"./IssuesPage-C3Cp8Wsa.js";var t=e;export{t as component};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/IssueIntakePanel-
|
|
2
|
-
import{u as e}from"./terminal-Nt-mXbb9.js";import{y as t}from"./tabs-C1KFppnz.js";import{m as n,t as r}from"./createLucideIcon-C8T7_EGK.js";import{i,n as a,r as o}from"./store-C3IHXPqa.js";import{i as s}from"./chips-B2ODRu8l.js";import{o as c}from"./issues-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/IssueIntakePanel-sziV01K6.js","assets/terminal-Nt-mXbb9.js","assets/tabs-C1KFppnz.js","assets/createLucideIcon-C8T7_EGK.js","assets/issues-B31tVo5T.js","assets/store-C3IHXPqa.js","assets/active-task-Dcgkjlku.js","assets/index-DVzmgaP7.js","assets/toast-CTxQEYJU.js","assets/external-store-Djn-EBMQ.js","assets/index-BnjD9Q-3.css","assets/text-match-DW3sD-Rt.js","assets/SlideOver-BPuRlYRc.js","assets/SlideOver-B4sEOPyN.css","assets/IssuePeek-BqxYnKJo.js","assets/external-link-D4N6NrPI.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{u as e}from"./terminal-Nt-mXbb9.js";import{y as t}from"./tabs-C1KFppnz.js";import{m as n,t as r}from"./createLucideIcon-C8T7_EGK.js";import{i,n as a,r as o}from"./store-C3IHXPqa.js";import{i as s}from"./chips-B2ODRu8l.js";import{o as c}from"./issues-B31tVo5T.js";var l=r(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),u=r(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),d=e(t(),1);function f(e){let{issueSnapshots:t}=a(),[n,r]=(0,d.useState)({}),[i,s]=(0,d.useState)({}),[l,u]=(0,d.useState)(!1),f=(0,d.useRef)(new Map),p=(0,d.useRef)(new Map),m=(0,d.useRef)(new Map),h=(0,d.useRef)(new Map),g=(0,d.useCallback)(e=>{let t=(f.current.get(e)??0)+1;return f.current.set(e,t),t},[]),_=(0,d.useCallback)((e,t,n=e.repoRoot)=>{t<(p.current.get(n)??0)||(p.current.set(n,t),e.repoRoot&&e.repoRoot!==n&&h.current.set(n,e.repoRoot),r(t=>({...t,[n]:{...e,repoRoot:n}})),s(e=>{if(!(n in e))return e;let{[n]:t,...r}=e;return r}))},[]),v=(0,d.useCallback)(e=>{e.length!==0&&(u(!0),Promise.all(e.map(async e=>{let t=g(e);try{_(await c(e),t,e)}catch(t){s(n=>({...n,[e]:t instanceof Error?t.message:String(t)}))}})).finally(()=>u(!1)))},[g,_]),y=(0,d.useMemo)(()=>[...e].join(`
|
|
3
3
|
`),[e]);return(0,d.useEffect)(()=>{v(y?y.split(`
|
|
4
4
|
`):[])},[y]),(0,d.useEffect)(()=>{let e=new Map(Object.values(t).map(e=>[o(e.repoRoot),e]));for(let t of y?y.split(`
|
|
5
5
|
`):[]){let n=h.current.get(t),r=e.get(o(t))??(n?e.get(o(n)):void 0);if(!r||m.current.get(t)===r)continue;m.current.set(t,r);let i=g(t);_(r,i,t)}},[t,y,g,_]),{data:n,failed:i,loading:l,pending:(0,d.useMemo)(()=>(y?y.split(`
|
|
6
|
-
`):[]).some(e=>!(e in n)&&!(e in i)),[y,n,i]),refresh:v}}var p=n();function m({issue:e,selected:t=!1,onOpen:n,onDelete:r}){return(0,p.jsxs)(`div`,{className:`group/card relative`,"data-issue-card":e.id,children:[(0,p.jsxs)(`button`,{type:`button`,onClick:n,className:`flex w-full cursor-pointer flex-col gap-1.5 border p-3 text-left transition-colors ${t?`border-primary bg-inset`:`border-line bg-surface hover:border-primary hover:bg-inset`}`,children:[(0,p.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,p.jsxs)(`span`,{className:`shrink-0 font-mono text-[10px] text-subtle`,children:[`#`,e.id]}),(0,p.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[13px] text-fg`,children:e.title})]}),(0,p.jsx)(`div`,{className:`flex items-center gap-2 text-[11px] text-subtle`,children:(0,p.jsx)(`span`,{className:`font-mono`,children:e.created})})]}),(0,p.jsxs)(`div`,{className:`absolute right-2 top-2 flex gap-1 opacity-0 transition-opacity focus-within:opacity-100 group-hover/card:opacity-100`,children:[(0,p.jsx)(`button`,{type:`button`,onClick:n,"aria-label":`Open issue #${e.id}`,"data-tip":`Open issue detail`,className:`relative flex h-5 w-5 items-center justify-center border border-line bg-surface text-subtle hover:border-primary hover:text-fg ${s}`,children:(0,p.jsx)(l,{size:11,strokeWidth:1.8})}),(0,p.jsx)(`button`,{type:`button`,onClick:r,"aria-label":`Delete issue #${e.id}`,"data-tip":`Delete issue`,className:`relative flex h-5 w-5 items-center justify-center border border-line bg-surface text-subtle hover:border-kobe-red/50 hover:text-kobe-red ${s}`,children:(0,p.jsx)(u,{size:11,strokeWidth:1.8})})]})]})}var h=(0,d.lazy)(()=>i(()=>import(`./IssueIntakePanel-
|
|
6
|
+
`):[]).some(e=>!(e in n)&&!(e in i)),[y,n,i]),refresh:v}}var p=n();function m({issue:e,selected:t=!1,onOpen:n,onDelete:r}){return(0,p.jsxs)(`div`,{className:`group/card relative`,"data-issue-card":e.id,children:[(0,p.jsxs)(`button`,{type:`button`,onClick:n,className:`flex w-full cursor-pointer flex-col gap-1.5 border p-3 text-left transition-colors ${t?`border-primary bg-inset`:`border-line bg-surface hover:border-primary hover:bg-inset`}`,children:[(0,p.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,p.jsxs)(`span`,{className:`shrink-0 font-mono text-[10px] text-subtle`,children:[`#`,e.id]}),(0,p.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[13px] text-fg`,children:e.title})]}),(0,p.jsx)(`div`,{className:`flex items-center gap-2 text-[11px] text-subtle`,children:(0,p.jsx)(`span`,{className:`font-mono`,children:e.created})})]}),(0,p.jsxs)(`div`,{className:`absolute right-2 top-2 flex gap-1 opacity-0 transition-opacity focus-within:opacity-100 group-hover/card:opacity-100`,children:[(0,p.jsx)(`button`,{type:`button`,onClick:n,"aria-label":`Open issue #${e.id}`,"data-tip":`Open issue detail`,className:`relative flex h-5 w-5 items-center justify-center border border-line bg-surface text-subtle hover:border-primary hover:text-fg ${s}`,children:(0,p.jsx)(l,{size:11,strokeWidth:1.8})}),(0,p.jsx)(`button`,{type:`button`,onClick:r,"aria-label":`Delete issue #${e.id}`,"data-tip":`Delete issue`,className:`relative flex h-5 w-5 items-center justify-center border border-line bg-surface text-subtle hover:border-kobe-red/50 hover:text-kobe-red ${s}`,children:(0,p.jsx)(u,{size:11,strokeWidth:1.8})})]})]})}var h=(0,d.lazy)(()=>i(()=>import(`./IssueIntakePanel-sziV01K6.js`).then(e=>({default:e.IssueIntakePanel})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))),g=(0,d.lazy)(()=>i(()=>import(`./IssuePeek-BqxYnKJo.js`).then(e=>({default:e.IssuePeek})),__vite__mapDeps([14,1,2,3,15,4,5,6,7,8,9,10,11,12,13])));function _({children:e}){return(0,p.jsx)(d.Suspense,{fallback:(0,p.jsx)(`div`,{className:`fixed inset-0 z-40 flex justify-end`,children:(0,p.jsx)(`div`,{className:`relative flex h-full w-[640px] max-w-[92vw] items-center justify-center border-l border-line bg-bg text-[12px] text-subtle shadow-2xl`,children:`Loading…`})}),children:e})}export{f as a,m as i,h as n,g as r,_ as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{AppShell as e}from"./AppShell-B7CivyDd.js";var t=e;export{t as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as e}from"./terminal-Nt-mXbb9.js";import{_ as t,f as n,y as r}from"./tabs-C1KFppnz.js";import{m as i}from"./createLucideIcon-C8T7_EGK.js";import{
|
|
1
|
+
import{u as e}from"./terminal-Nt-mXbb9.js";import{_ as t,f as n,y as r}from"./tabs-C1KFppnz.js";import{m as i}from"./createLucideIcon-C8T7_EGK.js";import{t as a}from"./active-task-Dcgkjlku.js";import{t as o}from"./index-DVzmgaP7.js";import{AppShell as s}from"./AppShell-B7CivyDd.js";var c=e(r()),l=i();function u(){let{taskId:e}=o.useParams(),{selectedTaskId:r}=t();return(0,c.useEffect)(()=>{!e||e===r||(n(e),a(e))},[e,r]),(0,l.jsx)(s,{})}export{u as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,o as t,u as n}from"./terminal-Nt-mXbb9.js";import{y as r}from"./tabs-C1KFppnz.js";import{m as i,p as a,t as o}from"./createLucideIcon-C8T7_EGK.js";import{a as s,r as c}from"./toast-CTxQEYJU.js";import{n as l}from"./store-C3IHXPqa.js";import{t as u}from"./arrow-left-CkmFCPVu.js";import{n as d}from"./time-kviT26Tm.js";import{n as f,t as p}from"./ConfirmDialog-
|
|
1
|
+
import{a as e,o as t,u as n}from"./terminal-Nt-mXbb9.js";import{y as r}from"./tabs-C1KFppnz.js";import{m as i,p as a,t as o}from"./createLucideIcon-C8T7_EGK.js";import{a as s,r as c}from"./toast-CTxQEYJU.js";import{n as l}from"./store-C3IHXPqa.js";import{t as u}from"./arrow-left-CkmFCPVu.js";import{n as d}from"./time-kviT26Tm.js";import{n as f,t as p}from"./ConfirmDialog-SJlZUycl.js";var m=o(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),h=n(r(),1),g=class extends Error{};async function _(){let e=await t.get(`/api/worktrees`,{label:`load worktrees`});return Array.isArray(e.projects)?e.projects:[]}async function v(n,r){try{await t.delete(`/api/worktrees`,{path:n,force:r},{label:`delete worktree`})}catch(t){throw t instanceof e&&/refusing to remove dirty worktree/.test(t.detail)?new g(t.detail):t}}var y=i();function b(e){return e===!0?(0,y.jsx)(`span`,{className:`shrink-0 text-[10px] text-kobe-green`,children:`on remote`}):e===!1?(0,y.jsx)(`span`,{className:`shrink-0 text-[10px] text-kobe-yellow`,children:`not pushed`}):(0,y.jsx)(`span`,{className:`shrink-0 text-[10px] text-subtle`,children:`remote unknown`})}function x({row:e,linkedTaskTitle:t,onDelete:n}){return(0,y.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-line-subtle px-3 py-2 last:border-b-0`,children:[(0,y.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,y.jsx)(`span`,{className:`truncate font-mono text-[12px] text-fg`,children:e.branch||`(detached)`}),e.kobeManaged&&(0,y.jsx)(`span`,{className:`shrink-0 text-[10px] text-subtle`,children:`rove`}),e.dirty&&(0,y.jsx)(`span`,{className:`shrink-0 text-[10px] text-kobe-yellow`,children:`dirty`}),b(e.branchOnRemote),t&&(0,y.jsxs)(`span`,{className:`shrink-0 truncate text-[10px] text-subtle`,children:[`task: `,t]})]}),(0,y.jsxs)(`div`,{className:`mt-0.5 flex items-center gap-2 text-[10px] text-subtle`,children:[(0,y.jsx)(`span`,{className:`truncate font-mono`,children:e.path}),e.createdAtMs>0&&(0,y.jsxs)(`span`,{className:`ml-auto shrink-0`,children:[`created `,d(e.createdAtMs)]})]})]}),(0,y.jsx)(`button`,{type:`button`,onClick:n,className:`shrink-0 border border-line bg-bg px-2 py-1 text-[11px] text-muted transition-colors hover:border-kobe-red hover:text-kobe-red`,children:`Delete`})]})}function S(){let e=s(),{tasks:t}=l(),[n,r]=(0,h.useState)(null),[i,o]=(0,h.useState)(!1),[d,b]=(0,h.useState)(null),[S,C]=(0,h.useState)(null),[w,T]=(0,h.useState)([]),E=(0,h.useMemo)(()=>{let e=new Map;for(let n of t)n.worktreePath&&e.set(n.worktreePath,n.title||n.branch);return e},[t]),D=()=>{o(!0),_().then(r).catch(e=>c(`load worktrees`,e)).finally(()=>o(!1))};(0,h.useEffect)(D,[]);let O=(n??[]).map(e=>({...e,worktrees:e.worktrees.filter(e=>!w.includes(e.path))})),k=e=>{r(t=>t?.map(t=>({...t,worktrees:t.worktrees.filter(t=>t.path!==e)}))??t)},A=(e,t)=>{T(t=>[...t,e.path]),v(e.path,t).then(()=>{k(e.path),T(t=>t.filter(t=>t!==e.path))}).catch(n=>{T(t=>t.filter(t=>t!==e.path)),!t&&n instanceof g?C(e):c(t?`force delete worktree`:`delete worktree`,n)})};return(0,y.jsxs)(`div`,{className:`flex h-screen flex-col overflow-hidden bg-bg text-fg`,children:[(0,y.jsxs)(`header`,{"data-kobe-topbar":!0,className:`flex h-10 shrink-0 items-center gap-3 border-b border-line bg-surface px-3`,children:[(0,y.jsx)(f,{}),(0,y.jsxs)(`button`,{type:`button`,onClick:()=>e({to:`/`}),className:`flex items-center gap-1.5 text-muted transition-colors hover:text-fg`,title:`Back to workspace`,children:[(0,y.jsx)(u,{size:15,strokeWidth:1.8}),(0,y.jsx)(`span`,{className:`text-[12px]`,children:`Workspace`})]}),(0,y.jsx)(`span`,{className:`text-[10px] font-bold uppercase tracking-[0.12em] text-fg`,children:`Worktrees`}),(0,y.jsx)(`button`,{type:`button`,onClick:D,disabled:i,className:`ml-auto flex items-center gap-1.5 text-muted transition-colors hover:text-fg disabled:opacity-40`,title:`Refresh`,children:(0,y.jsx)(m,{size:13,strokeWidth:1.8,className:i?`animate-spin`:``})})]}),(0,y.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto`,children:n===null?(0,y.jsx)(`p`,{className:`px-3 py-6 text-center text-[12px] text-subtle`,children:`Loading worktrees…`}):O.length===0?(0,y.jsxs)(`p`,{className:`px-3 py-6 text-center text-[12px] text-subtle`,children:[`No local projects known to `,a(),` yet.`]}):O.map(e=>(0,y.jsxs)(`div`,{className:`border-b border-line`,children:[(0,y.jsx)(`div`,{className:`border-b border-line-subtle bg-surface px-3 py-1.5 font-mono text-[11px] text-subtle`,children:e.repo}),e.worktrees.length===0?(0,y.jsx)(`p`,{className:`px-3 py-3 text-[12px] text-subtle`,children:`No worktrees.`}):e.worktrees.map(e=>(0,y.jsx)(x,{row:e,linkedTaskTitle:E.get(e.path)??null,onDelete:()=>b(e)},e.path))]},e.repo))}),d&&(0,y.jsx)(p,{title:`Delete worktree`,body:`Delete the worktree for "${d.branch||d.path}"? This removes the working directory; the branch itself is kept.`,confirmLabel:`Delete`,danger:!0,onConfirm:()=>{if(!d)return;let e=d;b(null),A(e,!1)},onCancel:()=>b(null)}),S&&(0,y.jsx)(p,{title:`Force delete worktree`,body:`"${S.branch||S.path}" has uncommitted or untracked changes that will be PERMANENTLY LOST. Force delete anyway?`,confirmLabel:`Force delete`,danger:!0,onConfirm:()=>{if(!S)return;let e=S;C(null),A(e,!0)},onCancel:()=>C(null)})]})}var C=S;export{C as component};
|
package/dist/web-ui/index.html
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
<meta charset="UTF-8" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Rove</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-DVzmgaP7.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="/assets/terminal-Nt-mXbb9.js">
|
|
10
10
|
<link rel="modulepreload" crossorigin href="/assets/tabs-C1KFppnz.js">
|
|
11
11
|
<link rel="modulepreload" crossorigin href="/assets/createLucideIcon-C8T7_EGK.js">
|
|
12
12
|
<link rel="modulepreload" crossorigin href="/assets/external-store-Djn-EBMQ.js">
|
|
13
13
|
<link rel="modulepreload" crossorigin href="/assets/toast-CTxQEYJU.js">
|
|
14
14
|
<link rel="modulepreload" crossorigin href="/assets/store-C3IHXPqa.js">
|
|
15
|
-
<link rel="modulepreload" crossorigin href="/assets/active-task-
|
|
15
|
+
<link rel="modulepreload" crossorigin href="/assets/active-task-Dcgkjlku.js">
|
|
16
16
|
<link rel="stylesheet" crossorigin href="/assets/index-BnjD9Q-3.css">
|
|
17
17
|
</head>
|
|
18
18
|
<body>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@sma1lboy/kobe",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.36",
|
|
5
5
|
"description": "Rove — the agent multiplexer for your terminal. Run coding agents on parallel tasks with isolated worktrees and persistent sessions.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"terminal",
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{o as e,u as t}from"./terminal-Nt-mXbb9.js";import{_ as n,f as r,l as i,r as a,y as o}from"./tabs-C1KFppnz.js";import{d as s,m as c,p as l,t as u}from"./createLucideIcon-C8T7_EGK.js";import{a as d,n as f,r as p}from"./toast-CTxQEYJU.js";import{n as m,t as h}from"./ViewToggle-CROAjX49.js";import{n as g,t as _}from"./store-C3IHXPqa.js";import{n as v,t as y}from"./active-task-DOIy-xHd.js";import{t as b}from"./external-store-Djn-EBMQ.js";import{i as x,r as S,t as C}from"./WorkspaceTabs-D2mBvhlt.js";import{t as w}from"./SettingsPage-BARY9KCh.js";import{t as T}from"./ChatTranscript-BaXVLIwa.js";import{C as E,S as D,T as O,_ as ee,c as k,f as A,g as j,h as M,m as N,n as te,o as ne,p as P,r as F,s as re,u as ie,v as ae,w as I,x as L,y as oe}from"./index-wTeVn7Ca.js";import{r as R}from"./web-transport-BFmRPA6p.js";import{n as z,t as B}from"./time-kviT26Tm.js";import{n as V,t as H}from"./ConfirmDialog-BJlYZhgy.js";import{t as se}from"./text-match-DW3sD-Rt.js";import{t as ce}from"./SlideOver-CFuCH6OP.js";import{n as le,r as ue,t as de}from"./chips-B2ODRu8l.js";var fe=u(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),pe=u(`folder-input`,[[`path`,{d:`M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1`,key:`fm4g5t`}],[`path`,{d:`M2 13h10`,key:`pgb2dq`}],[`path`,{d:`m9 16 3-3-3-3`,key:`6m91ic`}]]),U=u(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),me=u(`panel-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),W=t(o(),1),G=c();function he({onClose:e}){let{tasks:t}=g(),n=d(),i=(0,W.useRef)(null);P(i);let a=(0,W.useMemo)(()=>{let e=new Set,n=[];for(let r of t)r.repo&&!e.has(r.repo)&&(e.add(r.repo),n.push(r.repo));return n.sort()},[t]),o=(0,W.useMemo)(()=>new Set(t.map(e=>e.worktreePath).filter(Boolean)),[t]),[s,c]=(0,W.useState)(a[0]??``),[u,m]=(0,W.useState)(null),[h,y]=(0,W.useState)(!1),[b,x]=(0,W.useState)(null),[S,C]=(0,W.useState)(!1),w=async e=>{if(e){y(!0),m(null);try{let{worktrees:t}=await _(`worktree.discoverAdoptable`,{repo:e});m(t)}catch(e){p(`scan worktrees`,e),m([])}finally{y(!1)}}},T=async t=>{x(t.path);try{let{task:i}=await _(`worktree.adopt`,{repo:s,worktreePath:t.path,branch:t.branch,ifExists:`return`});r(i.id),v(i.id),n({to:`/task/$taskId`,params:{taskId:i.id}}),f(`success`,`Adopted ${t.branch||t.path}`),e()}catch(e){p(`adopt worktree`,e)}finally{x(null)}};return S?(0,G.jsx)(F,{onClose:e}):a.length===0?(0,G.jsx)(`div`,{className:`fixed inset-0 z-40 flex items-center justify-center bg-black/60`,onClick:e,onKeyDown:t=>{t.key===`Escape`&&e()},role:`presentation`,children:(0,G.jsxs)(`div`,{ref:i,role:`dialog`,"aria-modal":`true`,"aria-label":`Adopt worktree`,className:`flex w-[32rem] max-w-[calc(100vw-2rem)] flex-col border border-line bg-surface shadow-xl`,onClick:e=>e.stopPropagation(),onKeyDown:()=>{},children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between border-b border-line px-3 py-2`,children:[(0,G.jsx)(`span`,{className:`text-[10px] font-bold uppercase tracking-[0.12em] text-fg`,children:`Adopt worktree`}),(0,G.jsxs)(`span`,{className:`font-mono text-[10px] text-subtle`,children:[`pull an existing worktree into `,l()]})]}),(0,G.jsxs)(`div`,{className:`px-3 py-6 text-center`,children:[(0,G.jsxs)(`p`,{className:`text-[12px] leading-relaxed text-subtle`,children:[`No repos known to `,l(),` yet. Create a task in a repo first, then come back to adopt its worktrees.`]}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>C(!0),className:`mt-4 border border-primary bg-inset px-3 py-1.5 text-[11px] text-fg transition-colors hover:bg-primary/10`,children:`Create a task`})]}),(0,G.jsx)(`div`,{className:`flex justify-end border-t border-line px-3 py-2`,children:(0,G.jsx)(`button`,{type:`button`,onClick:e,className:`border border-line bg-bg px-3 py-1.5 text-[11px] text-muted transition-colors hover:border-primary hover:text-fg`,children:`Close`})})]})}):(0,G.jsx)(`div`,{className:`fixed inset-0 z-40 flex items-center justify-center bg-black/60`,onClick:e,onKeyDown:t=>{t.key===`Escape`&&e()},role:`presentation`,children:(0,G.jsxs)(`div`,{ref:i,role:`dialog`,"aria-modal":`true`,"aria-label":`Adopt worktree`,className:`flex max-h-[80vh] w-[32rem] max-w-[calc(100vw-2rem)] flex-col border border-line bg-surface shadow-xl`,onClick:e=>e.stopPropagation(),onKeyDown:()=>{},children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between border-b border-line px-3 py-2`,children:[(0,G.jsx)(`span`,{className:`text-[10px] font-bold uppercase tracking-[0.12em] text-fg`,children:`Adopt worktree`}),(0,G.jsxs)(`span`,{className:`font-mono text-[10px] text-subtle`,children:[`pull an existing worktree into `,l()]})]}),(0,G.jsxs)(`div`,{className:`space-y-2 px-3 py-3`,children:[(0,G.jsx)(`div`,{className:`mb-1 text-[10px] font-bold uppercase tracking-[0.12em] text-subtle`,children:`Repo`}),(0,G.jsxs)(`div`,{className:`flex gap-2`,children:[(0,G.jsx)(`select`,{value:s,onChange:e=>c(e.target.value),className:`min-w-0 flex-1 border border-line bg-bg px-2 py-1.5 text-[12px] text-fg focus:border-line-active focus:outline-none`,children:a.map(e=>(0,G.jsx)(`option`,{value:e,children:e},e))}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>void w(s),disabled:!s||h,className:`shrink-0 border border-primary bg-inset px-3 py-1.5 text-[11px] text-fg transition-colors hover:bg-primary/10 disabled:opacity-40`,children:h?`Scanning…`:`Scan`})]})]}),(0,G.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto border-t border-line`,children:u===null?(0,G.jsx)(`p`,{className:`px-3 py-6 text-center text-[12px] text-subtle`,children:`Pick a repo and Scan to find adoptable worktrees.`}):u.length===0?(0,G.jsx)(`p`,{className:`px-3 py-6 text-center text-[12px] text-subtle`,children:`No adoptable worktrees found for this repo.`}):u.map(e=>{let t=o.has(e.path);return(0,G.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-line-subtle px-3 py-2 last:border-b-0`,children:[(0,G.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,G.jsx)(`span`,{className:`truncate font-mono text-[12px] text-fg`,children:e.branch||`(detached)`}),e.dirty&&(0,G.jsx)(`span`,{className:`shrink-0 text-[10px] text-kobe-yellow`,children:`dirty`}),e.kobeManaged&&(0,G.jsx)(`span`,{className:`shrink-0 text-[10px] text-subtle`,children:`rove`})]}),(0,G.jsxs)(`div`,{className:`mt-0.5 flex items-center gap-2 text-[10px] text-subtle`,children:[(0,G.jsx)(`span`,{className:`truncate font-mono`,children:e.path}),e.lastActivityMs>0&&(0,G.jsx)(`span`,{className:`ml-auto shrink-0`,children:z(e.lastActivityMs)})]})]}),t?(0,G.jsx)(`span`,{className:`shrink-0 text-[10px] text-subtle`,children:`tracked`}):(0,G.jsx)(`button`,{type:`button`,onClick:()=>void T(e),disabled:b!==null,className:`shrink-0 border border-line bg-bg px-2 py-1 text-[11px] text-muted transition-colors hover:border-primary hover:text-fg disabled:opacity-40`,children:b===e.path?`Adopting…`:`Adopt`})]},e.path)})}),(0,G.jsx)(`div`,{className:`flex justify-end border-t border-line px-3 py-2`,children:(0,G.jsx)(`button`,{type:`button`,onClick:e,className:`border border-line bg-bg px-3 py-1.5 text-[11px] text-muted transition-colors hover:border-primary hover:text-fg`,children:`Close`})})]})})}var K=b({query:``,statusFilter:`all`,sortMode:`default`,showArchived:!1}),q=null;function J(e){K.update(t=>({...t,...e}))}function Y(e){J({query:e})}function ge(e){J({statusFilter:e})}function _e(e){J({sortMode:e})}function ve(e){J({showArchived:e})}function ye(e){!e||e===q||(q=e,J({sortMode:e}))}function be(){return K.useSnapshot()}function xe(e){let t=Date.parse(e.updatedAt||e.createdAt);return Number.isFinite(t)?t:0}function Se(e,t){let n=xe(t)-xe(e);return n===0?t.id.localeCompare(e.id):n}function Ce(e,t){let n=e.filter(e=>e.kind===`main`),r=e.filter(e=>e.kind!==`main`&&e.pinned),i=e.filter(e=>e.kind!==`main`&&!e.pinned);return t===`recent`&&(r.sort(Se),i.sort(Se)),[...n,...r,...i]}function we(e,t){let n=[e.title,e.branch,e.repo,e.worktreePath,e.vendor,e.status].filter(Boolean).join(` `);return se(n,t)}function Te({task:e,onClose:t}){return(0,G.jsx)(ce,{open:e!==null,onClose:t,title:e?(0,G.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,G.jsx)(`span`,{className:`shrink-0 border border-line px-1 py-0.5 font-mono text-[9px] uppercase tracking-wide text-subtle`,children:`Archived`}),(0,G.jsx)(`span`,{className:`min-w-0 truncate`,children:e.title||e.branch})]}):void 0,children:e&&(0,G.jsx)(T,{worktreePath:e.worktreePath??null,vendor:k(e.vendor),title:e.title||e.branch})})}function Ee({children:e,suffix:t}){return(0,G.jsxs)(`div`,{className:`flex items-center gap-2 px-3 py-2`,children:[(0,G.jsx)(`span`,{className:`text-[10px] font-bold uppercase tracking-[0.12em] text-subtle`,children:e}),t?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{className:`h-px flex-1 bg-line`}),(0,G.jsx)(`span`,{className:`font-mono text-[10px] font-bold uppercase text-primary`,children:t})]}):null]})}function De({task:e,engine:t,job:n,changes:r,engineName:i,active:a,onClick:o}){let s=n?.phase===`running`,c=s?`materializing…`:M(t?.state),l=B(e.updatedAt||e.createdAt);return(0,G.jsxs)(`button`,{type:`button`,"data-task-id":e.id,onClick:o,className:`group w-full border-l-2 px-3 py-2 text-left transition-colors ${a?`border-primary bg-inset`:`border-transparent hover:bg-surface`}`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[s?(0,G.jsx)(U,{size:10,strokeWidth:2.5,className:`shrink-0 animate-spin text-primary`}):(0,G.jsx)(`span`,{className:`h-1.5 w-1.5 shrink-0 rounded-full ${N(t?.state)}`}),(0,G.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[13px] ${a?`text-fg`:`text-fg/90`}`,children:e.title||e.branch}),(0,G.jsx)(ue,{pr:e.prStatus}),e.pinned&&(0,G.jsx)(`span`,{className:`shrink-0 text-[10px] text-subtle`,children:`PIN`}),(0,G.jsx)(de,{counts:r})]}),(0,G.jsxs)(`div`,{className:`mt-0.5 flex items-center gap-2 pl-3.5 text-[11px] text-subtle`,children:[(0,G.jsx)(`span`,{className:`min-w-0 truncate`,children:e.branch||`—`}),(0,G.jsxs)(`span`,{className:`ml-auto flex shrink-0 items-center gap-2`,children:[(0,G.jsx)(le,{label:i}),c&&(0,G.jsx)(`span`,{className:`text-muted`,children:c}),l&&(0,G.jsx)(`span`,{className:`text-subtle`,children:l})]})]})]})}function Oe({task:e,onRestore:t,onPreview:n}){let r=e.title||e.branch;return(0,G.jsxs)(`div`,{className:`group flex items-center gap-2 border-l-2 border-transparent px-3 py-1.5`,children:[n?(0,G.jsx)(`button`,{type:`button`,onClick:n,title:`Preview history`,className:`min-w-0 flex-1 truncate text-left text-[12px] text-subtle transition-colors hover:text-fg`,children:r}):(0,G.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[12px] text-subtle`,children:r}),(0,G.jsx)(`button`,{type:`button`,onClick:t,className:`shrink-0 border border-line bg-surface px-1.5 py-0.5 text-[10px] text-muted opacity-0 transition-opacity hover:border-primary hover:text-fg group-hover:opacity-100`,children:`Restore`})]})}function ke({onOpenSettings:e,onNewTask:t,onAdopt:i}){let{tasks:a,engineStates:o,jobs:s,worktreeChanges:c,uiPrefs:l,hydrated:u,streamConnected:f}=g(),{selectedTaskId:m}=n(),h=A(),y=(0,W.useMemo)(()=>ne(a),[a]),b=e=>re(h,e,y),{query:x,statusFilter:S,sortMode:C,showArchived:w}=be(),T=(0,W.useRef)(null),E=(0,W.useRef)(null);(0,W.useEffect)(()=>{m&&T.current?.querySelector(`[data-task-id="${CSS.escape(m)}"]`)?.scrollIntoView({block:`nearest`})},[m]);let D=l?.sortMode;(0,W.useEffect)(()=>{ye(D)},[D]);let O=(0,W.useMemo)(()=>a.filter(e=>!e.archived),[a]),k=(0,W.useMemo)(()=>a.filter(e=>e.archived&&e.kind!==`main`),[a]),M=(0,W.useMemo)(()=>Ce(O.filter(e=>we(e,x)&&te(o[e.id],c[e.worktreePath],S)),C),[O,x,S,C,o,c]),N=M.filter(e=>e.kind===`main`),P=M.filter(e=>e.kind!==`main`),F=!u||!f&&a.length===0,I=d(),L=e=>{r(e),v(e),I({to:`/task/$taskId`,params:{taskId:e}})};(0,W.useEffect)(()=>{let e=e=>{if(e.metaKey||e.ctrlKey||e.altKey)return;let t=e.key,n=t===`ArrowDown`||t===`ArrowUp`,r=t===`j`||t===`ArrowDown`,i=t===`k`||t===`ArrowUp`,a=t===`/`;if(!r&&!i&&!a)return;let o=e.target;if(o&&(o.tagName===`INPUT`||o.tagName===`TEXTAREA`||o.tagName===`SELECT`||o.isContentEditable)||document.querySelector(`[role=dialog],[role=alertdialog]`)||document.querySelector(`[data-settings-open]`))return;if(a){e.preventDefault(),E.current?.focus();return}if(n&&o&&o!==document.body&&!T.current?.contains(o)||M.length===0)return;e.preventDefault();let s=M.findIndex(e=>e.id===m),c=s===-1?0:Math.min(Math.max(s+(r?1:-1),0),M.length-1);L(M[c].id)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[M,m]);let R=e=>{_(`task.archive`,{taskId:e.id,archived:!1}).catch(t=>p(`restore "${e.title||e.branch}"`,t))},[z,B]=(0,W.useState)(!1),[V,H]=(0,W.useState)(null);return(0,W.useEffect)(()=>{let e=!0;return ie().then(t=>{e&&B(t.archivedHistoryPreview===!0)}).catch(()=>{}),()=>{e=!1}},[]),(0,G.jsxs)(`aside`,{className:`flex w-64 shrink-0 flex-col border-r border-line bg-bg`,children:[(0,G.jsxs)(`div`,{className:`border-b border-line bg-surface/50 px-3 py-2`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,G.jsx)(`span`,{className:`text-[10px] font-bold uppercase tracking-[0.12em] text-subtle`,children:`Tasks`}),(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,G.jsx)(`button`,{type:`button`,onClick:()=>_e(C==="default"?`recent`:`default`),className:`font-mono text-[10px] uppercase ${C===`recent`?`text-primary`:`text-muted hover:text-fg`}`,title:`Toggle task sort`,children:`sort`}),(0,G.jsxs)(`span`,{className:`font-mono text-[10px] text-muted`,children:[M.length,`/`,O.length]}),(0,G.jsx)(`button`,{type:`button`,onClick:i,className:`text-muted transition-colors hover:text-primary`,title:`Adopt an existing worktree`,"aria-label":`Adopt worktree`,children:(0,G.jsx)(pe,{size:14,strokeWidth:1.9})}),(0,G.jsx)(`button`,{type:`button`,onClick:t,className:`text-muted transition-colors hover:text-primary`,title:`New task`,"aria-label":`New task`,children:(0,G.jsx)(oe,{size:14,strokeWidth:2.2})})]})]}),(0,G.jsxs)(`label`,{className:`mt-2 flex h-8 items-center gap-2 border border-line bg-bg px-2 text-[12px] text-muted focus-within:border-line-active`,children:[(0,G.jsx)(ae,{size:14,strokeWidth:1.8,className:`shrink-0 text-subtle`}),(0,G.jsx)(`input`,{ref:E,value:x,onChange:e=>Y(e.target.value),onKeyDown:e=>{e.key===`Enter`&&M.length>0?(e.preventDefault(),L(M[0].id),e.currentTarget.blur()):e.key===`Escape`&&x&&(e.preventDefault(),Y(``))},placeholder:`Filter tasks`,className:`min-w-0 flex-1 bg-transparent text-fg placeholder:text-subtle focus:outline-none`}),x&&(0,G.jsx)(`button`,{type:`button`,onClick:()=>Y(``),className:`shrink-0 text-subtle hover:text-fg`,"aria-label":`clear task filter`,title:`Clear filter`,children:(0,G.jsx)(j,{size:13,strokeWidth:2})})]}),(0,G.jsx)(`div`,{className:`mt-2 flex items-center gap-1`,children:[{key:`all`,label:`All`,title:`All tasks`},{key:`attention`,label:`Needs`,title:`Needs input / errored / rate-limited`}].map(e=>(0,G.jsx)(`button`,{type:`button`,onClick:()=>ge(e.key),title:e.title,className:`border px-1.5 py-0.5 text-[10px] transition-colors ${S===e.key?`border-primary bg-inset text-fg`:`border-line bg-bg text-subtle hover:border-primary hover:text-fg`}`,children:e.label},e.key))})]}),(0,G.jsxs)(`div`,{ref:T,className:`flex-1 overflow-y-auto`,children:[F?(0,G.jsxs)(`div`,{className:`flex items-center gap-2 px-3 py-4 text-[12px] text-subtle`,children:[(0,G.jsx)(U,{size:13,strokeWidth:2,className:`animate-spin`}),(0,G.jsx)(`span`,{children:`connecting…`})]}):O.length===0?(0,G.jsxs)(`div`,{className:`px-3 py-4 text-[12px] leading-relaxed text-subtle`,children:[(0,G.jsx)(`p`,{children:`No tasks yet.`}),(0,G.jsx)(`button`,{type:`button`,onClick:t,className:`mt-3 border border-line bg-surface px-2 py-1 text-[11px] text-muted hover:border-primary hover:text-fg`,children:`+ New task`})]}):M.length===0?(0,G.jsxs)(`div`,{className:`px-3 py-4 text-[12px] leading-relaxed text-subtle`,children:[(0,G.jsx)(`div`,{children:x?`No matches for “${x}”.`:`No tasks in this status.`}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>{Y(``),ge(`all`)},className:`mt-3 border border-line bg-surface px-2 py-1 text-[11px] text-muted hover:border-primary hover:text-fg`,children:`Clear filter`})]}):(0,G.jsxs)(G.Fragment,{children:[N.length>0&&(0,G.jsx)(Ee,{children:`Projects`}),N.map(e=>(0,G.jsx)(De,{task:e,engine:o[e.id],job:s[e.id],changes:c[e.worktreePath],engineName:b(e),active:e.id===m,onClick:()=>L(e.id)},e.id)),P.length>0&&(0,G.jsx)(Ee,{suffix:C==="default"?void 0:C,children:`Worktrees`}),P.map(e=>(0,G.jsx)(De,{task:e,engine:o[e.id],job:s[e.id],changes:c[e.worktreePath],engineName:b(e),active:e.id===m,onClick:()=>L(e.id)},e.id))]}),!F&&k.length>0&&(0,G.jsxs)(`div`,{className:`mt-2 border-t border-line-subtle pb-2`,children:[(0,G.jsxs)(`button`,{type:`button`,onClick:()=>ve(!w),className:`flex w-full items-center gap-2 px-3 py-2 text-left`,children:[(0,G.jsx)(`span`,{className:`text-[10px] font-bold uppercase tracking-[0.12em] text-subtle`,children:`Archived`}),(0,G.jsx)(`span`,{className:`font-mono text-[10px] text-subtle`,children:k.length}),(0,G.jsx)(`span`,{className:`ml-auto font-mono text-[10px] text-subtle`,children:w?`−`:`+`})]}),w&&k.map(e=>(0,G.jsx)(Oe,{task:e,onRestore:()=>R(e),onPreview:z?()=>H(e):void 0},e.id))]})]}),(0,G.jsx)(Te,{task:V,onClose:()=>H(null)}),(0,G.jsx)(`div`,{className:`border-t border-line p-2`,children:(0,G.jsxs)(`button`,{type:`button`,onClick:e,className:`flex w-full items-center gap-2 border border-line bg-surface px-2 py-2 text-left text-[12px] text-muted transition-colors hover:border-primary hover:bg-inset hover:text-fg`,children:[(0,G.jsx)(ee,{size:15,strokeWidth:1.8}),(0,G.jsx)(`span`,{children:`Settings`})]})})]})}async function Ae(e){try{if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement(`textarea`);t.value=e,t.style.position=`fixed`,t.style.opacity=`0`,document.body.appendChild(t),t.select();let n=document.execCommand(`copy`);return document.body.removeChild(t),n}catch{return!1}}function X(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`)}var je=/^\/api\/issue-assets\/[a-f0-9]{16}\/[A-Za-z0-9_-]+\.[a-z0-9]+$/;function Me(e){let t=e.trim();return je.test(t)?t:null}function Ne(e){let t=e.trim();return/^https?:\/\//i.test(t)?t:t.startsWith(`//`)?null:t.startsWith(`/`)||t.startsWith(`#`)||t.startsWith(`./`)||t.startsWith(`../`)?t:null}var Pe=`(?:[^()]|\\([^()]*\\))+`,Fe=RegExp(`!\\[([^\\]]*)\\]\\((${Pe})\\)`,`g`),Ie=RegExp(`\\[([^\\]]+)\\]\\((${Pe})\\)`,`g`);function Le(e,t){let n=Ne(t.replace(/&/g,`&`));return n?`<a href="${X(n)}" target="_blank" rel="noopener noreferrer" class="kobe-md-link">${e}</a>`:`${e}(${t})`}function Re(e){let t=e;return t.includes(`]`)&&t.includes(`)`)&&(t=t.replace(Fe,(e,t,n)=>{let r=Me(n.replace(/&/g,`&`));return r?`<img src="${X(r)}" alt="${t}" loading="lazy" class="kobe-md-img">`:t?Le(t,n):``})),t.includes(`]`)&&t.includes(`)`)&&(t=t.replace(Ie,(e,t,n)=>Le(t,n))),t=t.replace(/\*\*(.+?)\*\*/g,`<strong>$1</strong>`),t=t.replace(/(^|[^*])\*([^*]+)\*/g,`$1<em>$2</em>`),t}function Z(e){return e.split(/(`[^`]+`)/g).map((e,t)=>t%2==1?`<code class="kobe-md-code">${e.slice(1,-1)}</code>`:Re(e)).join(``)}function ze(e){let t=e.replace(/\r\n/g,`
|
|
2
|
-
`).split(`
|
|
3
|
-
`),n=[],r=0,i=null,a=()=>{i&&=(n.push(`</${i}>`),null)};for(;r<t.length;){let e=t[r];if(/^```/.test(e)){a();let e=[];for(r++;r<t.length&&!/^```/.test(t[r]);)e.push(X(t[r])),r++;r++,n.push(`<pre class="kobe-md-pre"><code>${e.join(`
|
|
4
|
-
`)}</code></pre>`);continue}if(/^\s*(-{3,}|\*{3,}|_{3,})\s*$/.test(e)){a(),n.push(`<hr class="kobe-md-hr" />`),r++;continue}let o=/^(#{1,6})\s+(.*)$/.exec(e);if(o){a();let e=o[1].length;n.push(`<h${e} class="kobe-md-h">${Z(X(o[2]))}</h${e}>`),r++;continue}if(/^>\s?/.test(e)){a(),n.push(`<blockquote class="kobe-md-quote">${Z(X(e.replace(/^>\s?/,``)))}</blockquote>`),r++;continue}let s=/^\s*[-*]\s+(.*)$/.exec(e);if(s){i!==`ul`&&(a(),n.push(`<ul class="kobe-md-ul">`),i=`ul`),n.push(`<li>${Z(X(s[1]))}</li>`),r++;continue}let c=/^\s*\d+\.\s+(.*)$/.exec(e);if(c){i!==`ol`&&(a(),n.push(`<ol class="kobe-md-ol">`),i=`ol`),n.push(`<li>${Z(X(c[1]))}</li>`),r++;continue}if(e.trim()===``){a(),r++;continue}a();let l=[e];for(r++;r<t.length&&t[r].trim()!==``&&!/^(#{1,6}\s|>\s?|```|\s*[-*]\s|\s*\d+\.\s|\s*(-{3,}|\*{3,}|_{3,})\s*$)/.test(t[r]);)l.push(t[r]),r++;n.push(`<p class="kobe-md-p">${Z(X(l.join(` `)))}</p>`)}return a(),n.join(`
|
|
5
|
-
`)}async function Be(t){return(await e.get(`/api/notes`,{query:{taskId:t},label:`load notes`})).markdown??``}async function Ve(t,n){await e.put(`/api/notes`,{taskId:t,markdown:n},{label:`save notes`})}function He(e){switch(e){case`saving`:return`saving…`;case`saved`:return`saved`;case`error`:return`save failed`;default:return``}}var Ue=600;function We({children:e,right:t}){return(0,G.jsxs)(`div`,{className:`flex items-center justify-between px-3 py-2`,children:[(0,G.jsx)(`span`,{className:`text-[10px] font-bold uppercase tracking-[0.12em] text-subtle`,children:e}),t]})}function Ge({taskId:e,full:t=!1}){let[n,r]=(0,W.useState)(``),[i,a]=(0,W.useState)(!1),[o,s]=(0,W.useState)(!1),[c,l]=(0,W.useState)(`idle`),u=(0,W.useMemo)(()=>ze(n),[n]),d=(0,W.useRef)(null),f=(0,W.useRef)(null),p=(0,W.useRef)(null),m=(0,W.useCallback)(()=>{d.current&&=(clearTimeout(d.current),null);let e=p.current;if(!e)return;p.current=null;let{taskId:t,value:n}=e;Ve(t,n).then(()=>{f.current===t&&l(`saved`)}).catch(()=>{f.current===t&&l(`error`)})},[]);(0,W.useEffect)(()=>{if(f.current=e,m(),l(`idle`),r(``),a(!1),!e)return;let t=!1;return s(!0),Be(e).then(n=>{!t&&f.current===e&&r(n)}).catch(()=>{!t&&f.current===e&&r(``)}).finally(()=>{t||s(!1)}),()=>{t=!0}},[e,m]),(0,W.useEffect)(()=>()=>{m()},[m]);let h=(0,W.useCallback)(t=>{if(r(t),!e)return;let n=e;l(`saving`),p.current={taskId:n,value:t},d.current&&clearTimeout(d.current),d.current=setTimeout(m,Ue)},[e,m]);return(0,G.jsxs)(`div`,{className:`flex h-full min-h-0 flex-1 flex-col bg-bg`,children:[(0,G.jsx)(We,{right:e?(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[c!==`idle`&&(0,G.jsx)(`span`,{className:`text-[10px] ${c===`error`?`text-kobe-red`:`text-subtle`}`,children:He(c)}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>a(e=>!e),className:`border px-1.5 py-0.5 text-[10px] transition-colors ${i?`border-primary bg-inset text-fg`:`border-line bg-bg text-muted hover:border-primary hover:text-fg`}`,title:`Toggle markdown preview`,children:i?`Edit`:`Preview`})]}):null,children:`Notes`}),(0,G.jsx)(`div`,{className:`min-h-0 flex-1 ${t?`px-0 pb-0`:`px-3 pb-3`}`,children:e?i?(0,G.jsx)(`div`,{className:`h-full w-full overflow-auto bg-surface px-4 py-3 ${t?`border-t border-line`:`rounded border border-line`}`,children:n.trim()?(0,G.jsx)(`div`,{className:`kobe-md text-[12px] leading-relaxed text-fg`,dangerouslySetInnerHTML:{__html:u}}):(0,G.jsx)(`p`,{className:`text-[12px] text-subtle`,children:`Nothing to preview yet.`})}):(0,G.jsx)(`textarea`,{value:n,onChange:e=>h(e.target.value),spellCheck:!1,placeholder:o?`loading notes…`:`Notes for this task — markdown, autosaved.`,disabled:o,className:`h-full w-full resize-none border-line bg-surface px-4 py-3 font-mono text-[12px] leading-relaxed text-fg placeholder:text-subtle focus:border-line-active focus:outline-none disabled:opacity-60 ${t?`border-x-0 border-b-0 border-t`:`rounded border`}`}):(0,G.jsx)(`div`,{className:`flex h-full items-center justify-center px-4 text-center`,children:(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`div`,{className:`text-[12px] font-semibold text-fg`,children:`No task selected`}),(0,G.jsx)(`div`,{className:`mt-1 max-w-48 text-[12px] leading-relaxed text-subtle`,children:`Pick a task to open its web-only scratchpad.`})]})})})]})}var Ke=[`backlog`,`in_progress`,`in_review`,`done`,`canceled`,`error`],qe=`DIRTY_WORKTREE`;function Je(e){return e.replace(/_/g,` `)}function Q({name:e,value:t,mono:n=!1}){return(0,G.jsxs)(`div`,{className:`min-w-0 border-b border-line-subtle py-2 last:border-b-0`,children:[(0,G.jsx)(`div`,{className:`text-[10px] font-bold uppercase tracking-[0.12em] text-subtle`,children:e}),(0,G.jsx)(`div`,{className:`mt-1 min-w-0 truncate text-[12px] text-fg ${n?`font-mono`:``}`,title:t,children:t||`—`})]})}function $({children:e,onClick:t,disabled:n,danger:r=!1}){return(0,G.jsx)(`button`,{type:`button`,onClick:t,disabled:n,className:`border px-2 py-1 text-[11px] transition-colors disabled:opacity-40 ${r?`border-kobe-red/40 text-kobe-red hover:bg-kobe-red/10`:`border-line bg-surface text-muted hover:border-primary hover:text-fg`}`,children:e})}function Ye({task:e}){let[t,n]=(0,W.useState)(e?.title??``),[r,i]=(0,W.useState)(e?.branch??``),[o,s]=(0,W.useState)(null),[c,l]=(0,W.useState)(!1),u=(0,W.useRef)(null);(0,W.useEffect)(()=>()=>{u.current&&clearTimeout(u.current)},[]);let[m,h]=(0,W.useState)(null),g=A(),b=d();if((0,W.useEffect)(()=>{n(e?.title??``)},[e?.title]),(0,W.useEffect)(()=>{i(e?.branch??``)},[e?.branch]),!e)return(0,G.jsx)(`div`,{className:`flex h-full items-center justify-center px-4 text-center`,children:(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`div`,{className:`text-[12px] font-semibold text-fg`,children:`No task selected`}),(0,G.jsx)(`div`,{className:`mt-1 max-w-48 text-[12px] leading-relaxed text-subtle`,children:`Pick a task to edit its metadata and worktree state.`})]})});let x=async(e,t)=>{s(e);try{await t()}catch(t){p(e.split(`:`)[0],t)}finally{s(null)}},S=()=>{let n=t.trim();!n||n===e.title||x(`rename`,()=>_(`task.rename`,{taskId:e.id,title:n}))},C=()=>{let t=r.trim();!t||t===e.branch||x(`branch`,()=>_(`task.setBranch`,{taskId:e.id,branch:t}))},w=()=>{Ae(e.worktreePath).then(e=>{e&&(l(!0),u.current&&clearTimeout(u.current),u.current=setTimeout(()=>l(!1),1200))})},T=()=>{h(null),x(`archive`,async()=>{await _(`task.archive`,{taskId:e.id,archived:!0}),a(),b({to:`/`}),await y(null)})},E=()=>{x(`restore`,()=>_(`task.archive`,{taskId:e.id,archived:!1}))},D=t=>{h(null),s(`delete`),(async()=>{try{await _(`task.delete`,{taskId:e.id,force:t}),a(),b({to:`/`}),v(null),f(`success`,`Deleted "${e.title||e.branch}"`)}catch(e){let n=e instanceof Error?e.message:String(e);!t&&n.includes(qe)?h({kind:`delete`,force:!0}):p(`delete`,e)}finally{s(null)}})()};return(0,G.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col`,children:[(0,G.jsxs)(`div`,{className:`border-b border-line px-3 py-3`,children:[(0,G.jsx)(`div`,{className:`text-[10px] font-bold uppercase tracking-[0.12em] text-subtle`,children:`Task`}),(0,G.jsxs)(`div`,{className:`mt-2 flex gap-2`,children:[(0,G.jsx)(`input`,{value:t,onChange:e=>n(e.target.value),onBlur:S,onKeyDown:e=>{e.key===`Enter`&&S()},className:`min-w-0 flex-1 border border-line bg-bg px-2 py-1.5 text-[12px] text-fg focus:border-line-active focus:outline-none`}),(0,G.jsx)($,{onClick:S,disabled:o===`rename`,children:`Save`})]}),e.archived&&(0,G.jsxs)(`div`,{className:`mt-2 flex items-center justify-between gap-2 border border-kobe-yellow/40 bg-kobe-yellow/10 px-2 py-1.5`,children:[(0,G.jsx)(`span`,{className:`text-[11px] text-kobe-yellow`,children:`archived`}),(0,G.jsx)($,{onClick:E,disabled:o!==null,children:`Restore`})]})]}),(0,G.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-3 py-2`,children:[e.kind===`main`?(0,G.jsx)(Q,{name:`Branch`,value:e.branch,mono:!0}):(0,G.jsxs)(`div`,{className:`min-w-0 border-b border-line-subtle py-2`,children:[(0,G.jsx)(`div`,{className:`text-[10px] font-bold uppercase tracking-[0.12em] text-subtle`,children:`Branch`}),(0,G.jsx)(`div`,{className:`mt-1 flex gap-2`,children:(0,G.jsx)(`input`,{value:r,onChange:e=>i(e.target.value),onBlur:C,onKeyDown:e=>{e.key===`Enter`&&C()},className:`min-w-0 flex-1 border border-line bg-bg px-2 py-1 font-mono text-[12px] text-fg focus:border-line-active focus:outline-none`})})]}),(0,G.jsx)(Q,{name:`Vendor`,value:k(e.vendor)}),(0,G.jsx)(Q,{name:`Worktree`,value:e.worktreePath,mono:!0}),(0,G.jsx)(Q,{name:`Repo`,value:e.repo,mono:!0}),(0,G.jsxs)(`div`,{className:`mt-4`,children:[(0,G.jsx)(`div`,{className:`mb-2 text-[10px] font-bold uppercase tracking-[0.12em] text-subtle`,children:`Status`}),(0,G.jsx)(`div`,{className:`grid grid-cols-2 gap-1.5`,children:Ke.map(t=>(0,G.jsx)(`button`,{type:`button`,onClick:()=>void x(`status:${t}`,()=>_(`task.status`,{taskId:e.id,status:t})),disabled:o!==null,className:`border px-2 py-1.5 text-left text-[11px] capitalize transition-colors disabled:opacity-40 ${e.status===t?`border-primary bg-inset text-fg`:`border-line bg-surface text-muted hover:border-primary hover:text-fg`}`,children:Je(t)},t))})]}),(0,G.jsxs)(`div`,{className:`mt-4`,children:[(0,G.jsx)(`div`,{className:`mb-2 text-[10px] font-bold uppercase tracking-[0.12em] text-subtle`,children:`Vendor`}),(0,G.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:g.map(t=>(0,G.jsx)(`button`,{type:`button`,onClick:()=>void x(`vendor:${t.id}`,()=>_(`task.setVendor`,{taskId:e.id,vendor:t.id})),disabled:o!==null,className:`border px-2 py-1 text-[11px] transition-colors disabled:opacity-40 ${k(e.vendor)===t.id?`border-primary bg-inset text-fg`:`border-line bg-surface text-muted hover:border-primary hover:text-fg`}`,children:t.label},t.id))})]}),(0,G.jsxs)(`div`,{className:`mt-4 grid grid-cols-2 gap-2`,children:[(0,G.jsx)($,{onClick:()=>void x(`pin`,()=>_(`task.pin`,{taskId:e.id,pinned:!e.pinned})),disabled:o!==null,children:e.pinned?`Unpin`:`Pin`}),(0,G.jsx)($,{onClick:()=>void x(`worktree`,()=>_(`task.ensureWorktree`,{taskId:e.id})),disabled:o!==null,children:`Ensure worktree`}),(0,G.jsx)($,{onClick:w,children:c?`Copied`:`Copy path`}),!e.archived&&(0,G.jsx)($,{onClick:()=>h({kind:`archive`}),disabled:o!==null,danger:!0,children:`Archive`})]}),e.kind!==`main`&&(0,G.jsxs)(`div`,{className:`mt-4 border-t border-line-subtle pt-3`,children:[(0,G.jsx)(`div`,{className:`mb-2 text-[10px] font-bold uppercase tracking-[0.12em] text-subtle`,children:`Danger zone`}),(0,G.jsx)($,{onClick:()=>h({kind:`delete`,force:!1}),disabled:o!==null,danger:!0,children:`Delete task + worktree`})]})]}),m?.kind===`archive`&&(0,G.jsx)(H,{title:`Archive task`,body:`Archive "${e.title||e.branch}"? Its Hosted PTY sessions will be stopped; the worktree stays on disk and the task can be restored from the Archived section.`,confirmLabel:`Archive`,danger:!0,busy:o===`archive`,onConfirm:T,onCancel:()=>h(null)}),m?.kind===`delete`&&(0,G.jsx)(H,{title:m.force?`Worktree has uncommitted changes`:`Delete task`,body:m.force?`"${e.title||e.branch}" has uncommitted or untracked changes in its worktree. Force-delete discards them permanently.`:`Delete "${e.title||e.branch}"? This removes the task, kills its engine session, and removes its worktree (branch history stays in git).`,confirmLabel:m.force?`Force delete`:`Delete`,danger:!0,busy:o===`delete`,onConfirm:()=>D(m.force),onCancel:()=>h(null)})]})}function Xe({drawer:e=!1,onClose:t}={}){let[r,a]=(0,W.useState)(`overview`),{selectedTaskId:o}=n(),{tasks:s}=g(),c=o?s.find(e=>e.id===o)??null:null;return(0,G.jsxs)(`aside`,{className:e?`flex h-full w-full flex-col bg-bg`:`flex w-80 shrink-0 flex-col border-l border-line bg-bg`,children:[(0,G.jsxs)(`div`,{className:`flex h-9 shrink-0 items-stretch border-b border-line bg-surface`,children:[[`overview`,`notes`,`changes`].map(e=>(0,G.jsx)(`button`,{type:`button`,onClick:()=>a(e),className:`px-3 text-[10px] font-bold uppercase tracking-[0.12em] ${r===e?`border-b-2 border-primary text-fg`:`text-subtle hover:text-muted`}`,children:e===`overview`?`Task`:e===`notes`?`Notes`:`Changes`},e)),e&&t&&(0,G.jsx)(`button`,{type:`button`,onClick:t,className:`ml-auto px-3 text-subtle hover:text-fg`,"aria-label":`Close tools`,children:(0,G.jsx)(j,{size:14,strokeWidth:2})})]}),(0,G.jsx)(`div`,{className:`min-h-0 flex-1`,children:r===`overview`?(0,G.jsx)(Ye,{task:c}):r===`notes`?(0,G.jsx)(Ge,{taskId:o,full:!0}):(0,G.jsx)(S,{worktreePath:c?.worktreePath??null,onOpenFile:e=>{o&&i(o,e)}})})]})}function Ze({onToggleTools:e,onShowHelp:t}){let{daemonConnected:r,streamConnected:i,tasks:a}=g(),{selectedTaskId:o}=n(),c=o?a.find(e=>e.id===o):null,l=R({daemonConnected:r,streamConnected:i});return(0,G.jsxs)(`header`,{"data-kobe-topbar":!0,className:`flex h-10 shrink-0 items-center gap-3 border-b border-line bg-surface px-3`,children:[(0,G.jsx)(V,{}),(0,G.jsxs)(`span`,{className:`font-mono text-[13px] font-bold text-primary`,children:[`[`,s,`]`]}),(0,G.jsx)(h,{}),c?(0,G.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,G.jsx)(`span`,{className:`max-w-56 truncate rounded bg-inset px-2 py-0.5 text-[11px] text-fg`,children:c.title||c.branch}),(0,G.jsx)(`span`,{className:`hidden max-w-40 truncate font-mono text-[11px] text-subtle md:inline`,children:c.branch})]}):(0,G.jsx)(`span`,{className:`rounded bg-inset px-2 py-0.5 text-[11px] text-muted`,children:`Workspace`}),(0,G.jsxs)(`div`,{className:`ml-auto flex items-center gap-3 text-[11px] text-subtle`,children:[(0,G.jsxs)(`span`,{className:`hidden items-center gap-1.5 sm:flex`,title:l.title,children:[(0,G.jsx)(`span`,{className:`h-1.5 w-1.5 rounded-full ${l.ok?`bg-kobe-green`:`bg-kobe-yellow`}`}),(0,G.jsx)(`span`,{children:l.label})]}),(0,G.jsx)(`button`,{type:`button`,onClick:t,className:`hidden items-center text-muted transition-colors hover:text-fg sm:flex`,"aria-label":`Keyboard shortcuts`,title:`Keyboard shortcuts (?)`,children:(0,G.jsx)(fe,{size:15,strokeWidth:1.8})}),(0,G.jsx)(`button`,{type:`button`,onClick:e,className:`flex items-center text-muted transition-colors hover:text-fg lg:hidden`,"aria-label":`Toggle task tools`,title:`Task tools`,children:(0,G.jsx)(me,{size:15,strokeWidth:1.8})})]})]})}function Qe(){let{tasks:e,update:t}=g(),{selectedTaskId:r}=n(),i=r?e.find(e=>e.id===r):null,a=e.filter(e=>!e.archived).length;return(0,G.jsxs)(`footer`,{className:`flex h-7 shrink-0 items-center gap-4 border-t border-line bg-surface px-3 text-[11px] text-subtle`,children:[(0,G.jsxs)(`span`,{children:[a,` task`,a===1?``:`s`]}),i&&(0,G.jsxs)(`span`,{className:`min-w-0 truncate text-muted`,children:[i.kind===`main`?`project`:`worktree`,` ·`,` `,x(i.worktreePath,54)]}),(0,G.jsx)(`span`,{className:`ml-auto`,children:t?.latest?`update ${t.latest} available`:`${l()} web`})]})}function $e(){let{settingsOpen:e}=O(),[t,n]=(0,W.useState)(!1),[r,i]=(0,W.useState)(!1);return(0,W.useEffect)(()=>{let e=e=>{e.key===`Escape`&&i(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[]),(0,G.jsxs)(`div`,{className:`flex h-screen flex-col overflow-hidden bg-bg text-fg`,children:[(0,G.jsx)(Ze,{onToggleTools:()=>i(e=>!e),onShowHelp:D}),(0,G.jsx)(m,{}),(0,G.jsxs)(`div`,{className:`flex min-h-0 flex-1`,children:[(0,G.jsx)(ke,{onOpenSettings:I,onNewTask:E,onAdopt:()=>n(!0)}),e?(0,G.jsx)(w,{onClose:L}):(0,G.jsx)(C,{}),(0,G.jsx)(`div`,{className:`hidden lg:flex`,children:(0,G.jsx)(Xe,{})}),r&&(0,G.jsx)(`div`,{className:`fixed inset-0 z-30 flex justify-end bg-black/50 lg:hidden`,onClick:()=>i(!1),onKeyDown:e=>{e.key===`Escape`&&i(!1)},role:`presentation`,children:(0,G.jsx)(`div`,{role:`dialog`,"aria-modal":`true`,"aria-label":`Task tools`,className:`h-full w-80 max-w-[85vw] border-l border-line bg-bg shadow-2xl`,onClick:e=>e.stopPropagation(),onKeyDown:()=>{},children:(0,G.jsx)(Xe,{drawer:!0,onClose:()=>i(!1)})})})]}),(0,G.jsx)(Qe,{}),t&&(0,G.jsx)(he,{onClose:()=>n(!1)})]})}export{$e as AppShell};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as e}from"./terminal-Nt-mXbb9.js";import{y as t}from"./tabs-C1KFppnz.js";import{m as n}from"./createLucideIcon-C8T7_EGK.js";import{t as r}from"./SlideOver-CFuCH6OP.js";import{f as i,i as a}from"./issues-Bq1lyZOv.js";import{n as o,t as s}from"./RichEditor-D2OJbR2A.js";var c=e(t(),1),l=n();function u({repoRoot:e,open:t,onClose:n,onCreated:u}){let[d,f]=(0,c.useState)(``),[p,m]=(0,c.useState)(``),[h,g]=(0,c.useState)(void 0),[_,v]=(0,c.useState)(void 0),[y,b]=(0,c.useState)(!1),[x,S]=(0,c.useState)(null),C=d.trim().length>0&&!y,w=t=>{if(!C)return;let r=d.trim();b(!0),S(null),a(e,p.trim()?{title:r,body:p}:{title:r}).then(async a=>{let o=a.issues.find(e=>e.title===r)??a.issues[0];t&&o&&await i(e,o,h,_),o&&u(o,t),f(``),m(``),n()}).catch(e=>{S(e instanceof Error?e.message:`failed to create issue`)}).finally(()=>b(!1))};return(0,l.jsx)(r,{open:t,onClose:n,title:`New story`,footer:(0,l.jsxs)(`div`,{className:`flex items-center justify-end gap-2 px-3 py-2.5`,children:[(0,l.jsx)(`button`,{type:`button`,disabled:!C,onClick:()=>w(!1),className:`border border-line bg-bg px-3 py-1 text-[11px] text-muted transition-colors hover:border-primary hover:text-fg disabled:cursor-not-allowed disabled:opacity-40`,children:y?`Saving…`:`Save`}),(0,l.jsx)(`button`,{type:`button`,disabled:!C,onClick:()=>w(!0),className:`border border-primary bg-inset px-3 py-1 text-[11px] text-fg transition-colors hover:bg-primary/10 disabled:cursor-not-allowed disabled:opacity-40`,children:y?`Starting…`:`Start session`})]}),children:(0,l.jsxs)(`div`,{className:`flex flex-col gap-3 p-3`,children:[(0,l.jsxs)(`div`,{children:[(0,l.jsx)(`div`,{className:`mb-1 text-[10px] font-bold uppercase tracking-[0.12em] text-subtle`,children:`Title`}),(0,l.jsx)(`input`,{value:d,onChange:e=>f(e.target.value),placeholder:`What should the session deliver?`,autoFocus:!0,className:`w-full border border-line bg-bg px-2 py-1.5 text-[12px] text-fg placeholder:text-subtle focus:border-line-active focus:outline-none`})]}),(0,l.jsxs)(`div`,{children:[(0,l.jsxs)(`div`,{className:`mb-1 flex items-center gap-2`,children:[(0,l.jsx)(`span`,{className:`text-[10px] font-bold uppercase tracking-[0.12em] text-subtle`,children:`Acceptance`}),(0,l.jsx)(`span`,{className:`text-[10px] text-subtle`,children:`paste or drop images`})]}),(0,l.jsx)(s,{value:p,onChange:m,repoRoot:e,placeholder:`context, constraints, acceptance criteria — paste a screenshot to attach it`})]}),(0,l.jsx)(o,{vendor:h,effort:_,disabled:y,onChange:e=>{g(e.vendor),v(e.effort)}}),x&&(0,l.jsx)(`p`,{className:`text-[11px] text-kobe-red`,role:`alert`,children:x})]})})}export{u as IssueIntakePanel};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as e}from"./terminal-Nt-mXbb9.js";import{y as t}from"./tabs-C1KFppnz.js";import{m as n,t as r}from"./createLucideIcon-C8T7_EGK.js";import{t as i}from"./external-link-D4N6NrPI.js";import{t as a}from"./SlideOver-CFuCH6OP.js";import{n as o,r as s}from"./issues-Bq1lyZOv.js";import{n as c,t as l}from"./RichEditor-D2OJbR2A.js";var u=r(`git-merge`,[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M6 21V9a9 9 0 0 0 9 9`,key:`7kw0sc`}]]),d=r(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),f=e(t(),1),p=n(),m=[{id:`task`,label:`New worktree`,hint:`isolated branch, tab in its own task workspace`},{id:`projectWorktree`,label:`Worktree · tab in project`,hint:`isolated branch, chat tab lives in the project workspace`},{id:`project`,label:`Project checkout`,hint:`no worktree — the engine works directly on the checkout`}];function h({issue:e,repoRoot:t,busy:n,starting:r,onClose:h,onSave:g,onStart:_,onOpenSession:v,onPromptMerge:y}){let[b,x]=(0,f.useState)(e.title),[S,C]=(0,f.useState)(e.body),[w,T]=(0,f.useState)(void 0),[E,D]=(0,f.useState)(void 0),[O,k]=(0,f.useState)(`task`),[A,j]=(0,f.useState)(null),M=!!e.taskId,N=s(e.status)&&!M,P=b!==e.title||S!==e.body,F=P&&b.trim().length>0&&!n,I=o[e.status],L=()=>{F&&(j(null),g({title:b,body:S}).catch(e=>{j(e instanceof Error?e.message:`failed to save issue`)}))},R=(0,p.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,p.jsxs)(`span`,{className:`shrink-0 font-mono text-[11px] text-subtle`,children:[`#`,e.id]}),(0,p.jsx)(`span`,{className:`min-w-0 truncate`,children:e.title})]});return(0,p.jsx)(a,{open:!0,wide:!0,onClose:h,title:R,children:(0,p.jsxs)(`div`,{className:`flex h-full min-h-0`,children:[(0,p.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-3 border-r border-line p-3`,children:[(0,p.jsxs)(`div`,{children:[(0,p.jsx)(`div`,{className:`mb-1 text-[10px] font-bold uppercase tracking-[0.12em] text-subtle`,children:`Title`}),(0,p.jsx)(`input`,{value:b,onChange:e=>x(e.target.value),placeholder:`Issue title`,className:`w-full border border-line bg-bg px-2 py-1.5 text-[12px] text-fg placeholder:text-subtle focus:border-line-active focus:outline-none`})]}),(0,p.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[(0,p.jsxs)(`div`,{className:`mb-1 flex items-center gap-2`,children:[(0,p.jsx)(`span`,{className:`text-[10px] font-bold uppercase tracking-[0.12em] text-subtle`,children:`Acceptance`}),(0,p.jsx)(`span`,{className:`text-[10px] text-subtle`,children:`paste or drop images`})]}),(0,p.jsx)(l,{value:S,onChange:C,repoRoot:t,placeholder:`context, constraints, acceptance criteria — paste a screenshot to attach it`},e.id)]}),A&&(0,p.jsx)(`p`,{className:`text-[11px] text-kobe-red`,role:`alert`,children:A}),(0,p.jsx)(`div`,{className:`flex justify-end`,children:(0,p.jsx)(`button`,{type:`button`,disabled:!F,onClick:L,title:P?`Save title and body`:`No unsaved changes`,className:`border border-primary bg-inset px-3 py-1 text-[11px] text-fg transition-colors hover:bg-primary/10 disabled:cursor-not-allowed disabled:opacity-40`,children:n?`Saving…`:`Save`})})]}),(0,p.jsxs)(`div`,{className:`flex w-72 shrink-0 flex-col gap-4 p-3`,children:[(0,p.jsxs)(`section`,{className:`flex flex-col gap-1.5`,children:[(0,p.jsx)(`h3`,{className:`text-[10px] font-bold uppercase tracking-[0.12em] text-subtle`,children:`Detail`}),(0,p.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,p.jsx)(`span`,{className:`text-[10px] font-bold uppercase tracking-[0.12em] ${I.accent}`,children:I.title}),(0,p.jsxs)(`span`,{className:`font-mono text-[10px] text-subtle`,children:[`created `,e.created]})]}),M&&e.taskId&&(0,p.jsxs)(`span`,{className:`flex items-center gap-1.5 font-mono text-[10px] text-kobe-orange`,title:`Linked to task ${e.taskId}`,children:[(0,p.jsx)(`span`,{className:`inline-block h-1.5 w-1.5 rounded-full bg-kobe-orange`}),`running`]})]}),(0,p.jsxs)(`section`,{className:`flex flex-col gap-1.5 border-t border-line pt-3`,children:[(0,p.jsx)(`h3`,{className:`text-[10px] font-bold uppercase tracking-[0.12em] text-subtle`,children:`Engine`}),(0,p.jsx)(c,{vendor:w,effort:E,disabled:!N,onChange:e=>{T(e.vendor),D(e.effort)}})]}),(0,p.jsxs)(`section`,{className:`flex flex-col gap-1.5 border-t border-line pt-3`,children:[(0,p.jsx)(`h3`,{className:`text-[10px] font-bold uppercase tracking-[0.12em] text-subtle`,children:`Workspace`}),(0,p.jsx)(`div`,{className:`flex flex-col gap-1`,children:m.map(e=>(0,p.jsxs)(`button`,{type:`button`,disabled:!N,onClick:()=>k(e.id),title:e.hint,className:`border px-2 py-1 text-left text-[11px] transition-colors disabled:cursor-not-allowed disabled:opacity-40 ${O===e.id?`border-primary bg-inset text-fg`:`border-line bg-bg text-muted hover:border-primary hover:text-fg`}`,children:[(0,p.jsx)(`span`,{className:`block`,children:e.label}),(0,p.jsx)(`span`,{className:`block text-[10px] text-subtle`,children:e.hint})]},e.id))})]}),(0,p.jsx)(`div`,{className:`mt-auto flex flex-col gap-2 border-t border-line pt-3`,children:M?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(`button`,{type:`button`,onClick:()=>v?.(),disabled:!v,title:`Open this story's running session in the workspace`,className:`flex h-8 items-center justify-center gap-1.5 border border-primary bg-inset px-3 text-[11px] text-fg transition-colors hover:bg-primary/10 disabled:cursor-not-allowed disabled:opacity-40`,children:[(0,p.jsx)(i,{size:12,strokeWidth:1.8}),`Open session`]}),(0,p.jsxs)(`button`,{type:`button`,onClick:()=>y?.(),disabled:!y||r,title:`Insert the finish and merge prompt into this story's task`,className:`flex h-8 items-center justify-center gap-1.5 border border-line bg-bg px-3 text-[11px] text-muted transition-colors hover:border-primary hover:text-fg disabled:cursor-not-allowed disabled:opacity-40`,children:[(0,p.jsx)(u,{size:12,strokeWidth:1.8}),`Prompt merge`]}),(0,p.jsx)(`span`,{className:`text-center text-[10px] text-subtle`,children:`Started`})]}):N?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(`button`,{type:`button`,disabled:r,onClick:()=>_({vendor:w,effort:E,placement:O,watch:!1}),title:`Spawn the session for this story and stay on the board`,className:`flex h-8 items-center justify-center gap-1.5 border border-line bg-bg px-3 text-[11px] text-muted transition-colors hover:border-primary hover:text-fg disabled:cursor-not-allowed disabled:opacity-40`,children:[(0,p.jsx)(d,{size:12,strokeWidth:1.8}),r?`Starting…`:`Start in background`]}),(0,p.jsxs)(`button`,{type:`button`,disabled:r,onClick:()=>_({vendor:w,effort:E,placement:O,watch:!0}),title:`Spawn the session and open its workspace`,className:`flex h-8 items-center justify-center gap-1.5 border border-primary bg-inset px-3 text-[11px] text-fg transition-colors hover:bg-primary/10 disabled:cursor-not-allowed disabled:opacity-40`,children:[(0,p.jsx)(d,{size:12,strokeWidth:1.8}),r?`Starting…`:`Start & watch`]})]}):(0,p.jsx)(`p`,{className:`text-center text-[10px] text-subtle`,children:`Done stories have nothing left to start.`})})]})]})})}export{h as IssuePeek};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as e}from"./terminal-Nt-mXbb9.js";import{y as t}from"./tabs-C1KFppnz.js";import{m as n}from"./createLucideIcon-C8T7_EGK.js";import{g as r,p as i}from"./index-wTeVn7Ca.js";var a=e(t(),1),o=n();function s({open:e,onClose:t,title:n,children:s,footer:c,wide:l=!1}){let u=(0,a.useRef)(null),[d,f]=(0,a.useState)(!1);return i(u,e),(0,a.useEffect)(()=>{if(!e){f(!1);return}let t=requestAnimationFrame(()=>f(!0));return()=>cancelAnimationFrame(t)},[e]),(0,a.useEffect)(()=>{e&&u.current?.focus()},[e]),(0,a.useEffect)(()=>{if(!e)return;let n=e=>{if(e.key!==`Escape`)return;let n=e.target;n&&(n.tagName===`TEXTAREA`||n.tagName===`INPUT`)||(e.preventDefault(),t())};return window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[e,t]),e?(0,o.jsxs)(`div`,{className:`fixed inset-0 z-40 flex justify-end`,children:[(0,o.jsx)(`button`,{type:`button`,"aria-label":`Close`,onClick:t,className:`absolute inset-0 cursor-default bg-black/40`}),(0,o.jsxs)(`div`,{ref:u,role:`dialog`,"aria-modal":`true`,"aria-label":typeof n==`string`?n:void 0,tabIndex:-1,className:`relative flex h-full flex-col border-l border-line bg-bg shadow-2xl transition-transform duration-200 ease-out motion-reduce:transition-none focus:outline-none ${l?`w-[920px] max-w-[96vw]`:`w-[640px] max-w-[92vw]`} ${d?`translate-x-0`:`translate-x-full`}`,children:[n!==void 0&&(0,o.jsxs)(`header`,{className:`flex h-10 shrink-0 items-center gap-2 border-b border-line bg-surface px-3`,children:[(0,o.jsx)(`div`,{className:`min-w-0 flex-1 truncate text-[13px] text-fg`,children:n}),(0,o.jsx)(`button`,{type:`button`,onClick:t,className:`flex shrink-0 items-center text-muted transition-colors hover:text-fg`,"aria-label":`Close`,title:`Close (Esc)`,children:(0,o.jsx)(r,{size:15,strokeWidth:1.8})})]}),(0,o.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto`,children:s}),c!==void 0&&(0,o.jsx)(`footer`,{className:`shrink-0 border-t border-line bg-surface`,children:c})]})]}):null}export{s as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Board as e}from"./Board-C2ZC0E_s.js";var t=e;export{t as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{IssuesPage as e}from"./IssuesPage-CcK7xKWZ.js";var t=e;export{t as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{AppShell as e}from"./AppShell-BfIm07jW.js";var t=e;export{t as component};
|
|
File without changes
|