@sma1lboy/rove 0.8.89

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.
Files changed (82) hide show
  1. package/README.md +60 -0
  2. package/dist/cli/index.js +959 -0
  3. package/dist/cli/kobe.js +959 -0
  4. package/dist/cli/pty-host-node.mjs +1015 -0
  5. package/dist/cli/rove.js +959 -0
  6. package/dist/pulse-n3cq1btw.wav +0 -0
  7. package/dist/skills/kobe/SKILL.md +317 -0
  8. package/dist/web-ui/assets/AppShell-BTjvuY-t.js +5 -0
  9. package/dist/web-ui/assets/AppShell-HiyATJse.css +1 -0
  10. package/dist/web-ui/assets/Board-DPB4h6mJ.js +1 -0
  11. package/dist/web-ui/assets/BoardPeek-69VJptGV.js +2 -0
  12. package/dist/web-ui/assets/ChatTerminal-BrP-ENHg.css +1 -0
  13. package/dist/web-ui/assets/ChatTerminal-MCI1aBbT.js +144 -0
  14. package/dist/web-ui/assets/ChatTranscript-DLthbnmB.js +1 -0
  15. package/dist/web-ui/assets/ConfirmDialog-CDPOtXww.js +1 -0
  16. package/dist/web-ui/assets/IssueIntakePanel-XYsIcIhp.js +1 -0
  17. package/dist/web-ui/assets/IssuePeek-CP_rAkqO.js +1 -0
  18. package/dist/web-ui/assets/IssuesPage-BR5mpuo-.js +1 -0
  19. package/dist/web-ui/assets/RichEditor-B4sEOPyN.css +1 -0
  20. package/dist/web-ui/assets/RichEditor-DJFl5TvH.js +173 -0
  21. package/dist/web-ui/assets/SettingsPage-CLRhr-sg.js +2 -0
  22. package/dist/web-ui/assets/SlideOver-Dxtk6Gn2.js +1 -0
  23. package/dist/web-ui/assets/ViewToggle-BdPCMBWa.js +1 -0
  24. package/dist/web-ui/assets/WorkspaceTabs-CMKlvN_Y.js +3 -0
  25. package/dist/web-ui/assets/WorkspaceTabs-DLzL-Tad.css +1 -0
  26. package/dist/web-ui/assets/active-task-GeQZqbJK.js +1 -0
  27. package/dist/web-ui/assets/activity-BjTd1D8q.js +1 -0
  28. package/dist/web-ui/assets/arrow-left-DNM2CHhS.js +1 -0
  29. package/dist/web-ui/assets/board-CGiK0u0M.js +1 -0
  30. package/dist/web-ui/assets/chips-Da37C4KZ.js +1 -0
  31. package/dist/web-ui/assets/columns-3-CQGAnX-4.js +1 -0
  32. package/dist/web-ui/assets/createLucideIcon-CM5xLVj1.js +1 -0
  33. package/dist/web-ui/assets/desktop-BThq9eSR.js +2 -0
  34. package/dist/web-ui/assets/engines-Cnxy1hW9.js +1 -0
  35. package/dist/web-ui/assets/external-link-BwT2u1hD.js +1 -0
  36. package/dist/web-ui/assets/external-store-DJlWpyYC.js +1 -0
  37. package/dist/web-ui/assets/harness-q9gT7Jic.js +1 -0
  38. package/dist/web-ui/assets/index-CgL6oDIY.js +10 -0
  39. package/dist/web-ui/assets/index-MuA3NLRu.css +1 -0
  40. package/dist/web-ui/assets/issues-1SCRkcB0.js +4 -0
  41. package/dist/web-ui/assets/issues-BKkua1D9.js +1 -0
  42. package/dist/web-ui/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
  43. package/dist/web-ui/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
  44. package/dist/web-ui/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
  45. package/dist/web-ui/assets/jetbrains-mono-latin-500-normal-CJOVTJB7.woff +0 -0
  46. package/dist/web-ui/assets/jetbrains-mono-latin-600-normal-BfsvjouI.woff +0 -0
  47. package/dist/web-ui/assets/jetbrains-mono-latin-600-normal-C8RAYTDA.woff2 +0 -0
  48. package/dist/web-ui/assets/jetbrains-mono-latin-700-normal-BYuf6tUa.woff2 +0 -0
  49. package/dist/web-ui/assets/jetbrains-mono-latin-700-normal-D3wTyLJW.woff +0 -0
  50. package/dist/web-ui/assets/lazy-issue-panels-0Rhl2uhh.js +6 -0
  51. package/dist/web-ui/assets/plus-BbX5qXba.js +1 -0
  52. package/dist/web-ui/assets/react-dom-DCnDkJvp.js +1 -0
  53. package/dist/web-ui/assets/rotate-cw-D-UUtiD0.js +1 -0
  54. package/dist/web-ui/assets/routes-SBb-uSy8.js +1 -0
  55. package/dist/web-ui/assets/search-BxbFZoup.js +1 -0
  56. package/dist/web-ui/assets/settings-tPcmEHCP.js +1 -0
  57. package/dist/web-ui/assets/store-uT65Mask.js +2 -0
  58. package/dist/web-ui/assets/tabs-Dx-TnbvG.js +1 -0
  59. package/dist/web-ui/assets/task._taskId-BlZ0vG_1.js +2 -0
  60. package/dist/web-ui/assets/task._taskId-BmObFoVZ.js +1 -0
  61. package/dist/web-ui/assets/terminal-qBEkzc-m.js +1 -0
  62. package/dist/web-ui/assets/text-match-DW3sD-Rt.js +1 -0
  63. package/dist/web-ui/assets/time-kviT26Tm.js +1 -0
  64. package/dist/web-ui/assets/toast-BXjAT0ix.js +1 -0
  65. package/dist/web-ui/assets/triage-7QLsCY8d.js +1 -0
  66. package/dist/web-ui/assets/use-focus-trap-DNMrlNR0.js +1 -0
  67. package/dist/web-ui/assets/vendor-CdtpTJrf.js +1 -0
  68. package/dist/web-ui/assets/web-transport-D0bugxxv.js +1 -0
  69. package/dist/web-ui/assets/with-selector-B5R3h-Ow.js +1 -0
  70. package/dist/web-ui/assets/worktrees-C_XKA7jM.js +1 -0
  71. package/dist/web-ui/assets/x-7cB9X7Hi.js +1 -0
  72. package/dist/web-ui/favicon.ico +0 -0
  73. package/dist/web-ui/index.html +35 -0
  74. package/dist/web-ui/logo192.png +0 -0
  75. package/dist/web-ui/logo512.png +0 -0
  76. package/dist/web-ui/manifest.json +25 -0
  77. package/dist/web-ui/origin-policy.mjs +41 -0
  78. package/dist/web-ui/pty-scrollback.mjs +51 -0
  79. package/dist/web-ui/pty-server.mjs +212 -0
  80. package/dist/web-ui/pty-session-lifecycle.mjs +282 -0
  81. package/dist/web-ui/robots.txt +3 -0
  82. package/package.json +94 -0
@@ -0,0 +1,2 @@
1
+ import{c as e,l as t,o as n}from"./terminal-qBEkzc-m.js";import{d as r,y as i}from"./tabs-Dx-TnbvG.js";import{a,c as o,d as s,i as c,r as l,t as u,u as d}from"./createLucideIcon-CM5xLVj1.js";import{a as f,n as p,r as m}from"./toast-BXjAT0ix.js";import{n as h,r as g}from"./settings-tPcmEHCP.js";import{a as _}from"./vendor-CdtpTJrf.js";var v=u(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),y=t(i(),1);async function b(){let e=await n.getOr(`/api/quick-prompts`,{},{label:`load quick prompts`});return{review:typeof e.review==`string`?e.review:null,pr:typeof e.pr==`string`?e.pr:null}}async function x(e){await n.put(`/api/quick-prompts`,e,{label:`save quick prompts`})}function S(e){return _(e)===`claude`?`/review`:`Review the current changes in this worktree critically.`}var C=[`Open a pull request for this task's branch:`,`1. Make sure the work is committed, then push the branch to origin.`,"2. Create the PR with `gh pr create` — write a clear title and a body that summarizes what changed and why, following this repo's conventions."].join(`
2
+ `),w=s();function T({title:e,children:t}){return(0,w.jsxs)(`section`,{children:[(0,w.jsx)(`h2`,{className:`text-[11px] font-bold uppercase tracking-[0.12em] text-subtle`,children:e}),(0,w.jsx)(`div`,{className:`mt-3 space-y-3 text-[12px]`,children:t})]})}function E({label:e,detail:t,enabled:n,onToggle:r,disabled:i}){return(0,w.jsxs)(`div`,{className:`flex items-start justify-between gap-4 border border-line bg-bg p-3`,children:[(0,w.jsxs)(`div`,{className:`min-w-0`,children:[(0,w.jsx)(`div`,{className:`text-[12px] font-bold text-fg`,children:e}),t?(0,w.jsx)(`div`,{className:`mt-1 text-[11px] leading-relaxed text-subtle`,children:t}):null]}),(0,w.jsx)(`button`,{type:`button`,onClick:r,disabled:i,className:`shrink-0 border px-2 py-0.5 text-[10px] transition-colors disabled:cursor-not-allowed disabled:opacity-40 ${n?`border-primary bg-inset text-fg`:`border-line bg-surface text-muted hover:border-primary hover:text-fg`}`,children:n?`On`:`Off`})]})}function D(){let[e,t]=(0,y.useState)(null),[n,r]=(0,y.useState)(!0),[i,a]=(0,y.useState)(!1),o=(0,y.useRef)(0),s=(0,y.useCallback)(async()=>{let e=++o.current;r(!0),a(!1);try{let n=await h();e===o.current&&t(n)}catch(t){e===o.current&&a(!0),m(`load settings`,t)}finally{e===o.current&&r(!1)}},[]);return(0,y.useEffect)(()=>{s()},[s]),{settings:e,loading:n,error:i,reload:s,patch:async e=>{let n=await g(e);return t(n),n}}}function O({palette:e}){return(0,w.jsx)(`span`,{className:`flex shrink-0 overflow-hidden rounded border border-line`,children:[e.bg,e.primary,e[`kobe-blue`],e[`kobe-green`]].filter(Boolean).map((e,t)=>(0,w.jsx)(`span`,{className:`h-5 w-3`,style:{backgroundColor:e}},t))})}function k(){let{names:e,palettes:t,active:n,overridden:r}=a();return(0,w.jsxs)(`div`,{className:`border border-line bg-surface p-4`,children:[(0,w.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,w.jsx)(`div`,{className:`text-[11px] font-bold uppercase tracking-[0.12em] text-subtle`,children:`Appearance`}),r?(0,w.jsx)(`button`,{type:`button`,onClick:l,className:`border border-line bg-bg px-2 py-0.5 text-[10px] text-muted transition-colors hover:border-primary hover:text-fg`,title:`Clear the web-local theme and follow the TUI again`,children:`Follow TUI`}):(0,w.jsx)(`span`,{className:`font-mono text-[10px] text-subtle`,children:`following TUI`})]}),e.length===0?(0,w.jsx)(`p`,{className:`mt-4 text-[12px] text-subtle`,children:`Loading themes…`}):(0,w.jsx)(`div`,{className:`mt-4 grid grid-cols-1 gap-1.5 sm:grid-cols-2`,children:e.map(e=>{let r=e===n;return(0,w.jsxs)(`button`,{type:`button`,onClick:()=>c(e),className:`flex items-center gap-2 border px-2 py-1.5 text-left transition-colors ${r?`border-primary bg-inset`:`border-line bg-bg hover:border-primary`}`,children:[(0,w.jsx)(O,{palette:t[e]??{}}),(0,w.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[12px] ${r?`text-fg`:`text-muted`}`,children:e}),r&&(0,w.jsx)(v,{size:13,strokeWidth:2.5,className:`shrink-0 text-primary`})]},e)})})]})}function A(){return(0,w.jsx)(`div`,{className:`space-y-6`,children:(0,w.jsxs)(T,{title:`Dashboard theme`,children:[(0,w.jsx)(`p`,{className:`text-[11px] leading-relaxed text-subtle`,children:`Pick a theme for this browser, or follow the TUI's theme. This is a browser-local override — it never changes the TUI.`}),(0,w.jsx)(k,{})]})})}function j({engine:e,onSave:t,onDefault:n,onRemove:r}){let[i,a]=(0,y.useState)(e.command),[o,s]=(0,y.useState)(e.label),c=/\s--[A-Za-z0-9][\w-]*/.test(o)&&!/\s--[A-Za-z0-9][\w-]*/.test(i);return(0,y.useEffect)(()=>{a(e.command),s(e.label)},[e.command,e.label]),(0,w.jsxs)(`div`,{className:`border border-line bg-bg p-3`,children:[(0,w.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,w.jsxs)(`div`,{className:`min-w-0`,children:[(0,w.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,w.jsx)(`span`,{className:`font-bold text-fg`,children:e.label}),e.isDefault?(0,w.jsx)(`span`,{className:`font-mono text-[10px] text-primary`,children:`default`}):null,e.isCustom?(0,w.jsx)(`span`,{className:`font-mono text-[10px] text-subtle`,children:`custom`}):null]}),(0,w.jsx)(`div`,{className:`font-mono text-[10px] text-subtle`,children:e.id})]}),(0,w.jsx)(`button`,{type:`button`,onClick:()=>n(e.id),className:`shrink-0 border border-line bg-surface px-2 py-1 text-[11px] text-muted transition-colors hover:border-primary hover:text-fg`,children:`Make default`})]}),(0,w.jsxs)(`label`,{className:`mt-3 block`,children:[(0,w.jsx)(`span`,{className:`text-[11px] text-muted`,children:`Display name (label only)`}),(0,w.jsx)(`input`,{value:o,onChange:e=>s(e.target.value),className:`mt-1 w-full border border-line bg-surface px-2 py-1 text-fg focus:border-line-active focus:outline-none`})]}),(0,w.jsxs)(`label`,{className:`mt-2 block`,children:[(0,w.jsx)(`span`,{className:`text-[11px] text-muted`,children:`Launch command (argv that Rove runs)`}),(0,w.jsx)(`input`,{value:i,onChange:e=>a(e.target.value),className:`mt-1 w-full border border-line bg-surface px-2 py-1 font-mono text-fg focus:border-line-active focus:outline-none`})]}),c?(0,w.jsx)(`div`,{className:`mt-2 border border-kobe-yellow/40 bg-kobe-yellow/10 px-2 py-1 text-[11px] leading-relaxed text-kobe-yellow`,children:`This looks like a flag in the display name. Put permission/model flags in Launch command; the label is never executed.`}):null,(0,w.jsxs)(`div`,{className:`mt-3 flex items-center gap-2`,children:[(0,w.jsx)(`button`,{type:`button`,onClick:()=>t(e.id,i,o),className:`border border-primary bg-inset px-2 py-1 text-[11px] text-fg`,children:`Save`}),e.isCustom?(0,w.jsx)(`button`,{type:`button`,onClick:()=>r(e.id),className:`border border-kobe-red/40 bg-kobe-red/10 px-2 py-1 text-[11px] text-kobe-red`,children:`Remove`}):null]})]})}function M({settings:e,patch:t}){let[n,r]=(0,y.useState)(``),[i,a]=(0,y.useState)(``),[o,s]=(0,y.useState)(``),c=(e,n,r)=>void t({engineUpdates:[{id:e,command:n,label:r}]}).then(()=>p(`success`,`engine saved`));return(0,w.jsxs)(`div`,{className:`space-y-6`,children:[(0,w.jsxs)(T,{title:`Launch commands`,children:[(0,w.jsx)(`p`,{className:`text-[11px] leading-relaxed text-subtle`,children:`Same shared engine settings as the TUI. Built-ins can be renamed or pointed at a different command. Permission/model flags must live in Launch command, not Display name. Custom engines are available in new task and tab pickers.`}),(0,w.jsx)(`div`,{className:`space-y-2`,children:e.engines.map(e=>(0,w.jsx)(j,{engine:e,onSave:c,onDefault:e=>void t({defaultEngine:e}).then(()=>p(`success`,`default engine saved`)),onRemove:e=>void t({removeEngine:e}).then(()=>p(`success`,`engine removed`))},e.id))})]}),(0,w.jsxs)(T,{title:`Add engine`,children:[(0,w.jsxs)(`div`,{className:`grid gap-2 md:grid-cols-3`,children:[(0,w.jsx)(`input`,{value:n,onChange:e=>r(e.target.value),placeholder:`id, e.g. aider`,className:`border border-line bg-bg px-2 py-1 text-fg placeholder:text-subtle focus:border-line-active focus:outline-none`}),(0,w.jsx)(`input`,{value:i,onChange:e=>a(e.target.value),placeholder:`command`,className:`border border-line bg-bg px-2 py-1 font-mono text-fg placeholder:text-subtle focus:border-line-active focus:outline-none`}),(0,w.jsx)(`input`,{value:o,onChange:e=>s(e.target.value),placeholder:`display name`,className:`border border-line bg-bg px-2 py-1 text-fg placeholder:text-subtle focus:border-line-active focus:outline-none`})]}),(0,w.jsx)(`button`,{type:`button`,onClick:()=>void t({addEngine:{id:n,command:i,label:o}}).then(()=>{r(``),a(``),s(``),p(`success`,`engine added`)}).catch(e=>m(`add engine`,e)),className:`border border-primary bg-inset px-2 py-1 text-[11px] text-fg`,children:`Add engine`})]})]})}function N(){let[e,t]=(0,y.useState)(``),[n,r]=(0,y.useState)(``),[i,a]=(0,y.useState)(!1);return(0,y.useEffect)(()=>{let e=!1;return b().then(n=>{e||(t(n.review??``),r(n.pr??``),a(!0))}).catch(t=>{e||m(`load quick-action templates`,t)}),()=>{e=!0}},[]),(0,w.jsxs)(T,{title:`Board quick actions`,children:[(0,w.jsxs)(`label`,{className:`block`,children:[(0,w.jsx)(`span`,{className:`text-muted`,children:`Review template`}),(0,w.jsx)(`textarea`,{value:e,onChange:e=>t(e.target.value),placeholder:`default: ${S(`claude`)}`,rows:3,disabled:!i,className:`mt-1 w-full resize-y border border-line bg-bg p-2 font-mono text-[12px] text-fg placeholder:text-subtle focus:border-line-active focus:outline-none`})]}),(0,w.jsxs)(`label`,{className:`block`,children:[(0,w.jsx)(`span`,{className:`text-muted`,children:`Open-PR template`}),(0,w.jsx)(`textarea`,{value:n,onChange:e=>r(e.target.value),placeholder:`default:\n${C}`,rows:5,disabled:!i,className:`mt-1 w-full resize-y border border-line bg-bg p-2 font-mono text-[12px] text-fg placeholder:text-subtle focus:border-line-active focus:outline-none`})]}),(0,w.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,w.jsx)(`span`,{className:`text-[11px] text-subtle`,children:`Empty = built-in default. Rove appends its status/URL guardrails at send time.`}),(0,w.jsx)(`button`,{type:`button`,onClick:()=>void x({review:e,pr:n}).then(()=>p(`success`,`quick-action templates saved`)).catch(e=>m(`save templates`,e)),disabled:!i,className:`shrink-0 border border-line bg-bg px-2 py-1 text-[11px] text-muted transition-colors hover:border-primary hover:text-fg`,children:`Save`})]})]})}function P({settings:e,patch:t}){let[n,i]=(0,y.useState)(!1),a=f();return(0,w.jsxs)(`div`,{className:`space-y-6`,children:[(0,w.jsxs)(T,{title:`Experimental gates`,children:[(0,w.jsx)(E,{label:`Remote projects`,detail:`Enables SSH-backed remote project setup in the CLI.`,enabled:e.remoteProjects,onToggle:()=>void t({remoteProjects:!e.remoteProjects})}),(0,w.jsx)(E,{label:`Archived history preview`,detail:`Beta: click an archived task to preview its read-only engine history, even after its worktree is gone.`,enabled:e.archivedHistoryPreview,onToggle:()=>void t({archivedHistoryPreview:!e.archivedHistoryPreview})}),(0,w.jsx)(E,{label:`Auto status flow`,detail:`Moves backlog tasks to in progress on turn start and injects the self-report protocol.`,enabled:e.autoStatus,onToggle:()=>void t({autoStatus:!e.autoStatus})}),(0,w.jsx)(E,{label:`Dispatcher`,detail:`Enables the field-notes dispatcher protocol for repo main sessions.`,enabled:e.dispatcher,onToggle:()=>void t({dispatcher:!e.dispatcher})})]}),(0,w.jsxs)(T,{title:`Browser workspace`,children:[(0,w.jsx)(`p`,{className:`text-[11px] leading-relaxed text-subtle`,children:`Reset the per-task tab layout (open tabs, splits, selection). Pure browser state: tasks, worktrees, notes, and engines are untouched.`}),(0,w.jsx)(`button`,{type:`button`,onClick:()=>{if(!n){i(!0);return}r(),a({to:`/`}),i(!1)},onBlur:()=>i(!1),className:`border px-3 py-1.5 text-[11px] transition-colors ${n?`border-kobe-red/50 bg-kobe-red/10 text-kobe-red`:`border-line bg-bg text-muted hover:border-primary hover:text-fg`}`,children:n?`Click again to reset layout`:`Reset layout`})]})]})}function F(){let{supported:e,permission:t,enabled:n}=d();return(0,w.jsx)(`div`,{className:`space-y-6`,children:(0,w.jsxs)(T,{title:`Notifications`,children:[e?(0,w.jsx)(E,{label:`Desktop notifications`,detail:`Get pinged when a task needs input or errors while this browser tab is in the background.`,enabled:n,onToggle:()=>void o(!n),disabled:t===`denied`&&!n}):(0,w.jsx)(`p`,{className:`text-[11px] leading-relaxed text-subtle`,children:`This browser does not support desktop notifications.`}),t===`denied`&&!n?(0,w.jsx)(`p`,{className:`text-[11px] leading-relaxed text-kobe-yellow`,children:`Notifications are blocked for this site. Allow them in your browser's site settings to turn this on.`}):null]})})}var I=e({SettingsPage:()=>R}),L=[[`general`,`General`],[`engines`,`Engines`],[`board`,`Board`],[`dev`,`Dev`],[`notifications`,`Notifications`]];function R({onClose:e}){let[t,n]=(0,y.useState)(`general`),{settings:r,loading:i,error:a,reload:o,patch:s}=D(),c=(0,y.useMemo)(()=>L.find(([e])=>e===t)?.[1]??`Settings`,[t]);return(0,w.jsxs)(`section`,{"data-settings-open":!0,className:`flex min-w-0 flex-1 flex-col bg-bg`,children:[(0,w.jsxs)(`div`,{className:`flex h-9 shrink-0 items-center justify-between border-b border-line bg-surface px-3`,children:[(0,w.jsx)(`span`,{className:`text-[10px] font-bold uppercase tracking-[0.12em] text-fg`,children:`Settings`}),(0,w.jsx)(`button`,{type:`button`,onClick:e,className:`border border-line bg-bg px-2 py-1 text-[11px] text-muted transition-colors hover:border-primary hover:text-fg`,children:`Close`})]}),(0,w.jsxs)(`div`,{className:`grid min-h-0 flex-1 grid-cols-[180px_minmax(0,1fr)] overflow-hidden`,children:[(0,w.jsx)(`nav`,{className:`min-h-0 overflow-auto border-r border-line bg-surface/60 p-2`,children:L.map(([e,r])=>(0,w.jsx)(`button`,{type:`button`,onClick:()=>n(e),className:`mb-1 block w-full border px-2 py-2 text-left text-[12px] transition-colors ${t===e?`border-primary bg-inset text-fg`:`border-transparent text-muted hover:border-line hover:bg-bg hover:text-fg`}`,children:r},e))}),(0,w.jsx)(`main`,{className:`min-h-0 overflow-auto p-4`,children:(0,w.jsxs)(`div`,{className:`mx-auto max-w-4xl`,children:[(0,w.jsx)(`h1`,{className:`mb-3 text-[13px] font-bold uppercase tracking-[0.12em] text-fg`,children:c}),a?(0,w.jsxs)(`div`,{className:`border border-line bg-surface p-4 text-[12px]`,children:[(0,w.jsx)(`p`,{className:`text-subtle`,children:`Couldn't load settings (daemon web transport offline?)`}),(0,w.jsx)(`button`,{type:`button`,onClick:o,className:`mt-3 border border-line bg-bg px-2 py-1 text-[11px] text-muted transition-colors hover:border-primary hover:text-fg`,children:`Retry`})]}):i||!r?(0,w.jsx)(`div`,{className:`border border-line bg-surface p-4 text-[12px] text-subtle`,children:`Loading settings...`}):t===`general`?(0,w.jsx)(A,{}):t===`engines`?(0,w.jsx)(M,{settings:r,patch:s}):t===`board`?(0,w.jsx)(N,{}):t===`dev`?(0,w.jsx)(P,{settings:r,patch:s}):(0,w.jsx)(F,{})]})})]})]})}export{I as n,R as t};
@@ -0,0 +1 @@
1
+ import{l as e}from"./terminal-qBEkzc-m.js";import{y as t}from"./tabs-Dx-TnbvG.js";import{d as n}from"./createLucideIcon-CM5xLVj1.js";import{t as r}from"./x-7cB9X7Hi.js";import{t as i}from"./use-focus-trap-DNMrlNR0.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};
@@ -0,0 +1 @@
1
+ import{l as e}from"./terminal-qBEkzc-m.js";import{_ as t,y as n}from"./tabs-Dx-TnbvG.js";import{i as r,r as i,t as a}from"./columns-3-CQGAnX-4.js";import{d as o,t as s}from"./createLucideIcon-CM5xLVj1.js";import{a as c,o as l}from"./toast-BXjAT0ix.js";import{n as u}from"./store-uT65Mask.js";import{t as d}from"./x-7cB9X7Hi.js";import{n as f}from"./web-transport-D0bugxxv.js";function p(e){let t=l({warn:e?.router===void 0}),n=e?.router||t;return r(n.stores.__store,i(e,n))}var m=s(`git-branch`,[[`line`,{x1:`6`,x2:`6`,y1:`3`,y2:`15`,key:`17qcm7`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`path`,{d:`M18 9a9 9 0 0 1-9 9`,key:`n2h4wq`}]]),h=s(`panels-top-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M9 21V9`,key:`1oto5p`}]]),g=e(n(),1),_=o();function v(){let{daemonConnected:e,streamConnected:t,hydrated:n}=u(),[r,i]=(0,g.useState)(!1);return!f({daemonConnected:e,streamConnected:t,hydrated:n})||r?null:(0,_.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2 border-b border-kobe-yellow/40 bg-kobe-yellow/10 px-3 py-1.5 text-[11px] text-kobe-yellow`,children:[(0,_.jsx)(`span`,{className:`h-1.5 w-1.5 shrink-0 rounded-full bg-kobe-yellow`}),(0,_.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[`The Rove daemon is offline — task data is frozen and mutations will fail until it reconnects (it auto-reconnects; the dashboard recovers on its own). If it doesn't recover, run `,(0,_.jsx)(`code`,{children:`rove doctor`}),` or`,` `,(0,_.jsx)(`code`,{children:`rove reset`}),` in a terminal.`]}),(0,_.jsx)(`button`,{type:`button`,onClick:()=>i(!0),className:`shrink-0 text-kobe-yellow/70 hover:text-kobe-yellow`,"aria-label":`dismiss`,children:(0,_.jsx)(d,{size:13,strokeWidth:2})})]})}function y(){let e=c(),n=p({select:e=>e.location.pathname}),{selectedTaskId:r}=t(),i=n.startsWith(`/board`)?`board`:n.startsWith(`/worktrees`)?`worktrees`:`workspace`,o=t=>{if(i!==t){if(t===`workspace`){e(r?{to:`/task/$taskId`,params:{taskId:r}}:{to:`/`});return}e({to:t===`board`?`/board`:`/worktrees`})}},s=e=>`flex items-center gap-1.5 border-l border-line px-2 py-1 text-[11px] transition-colors first:border-l-0 ${e?`border-line-active bg-inset text-fg`:`text-subtle hover:text-fg`}`;return(0,_.jsxs)(`div`,{className:`flex items-center overflow-hidden rounded-sm border border-line`,children:[(0,_.jsxs)(`button`,{type:`button`,onClick:()=>o(`workspace`),"aria-pressed":i===`workspace`,title:`Workspace`,className:s(i===`workspace`),children:[(0,_.jsx)(h,{size:13,strokeWidth:1.8}),`Workspace`]}),(0,_.jsxs)(`button`,{type:`button`,onClick:()=>o(`board`),"aria-pressed":i===`board`,title:`Board`,className:s(i===`board`),children:[(0,_.jsx)(a,{size:13,strokeWidth:1.8}),`Board`]}),(0,_.jsxs)(`button`,{type:`button`,onClick:()=>o(`worktrees`),"aria-pressed":i===`worktrees`,title:`Worktrees`,className:s(i===`worktrees`),children:[(0,_.jsx)(m,{size:13,strokeWidth:1.8}),`Worktrees`]})]})}export{v as n,y as t};
@@ -0,0 +1,3 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ChatTerminal-MCI1aBbT.js","assets/terminal-qBEkzc-m.js","assets/tabs-Dx-TnbvG.js","assets/createLucideIcon-CM5xLVj1.js","assets/store-uT65Mask.js","assets/rotate-cw-D-UUtiD0.js","assets/web-transport-D0bugxxv.js","assets/ChatTerminal-BrP-ENHg.css"])))=>i.map(i=>d[i]);
2
+ import{c as e,l as t,o as n,t as r}from"./terminal-qBEkzc-m.js";import{_ as i,a,h as o,i as s,o as c,p as l,t as u,v as d,y as f}from"./tabs-Dx-TnbvG.js";import{d as p,t as m}from"./createLucideIcon-CM5xLVj1.js";import{i as h,n as g}from"./store-uT65Mask.js";import{t as _}from"./ChatTranscript-DLthbnmB.js";import{t as v}from"./rotate-cw-D-UUtiD0.js";import{t as y}from"./web-transport-D0bugxxv.js";var b=m(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),x=m(`messages-square`,[[`path`,{d:`M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z`,key:`1n2ejm`}],[`path`,{d:`M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1`,key:`1qfcsi`}]]),S=m(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),C=t(f(),1);function w(e,t=36){return e.length<=t?e:`…${e.slice(e.length-t+1)}`}async function T(e,t={}){return{files:(await n.get(`/api/diff`,{query:{worktreePath:e,path:t.path,namesOnly:t.namesOnly?`1`:void 0},label:`diff fetch`})).files??[]}}function E(e){switch(e){case`added`:return{label:`A`,cls:`text-kobe-green`};case`untracked`:return{label:`U`,cls:`text-kobe-green`};case`modified`:return{label:`M`,cls:`text-kobe-yellow`};case`deleted`:return{label:`D`,cls:`text-kobe-red`};case`renamed`:return{label:`R`,cls:`text-kobe-blue`};case`copied`:return{label:`C`,cls:`text-kobe-blue`};default:return{label:e.slice(0,1).toUpperCase()||`?`,cls:`text-muted`}}}function D(e){switch(e){case`hunk`:return`kobe-diff-hunk`;case`meta`:return`kobe-diff-meta`;case`add`:return`kobe-diff-add`;case`del`:return`kobe-diff-del`;default:return`kobe-diff-ctx`}}function O(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function k(e){let t=e.replace(/\*+/g,`*`).split(`*`).map(O).join(`.*`);return RegExp(`^${t}$`)}function A(e,t){let n=t.trim(),r=n.startsWith(`!`),i=(r?n.slice(1):n).trim().toLowerCase();if(!i)return!0;let a=e.toLowerCase(),o=i.includes(`*`)?k(i).test(a):a.includes(i);return r?!o:o}function j(e,t){let n=t.trim();return n?e.filter(e=>A(e.path,n)):e}var M=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/,N=[`diff --git`,`index `,`--- `,`+++ `,`new file`,`deleted file`,`rename `,`similarity `,`copy `,`\\ No newline`,`Binary files`];function P(e){return N.some(t=>e.startsWith(t))}function F(e){let t=0,n=0;for(let r of I(e))r.kind===`add`?t++:r.kind===`del`&&n++;return{added:t,deleted:n}}function I(e){let t=e.replace(/\n$/,``).split(`
3
+ `),n=[],r=0,i=0,a=!1;for(let e of t){let t=M.exec(e);if(t){r=Number.parseInt(t[1],10),i=Number.parseInt(t[2],10),a=!0,n.push({kind:`hunk`,oldLn:null,newLn:null,text:e});continue}if(e.startsWith(`diff --git`)&&(a=!1),e===``||!a&&P(e)){n.push({kind:`meta`,oldLn:null,newLn:null,text:e});continue}let o=e[0];o===`+`?(n.push({kind:`add`,oldLn:null,newLn:i,text:e}),i++):o===`-`?(n.push({kind:`del`,oldLn:r,newLn:null,text:e}),r++):P(e)?n.push({kind:`meta`,oldLn:null,newLn:null,text:e}):(n.push({kind:`ctx`,oldLn:r,newLn:i,text:e}),r++,i++)}return n}var L=p();function R({added:e,deleted:t}){return e===0&&t===0?null:(0,L.jsxs)(`span`,{className:`shrink-0 font-mono text-[10px]`,children:[(0,L.jsxs)(`span`,{className:`text-kobe-green`,children:[`+`,e]}),` `,(0,L.jsxs)(`span`,{className:`text-kobe-red`,children:[`−`,t]})]})}function z(e){let{worktreeChanges:t}=g(),n=e?t[e]:void 0;return n?`${n.added}:${n.deleted}`:`none`}function B({onRetry:e}){let{daemonConnected:t,streamConnected:n}=g();return y({daemonConnected:t,streamConnected:n})?(0,L.jsx)(`div`,{className:`px-3 py-4 text-[12px] leading-relaxed text-subtle`,children:`The Rove daemon is offline — changes will reappear once it reconnects.`}):(0,L.jsxs)(`div`,{className:`flex flex-col items-start gap-2 px-3 py-4`,children:[(0,L.jsx)(`span`,{className:`text-[12px] text-kobe-red`,children:`Couldn't load changes.`}),(0,L.jsxs)(`button`,{type:`button`,onClick:e,className:`flex items-center gap-1.5 border border-line bg-bg px-2 py-1 text-[11px] text-muted transition-colors hover:border-primary hover:text-fg`,children:[(0,L.jsx)(v,{size:11,strokeWidth:2}),`Retry`]})]})}function V({patch:e,wrap:t}){let n=(0,C.useMemo)(()=>I(e),[e]);return e.trim()?(0,L.jsx)(`div`,{className:`kobe-diff min-h-0 flex-1 overflow-auto py-2 font-mono text-[12px] leading-[1.15rem] ${t?`kobe-diff-wrap`:``}`,children:n.map((e,t)=>(0,L.jsxs)(`div`,{className:`kobe-diff-row ${D(e.kind)}`,children:[(0,L.jsx)(`span`,{className:`kobe-diff-gutter`,children:e.oldLn??``}),(0,L.jsx)(`span`,{className:`kobe-diff-gutter`,children:e.newLn??``}),(0,L.jsx)(`span`,{className:`kobe-diff-text`,children:e.text===``?` `:e.text})]},t))}):(0,L.jsx)(`div`,{className:`flex h-full items-center justify-center text-[12px] text-subtle`,children:`No textual diff for this file.`})}function H({worktreePath:e,onOpenFile:t}){let[n,r]=(0,C.useState)(null),[i,a]=(0,C.useState)(!1),[o,s]=(0,C.useState)(null),c=z(e),{worktreeChanges:l}=g(),u=e?l[e]:void 0,d=(0,C.useRef)(0),f=(0,C.useCallback)(async()=>{if(!e){r(null),s(null);return}let t=++d.current;a(!0),s(null);try{let n=await T(e,{namesOnly:!0});t===d.current&&r(n)}catch(e){t===d.current&&(s(e instanceof Error?e.message:String(e)),r(null))}finally{t===d.current&&a(!1)}},[e]);(0,C.useEffect)(()=>{f()},[f,c]);let[p,m]=(0,C.useState)(``);(0,C.useEffect)(()=>{m(``)},[e]);let h=n?.files??[],_=(0,C.useMemo)(()=>j(h,p),[h,p]);return(0,L.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[(0,L.jsxs)(`div`,{className:`flex items-center gap-2 px-3 py-2`,children:[(0,L.jsxs)(`span`,{className:`text-[10px] font-bold uppercase tracking-[0.12em] text-subtle`,children:[`Changes`,h.length>0?` · ${h.length}`:``]}),u&&(0,L.jsx)(R,{added:u.added,deleted:u.deleted}),(0,L.jsx)(`button`,{type:`button`,onClick:()=>void f(),disabled:!e||i,className:`ml-auto rounded border border-line px-1.5 py-0.5 text-[10px] text-muted transition-colors hover:bg-surface disabled:opacity-40`,children:i?`…`:`↻`})]}),e?o?(0,L.jsx)(B,{onRetry:()=>void f()}):h.length===0?(0,L.jsx)(`div`,{className:`flex flex-1 items-center justify-center px-4 text-center`,children:(0,L.jsx)(`div`,{className:`text-[12px] text-subtle`,children:i?`Loading changes…`:`Worktree clean.`})}):(0,L.jsxs)(L.Fragment,{children:[h.length>1&&(0,L.jsx)(`input`,{value:p,onChange:e=>m(e.target.value),onKeyDown:e=>{e.key===`Escape`&&p&&(e.preventDefault(),m(``))},placeholder:`Filter ${h.length} files… (*.ts, !*.json)`,title:`Match a substring, a *.glob, or !exclude`,spellCheck:!1,className:`mx-3 mb-1 shrink-0 border border-line bg-bg px-2 py-1 font-mono text-[11px] text-fg placeholder:text-subtle focus:border-line-active focus:outline-none`}),_.length===0?(0,L.jsx)(`div`,{className:`px-3 py-3 text-center text-[11px] text-subtle`,children:`No files match.`}):(0,L.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto`,children:_.map(e=>{let n=E(e.status);return(0,L.jsxs)(`button`,{type:`button`,onClick:()=>t(e.path),title:e.path,className:`flex w-full items-center gap-2 border-l-2 border-transparent px-3 py-2 text-left transition-colors hover:border-primary hover:bg-inset`,children:[(0,L.jsx)(`span`,{className:`w-3 shrink-0 text-center font-mono text-[11px] font-bold ${n.cls}`,children:n.label}),(0,L.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[12px] text-fg/90`,children:w(e.path,34)}),e.staged&&(0,L.jsx)(`span`,{className:`shrink-0 text-[9px] uppercase text-subtle`,children:`staged`})]},e.path)})})]}):(0,L.jsx)(`div`,{className:`flex flex-1 items-center justify-center px-4 text-center`,children:(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`div`,{className:`text-[12px] font-semibold text-fg`,children:`No task selected`}),(0,L.jsx)(`div`,{className:`mt-1 max-w-48 text-[12px] leading-relaxed text-subtle`,children:`Select a task to watch its worktree changes.`})]})})]})}function U({worktreePath:e,path:t}){let[n,r]=(0,C.useState)(null),[i,a]=(0,C.useState)(!1),[o,s]=(0,C.useState)(!1),[c,l]=(0,C.useState)(null),u=z(e),d=(0,C.useRef)(0),f=(0,C.useCallback)(async()=>{if(!e){r(null),l(null);return}let n=++d.current;s(!0),l(null);try{let i=await T(e,{path:t});if(n!==d.current)return;r(i.files.find(e=>e.path===t)??null)}catch(e){n===d.current&&l(e instanceof Error?e.message:String(e))}finally{n===d.current&&s(!1)}},[e,t]);(0,C.useEffect)(()=>{f()},[f,u]);let p=n?F(n.patch):null;return(0,L.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col border border-line bg-bg`,children:[(0,L.jsxs)(`div`,{className:`flex h-9 shrink-0 items-center gap-2 border-b border-line px-3`,children:[(0,L.jsx)(`span`,{className:`truncate font-mono text-[12px] text-fg`,title:t,children:t}),p&&(0,L.jsx)(`span`,{className:`ml-auto shrink-0`,children:(0,L.jsx)(R,{added:p.added,deleted:p.deleted})}),n&&(0,L.jsx)(`span`,{className:`shrink-0 text-[10px] uppercase tracking-wide text-subtle ${p&&(p.added||p.deleted)?``:`ml-auto`}`,children:n.status}),n&&(0,L.jsx)(`button`,{type:`button`,onClick:()=>a(e=>!e),title:i?`Disable line wrap`:`Wrap long lines`,className:`shrink-0 border px-1.5 py-0.5 font-mono text-[10px] transition-colors ${i?`border-primary bg-inset text-fg`:`border-line bg-bg text-subtle hover:border-primary hover:text-fg`}`,children:`wrap`})]}),c?(0,L.jsx)(B,{onRetry:()=>void f()}):n?(0,L.jsx)(V,{patch:n.patch,wrap:i}):o?(0,L.jsx)(`div`,{className:`flex flex-1 items-center justify-center text-[12px] text-subtle`,children:`Loading preview…`}):(0,L.jsx)(`div`,{className:`flex flex-1 items-center justify-center text-[12px] text-subtle`,children:`No diff for this file.`})]})}var W=e({WorkspaceTabs:()=>Z}),G=(0,C.lazy)(()=>h(()=>import(`./ChatTerminal-MCI1aBbT.js`).then(e=>({default:e.ChatTerminal})),__vite__mapDeps([0,1,2,3,4,5,6,7])));function K(){return(0,L.jsx)(`div`,{className:`flex h-full w-full items-center justify-center text-[12px] text-subtle`,children:`Loading terminal…`})}function q(e){return e??`claude`}function J({taskId:e,tabId:t,vendor:n}){return(0,L.jsx)(`div`,{className:`flex h-full items-center justify-center px-6`,children:(0,L.jsx)(`div`,{className:`grid w-full max-w-2xl grid-cols-1 gap-3 md:grid-cols-3`,children:[{title:`Vendor`,detail:n,body:`Start an engine session for this task.`,icon:b,action:()=>c(e,t,`vendor`)},{title:`Chat`,detail:`transcript`,body:`Read the session as structured messages and tool calls.`,icon:x,action:()=>c(e,t,`transcript`)},{title:`Terminal`,detail:`shell / worktree`,body:`Open a command shell in this task worktree.`,icon:S,action:()=>c(e,t,`terminal`)}].map(e=>{let t=e.icon;return(0,L.jsxs)(`button`,{type:`button`,onClick:e.action,className:`group flex min-h-36 flex-col border border-line bg-surface p-4 text-left transition-colors hover:border-primary hover:bg-inset`,children:[(0,L.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,L.jsx)(`span`,{className:`flex h-9 w-9 shrink-0 items-center justify-center border border-line bg-bg text-muted group-hover:border-primary group-hover:text-primary`,children:(0,L.jsx)(t,{size:17,strokeWidth:1.8})}),(0,L.jsx)(`span`,{className:`truncate text-[10px] uppercase text-subtle`,children:e.detail})]}),(0,L.jsx)(`div`,{className:`mt-5 text-[12px] font-bold uppercase tracking-[0.12em] text-fg`,children:e.title}),(0,L.jsx)(`div`,{className:`mt-2 text-[12px] leading-relaxed text-subtle`,children:e.body})]},e.title)})})})}function Y({tab:e,taskId:t,taskWorktreePath:n,taskTitle:r,vendor:i}){return e?.kind===`empty`?(0,L.jsx)(J,{taskId:t,tabId:e.id,vendor:i}):e?.kind===`vendor`?(0,L.jsx)(C.Suspense,{fallback:(0,L.jsx)(K,{}),children:(0,L.jsx)(G,{tabId:e.id,taskId:e.taskId??t,mode:`engine`},e.id)}):e?.kind===`terminal`?(0,L.jsx)(C.Suspense,{fallback:(0,L.jsx)(K,{}),children:(0,L.jsx)(G,{tabId:e.id,taskId:t,mode:`shell`},e.id)}):e?.kind===`transcript`?(0,L.jsx)(_,{worktreePath:n,vendor:i,title:r},e.id):e?.kind===`file`?(0,L.jsx)(U,{worktreePath:n,path:e.path},e.id):(0,L.jsx)(`div`,{className:`flex h-full items-center justify-center text-[12px] text-subtle`,children:`Opening a tab…`})}function X({tab:e,side:t,children:n,onCloseSplit:r}){return(0,L.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col`,children:[t===`right`&&(0,L.jsxs)(`div`,{className:`flex h-8 shrink-0 items-center justify-between border-b border-line bg-surface px-3`,children:[(0,L.jsx)(`span`,{className:`truncate text-[11px] text-muted`,children:e?.title??`Split`}),(0,L.jsx)(`button`,{type:`button`,onClick:r,className:`text-[11px] text-subtle hover:text-fg`,"aria-label":`close split`,title:`Close split`,children:`×`})]}),(0,L.jsx)(`div`,{className:`min-h-0 flex-1 p-2`,children:n})]})}function Z(){let[e,t]=(0,C.useState)(null),[n,c]=(0,C.useState)(!1),{selectedTaskId:f,tabsByTask:p,activeByTask:m,splitByTask:h}=i(),{tasks:_,jobs:v}=g(),y=f?_.find(e=>e.id===f):null,b=f?p[f]??[]:[],x=f?m[f]:void 0,S=f?h[f]:void 0,w=e=>{if(!f)return;let t=b.find(t=>t.id===e);a(f,e),t&&d(t.kind)&&r(e)},T=b.find(e=>e.id===x)??b[0],E=S&&S!==T?.id?b.find(e=>e.id===S):void 0,D=q(y?.vendor),O=y?.title||y?.branch||`Session`,k=!!y&&((f?v[f]?.phase===`running`:!1)||y.worktreePath===null);return(0,L.jsxs)(`section`,{className:`flex min-w-0 flex-1 flex-col bg-bg`,children:[(0,L.jsx)(`div`,{className:`flex h-9 shrink-0 items-stretch border-b border-line bg-surface`,children:f?(0,L.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-stretch overflow-x-auto`,role:`tablist`,children:[b.map(e=>{let n=e.id===T?.id,r=e.id===E?.id;return(0,L.jsxs)(`div`,{role:`tab`,"aria-selected":n,tabIndex:0,draggable:!0,onDragStart:n=>{n.dataTransfer.effectAllowed=`move`,n.dataTransfer.setData(`text/plain`,e.id),t(e.id)},onDragEnd:()=>{t(null),c(!1)},className:`group flex h-9 select-none items-center gap-2 border-r border-b-2 border-r-line px-3 text-[12px] transition-colors ${n?`border-b-primary bg-bg text-fg`:r?`border-b-kobe-blue bg-inset text-fg`:`border-b-transparent text-muted hover:bg-inset/50`}`,children:[(0,L.jsx)(`button`,{type:`button`,onClick:()=>l(f,e.id),className:`max-w-40 cursor-grab truncate active:cursor-grabbing`,title:r?`${e.title} (split)`:e.title,children:e.title}),r&&(0,L.jsx)(`span`,{className:`text-[9px] font-bold uppercase text-kobe-blue`,children:`Split`}),(0,L.jsx)(`button`,{type:`button`,onClick:()=>w(e.id),className:`text-subtle opacity-0 transition-opacity hover:text-fg group-hover:opacity-100`,"aria-label":`close tab`,title:`Close tab`,children:`×`})]},e.id)}),(0,L.jsx)(`button`,{type:`button`,onClick:()=>u(f),className:`px-3 text-[13px] text-subtle hover:text-fg`,"aria-label":`new tab`,title:`New tab`,children:`+`})]}):(0,L.jsxs)(`div`,{className:`flex items-center gap-2 px-3 text-[11px] text-subtle`,children:[(0,L.jsx)(`span`,{className:`h-1.5 w-1.5 rounded-full bg-subtle`}),`No task selected`]})}),(0,L.jsxs)(`section`,{className:`relative min-h-0 flex-1`,"aria-label":`Workspace`,onDragOver:t=>{if(!f||!e)return;t.preventDefault();let n=t.currentTarget.getBoundingClientRect();c(t.clientX>n.left+n.width/2)},onDragLeave:()=>c(!1),onDrop:n=>{if(!f||!e)return;n.preventDefault();let r=n.currentTarget.getBoundingClientRect();n.clientX>r.left+r.width/2?o(f,e):l(f,e),t(null),c(!1)},children:[f&&T?(0,L.jsxs)(`div`,{className:`flex h-full min-w-0`,children:[(0,L.jsx)(X,{tab:T,side:`left`,children:(0,L.jsx)(Y,{tab:T,taskId:f,taskWorktreePath:y?.worktreePath??null,taskTitle:O,vendor:D})}),E&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(`div`,{className:`w-px shrink-0 bg-line`}),(0,L.jsx)(X,{tab:E,side:`right`,onCloseSplit:()=>{f&&s(f)},children:(0,L.jsx)(Y,{tab:E,taskId:f,taskWorktreePath:y?.worktreePath??null,taskTitle:O,vendor:D})})]})]}):(0,L.jsx)(`div`,{className:`flex h-full items-center justify-center px-6 text-center`,children:(0,L.jsxs)(`div`,{className:`max-w-md`,children:[(0,L.jsx)(`div`,{className:`font-mono text-[13px] font-bold text-primary`,children:`[rove web]`}),(0,L.jsx)(`h1`,{className:`mt-4 text-[18px] font-semibold text-fg`,children:y?k?`Setting up this task's worktree…`:`Opening workspace…`:`Select a task to open its workspace.`}),(0,L.jsx)(`p`,{className:`mt-2 text-[12px] leading-relaxed text-subtle`,children:`Web workspaces keep their own browser tabs, split panes, notes, and file previews for each task.`})]})}),e&&(0,L.jsx)(`div`,{className:`pointer-events-none absolute inset-y-2 right-2 flex w-[calc(50%-0.5rem)] items-center justify-center border border-dashed ${n?`border-primary bg-primary/10`:`border-line bg-inset/40`}`,children:(0,L.jsx)(`span`,{className:`border border-line bg-bg px-2 py-1 text-[10px] font-bold uppercase tracking-[0.12em] text-muted`,children:`Drop to split right`})})]})]})}export{w as i,W as n,H as r,Z as t};
@@ -0,0 +1 @@
1
+ .kobe-diff{tab-size:2}.kobe-diff-row{grid-template-columns:3.5ch 3.5ch 1fr;min-height:1.15rem;display:grid}.kobe-diff-gutter{text-align:right;color:#6b665f;opacity:.7;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-right:.5rem}.kobe-diff-text{white-space:pre;padding-right:.75rem}.kobe-diff-wrap .kobe-diff-text{white-space:pre-wrap;overflow-wrap:anywhere}.kobe-diff-add{color:#9aca86;background:#1f2a1f}.kobe-diff-del{color:#d47563;background:#2a1f1c}.kobe-diff-hunk{color:#61aaf2;background:0 0}.kobe-diff-hunk .kobe-diff-text,.kobe-diff-meta .kobe-diff-text{grid-column:1/-1;padding-left:.75rem}.kobe-diff-meta{color:#6b665f;background:0 0}.kobe-diff-ctx{color:#a9a39a;background:0 0}
@@ -0,0 +1 @@
1
+ import{t as e}from"./store-uT65Mask.js";function t(t){return e(`task.setActive`,{taskId:t})}function n(e,n){t(e).catch(e=>{n?.(e)})}export{n,t};
@@ -0,0 +1 @@
1
+ function e(e){switch(e){case`running`:return{color:`bg-kobe-orange`,label:`running`};case`waiting_permission`:return{color:`bg-kobe-blue`,label:`needs input`};case`rate_limited`:return{color:`bg-kobe-yellow`,label:`rate limited`};case`error`:return{color:`bg-kobe-red`,label:`error`};case`idle`:return{color:`bg-kobe-green/60`,label:`idle`};default:return{color:`bg-subtle`,label:``}}}function t(t){return e(t).color}function n(t){return e(t).label}export{n,t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./createLucideIcon-CM5xLVj1.js";var t=e(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{Board as e}from"./Board-DPB4h6mJ.js";var t=e;export{t as component};
@@ -0,0 +1 @@
1
+ import{d as e}from"./createLucideIcon-CM5xLVj1.js";function t(e){let t=e?.lifecycle;if(!e||!t||t===`unknown`)return null;let n=e.checkState,r=t===`merged`?`text-kobe-violet`:t===`closed`||n===`failing`?`text-kobe-red`:n===`passing`?`text-kobe-green`:n===`pending`?`text-kobe-yellow`:`text-kobe-blue`;return{label:e.number?`PR #${e.number}`:`PR`,cls:r,title:`${t}${n&&n!==`none`?` · ${n}`:``}`}}var n=e(),r=`after:pointer-events-none after:absolute after:right-0 after:bottom-full after:z-10 after:mb-1 after:hidden after:whitespace-nowrap after:border after:border-line after:bg-menu after:px-1.5 after:py-0.5 after:text-[10px] after:text-fg after:content-[attr(data-tip)] hover:after:block`;function i({counts:e}){return!e||e.added===0&&e.deleted===0?null:(0,n.jsxs)(`span`,{className:`shrink-0 font-mono text-[10px]`,children:[(0,n.jsxs)(`span`,{className:`text-kobe-green`,children:[`+`,e.added]}),` `,(0,n.jsxs)(`span`,{className:`text-kobe-red`,children:[`−`,e.deleted]})]})}function a({pr:e}){let r=t(e);return r?(0,n.jsx)(`span`,{className:`shrink-0 font-mono text-[10px] ${r.cls}`,title:r.title,children:r.label}):null}function o({label:e}){return e?(0,n.jsx)(`span`,{className:`shrink-0 rounded-sm border border-line px-1 font-mono text-[9px] uppercase tracking-wide text-subtle`,title:`engine: ${e}`,children:e}):null}export{r as i,o as n,a as r,i as t};
@@ -0,0 +1 @@
1
+ import{l as e}from"./terminal-qBEkzc-m.js";import{y as t}from"./tabs-Dx-TnbvG.js";import{t as n}from"./createLucideIcon-CM5xLVj1.js";import{o as r}from"./toast-BXjAT0ix.js";import{t as i}from"./with-selector-B5R3h-Ow.js";function a(e){return e[e.length-1]}function o(e){return typeof e==`function`}function s(e,t){return o(e)?e(t):e}var c=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;function u(e){for(let t in e)if(c.call(e,t))return!0;return!1}var d=()=>Object.create(null),f=(e,t)=>p(e,t,d);function p(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=_(e)&&_(i);if(!a&&!(h(e)&&h(i)))return i;let o=a?e:m(e);if(!o)return i;let s=a?i:m(i);if(!s)return i;let l=o.length,u=s.length,d=a?Array(u):n(),f=0;for(let t=0;t<u;t++){let o=a?t:s[t],u=e[o],m=i[o];if(u===m){d[o]=u,(a?t<l:c.call(e,o))&&f++;continue}if(u===null||m===null||typeof u!=`object`||typeof m!=`object`){d[o]=m;continue}let h=p(u,m,n,r+1);d[o]=h,h===u&&f++}return l===u&&f===l?e:d}function m(e){let t=Object.getOwnPropertyNames(e);for(let n of t)if(!l.call(e,n))return!1;let n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;let r=t;for(let t of n){if(!l.call(e,t))return!1;r.push(t)}return r}function h(e){if(!g(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!g(n)||!n.hasOwnProperty(`isPrototypeOf`))}function g(e){return Object.prototype.toString.call(e)===`[object Object]`}function _(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function v(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!v(e[r],t[r],n))return!1;return!0}if(h(e)&&h(t)){let r=n?.ignoreUndefined??!0;if(n?.partial){for(let i in t)if((!r||t[i]!==void 0)&&!v(e[i],t[i],n))return!1;return!0}let i=0;if(!r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;let a=0;for(let o in t)if((!r||t[o]!==void 0)&&(a++,a>i||!v(e[o],t[o],n)))return!1;return i===a}return!1}function y(e){let t,n,r=new Promise((e,r)=>{t=e,n=r});return r.status=`pending`,r.resolve=n=>{r.status=`resolved`,r.value=n,t(n),e?.(n)},r.reject=e=>{r.status=`rejected`,n(e)},r}function b(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}function x(e){return!!(e&&typeof e==`object`&&typeof e.then==`function`)}var S=/[\x00-\x1f\x7f"<>`{}]/g;function C(e){return e.replace(S,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function w(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return C(t)}var T=[`http:`,`https:`,`mailto:`,`tel:`];function E(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}function D(e){if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith(`//`))return{path:e,handledProtocolRelativeURL:!1};let t=/%25|%5C/gi,n=0,r=``,i;for(;(i=t.exec(e))!==null;)r+=w(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=w(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function O(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function k(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function A(){throw Error(`Invariant failed`)}var j=e(t(),1),M=j.createContext(void 0),N=j.createContext(void 0),P=i();function F(e,t){return e===t}function I(e,t,n=F){let r=(0,j.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),i=(0,j.useCallback)(()=>e?.get(),[e]);return(0,P.useSyncExternalStoreWithSelector)(r,i,i,t,n)}var L={get(){},subscribe(){return{unsubscribe(){}}}};function R(e,t){let n=j.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=p(n.current,i):i}}function z(e){let t=r(),n=j.useContext(e.from?N:M),i=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),a=R(e,t),o=I(i??L,e=>e?a(e):L);if(o!==L)return o;(e.shouldThrow??!0)&&A()}var B=n(`columns-3`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]);export{x as _,M as a,p as b,k as c,v as d,O as f,b as g,E as h,I as i,y as l,u as m,z as n,A as o,s as p,R as r,T as s,B as t,D as u,a as v,f as y};
@@ -0,0 +1 @@
1
+ import{l as e,s as t}from"./terminal-qBEkzc-m.js";import{y as n}from"./tabs-Dx-TnbvG.js";var r=t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),i=t(((e,t)=>{t.exports=r()})),a=e(n(),1),o=`kobe-web.notify`,s=`kobe-web.notify.engine`,c=null,l=f(),u=p(),d=new Set;function f(){try{return localStorage.getItem(o)===`1`}catch{return!1}}function p(){try{return localStorage.getItem(s)!==`0`}catch{return!0}}function m(){for(let e of d)e()}function h(e){return e===`waiting_permission`||e===`error`}function g(e){return e.enabled&&e.permission===`granted`&&e.hidden&&e.categoryEnabled}function _(e){return g({enabled:e.enabled,permission:e.permission,hidden:e.hidden,categoryEnabled:e.engineEnabled})?!h(e.prev)&&h(e.next):!1}function v(e){c=e}function y(){return typeof Notification>`u`?`denied`:Notification.permission}function b(){return{supported:typeof Notification<`u`,permission:y(),enabled:l&&y()===`granted`}}var x=b();function S(){let e=b();return(e.supported!==x.supported||e.permission!==x.permission||e.enabled!==x.enabled)&&(x=e),x}async function C(e){if(e&&typeof Notification<`u`&&Notification.permission==="default")try{await Notification.requestPermission()}catch{}l=e;try{localStorage.setItem(o,e?`1`:`0`)}catch{}m()}function w(){return(0,a.useSyncExternalStore)(e=>(d.add(e),()=>d.delete(e)),S,S)}function T(e,t,n,r){let i=typeof document>`u`||document.visibilityState!==`visible`;_({prev:n,next:r,enabled:l,permission:y(),hidden:i,engineEnabled:u})&&E(e,t,`Task ${r===`error`?`errored`:`needs your input`}.`,`kobe-task-${e}`)}function E(e,t,n,r){try{let i=new Notification(`Rove: ${t}`,{body:n,tag:r});i.onclick=()=>{window.focus(),c?.(e),i.close()}}catch{}}var D=`claude`,O=`kobe-web.theme`,k=null,A=null,j=F(),M=null,N=!1,P=new Set;function F(){try{return localStorage.getItem(O)}catch{return null}}function I(){for(let e of P)e()}function L(e,t,n=D){return e??t??n}function R(){return L(j,M)}function z(){N||typeof window>`u`||(N=!0,fetch(`/api/themes`).then(async e=>{if(!e.ok)return;let t=await e.json();t.themes&&(k=t.themes,B(),I())}).catch(()=>{}))}function B(){if(z(),!k)return;let e=R();if(A===e)return;let t=k[e]??k[D];if(!t)return;A=e;let n=document.documentElement;for(let[e,r]of Object.entries(t))n.style.setProperty(`--color-${e}`,r);I()}function V(e){M=e,B()}function H(e){j=e;try{localStorage.setItem(O,e)}catch{}B(),I()}function U(){j=null;try{localStorage.removeItem(O)}catch{}A=null,B(),I()}function W(){return{names:k?Object.keys(k):[],palettes:k??{},active:R(),overridden:j!==null}}var G=W();function K(){let e=W();return(e.active!==G.active||e.overridden!==G.overridden||e.names.join(`\0`)!==G.names.join(`\0`))&&(G=e),G}function q(){return z(),(0,a.useSyncExternalStore)(e=>(P.add(e),()=>P.delete(e)),K,K)}B();function J(){return k?k[R()]??null:null}function Y(){let e=J();return e?{background:e.bg,foreground:e.fg,cursor:e.primary,cursorAccent:e.bg,selectionBackground:e.menu,black:e.bg,red:e[`kobe-red`],green:e[`kobe-green`],yellow:e[`kobe-yellow`],blue:e[`kobe-blue`],magenta:e[`kobe-violet`],cyan:e[`primary-hover`],white:e.muted,brightBlack:e.subtle,brightRed:e[`kobe-red`],brightGreen:e[`kobe-green`],brightYellow:e[`kobe-yellow`],brightBlue:e[`kobe-blue`],brightMagenta:e[`kobe-violet`],brightCyan:e[`primary-hover`],brightWhite:e.fg}:null}var X=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Z=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Q=e=>{let t=Z(e);return t.charAt(0).toUpperCase()+t.slice(1)},$=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),ee=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0},te={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},ne=(0,a.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:o,iconNode:s,...c},l)=>(0,a.createElement)(`svg`,{ref:l,...te,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:$(`lucide`,i),...!o&&!ee(c)&&{"aria-hidden":`true`},...c},[...s.map(([e,t])=>(0,a.createElement)(e,t)),...Array.isArray(o)?o:[o]])),re=(e,t)=>{let n=(0,a.forwardRef)(({className:n,...r},i)=>(0,a.createElement)(ne,{ref:i,iconNode:t,className:$(`lucide-${X(Q(e))}`,`lucide-${e}`,n),...r}));return n.displayName=Q(e),n};export{q as a,C as c,i as d,H as i,v as l,V as n,Y as o,U as r,T as s,re as t,w as u};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AppShell-BTjvuY-t.js","assets/terminal-qBEkzc-m.js","assets/tabs-Dx-TnbvG.js","assets/createLucideIcon-CM5xLVj1.js","assets/toast-BXjAT0ix.js","assets/external-store-DJlWpyYC.js","assets/ViewToggle-BdPCMBWa.js","assets/columns-3-CQGAnX-4.js","assets/with-selector-B5R3h-Ow.js","assets/store-uT65Mask.js","assets/x-7cB9X7Hi.js","assets/web-transport-D0bugxxv.js","assets/active-task-GeQZqbJK.js","assets/triage-7QLsCY8d.js","assets/use-focus-trap-DNMrlNR0.js","assets/engines-Cnxy1hW9.js","assets/settings-tPcmEHCP.js","assets/vendor-CdtpTJrf.js","assets/WorkspaceTabs-CMKlvN_Y.js","assets/ChatTranscript-DLthbnmB.js","assets/rotate-cw-D-UUtiD0.js","assets/search-BxbFZoup.js","assets/time-kviT26Tm.js","assets/WorkspaceTabs-DLzL-Tad.css","assets/SettingsPage-CLRhr-sg.js","assets/plus-BbX5qXba.js","assets/activity-BjTd1D8q.js","assets/ConfirmDialog-CDPOtXww.js","assets/text-match-DW3sD-Rt.js","assets/SlideOver-Dxtk6Gn2.js","assets/chips-Da37C4KZ.js","assets/AppShell-HiyATJse.css","assets/Board-DPB4h6mJ.js","assets/external-link-BwT2u1hD.js","assets/lazy-issue-panels-0Rhl2uhh.js","assets/issues-1SCRkcB0.js","assets/IssuesPage-BR5mpuo-.js","assets/arrow-left-DNM2CHhS.js","assets/ChatTerminal-MCI1aBbT.js","assets/ChatTerminal-BrP-ENHg.css","assets/BoardPeek-69VJptGV.js","assets/IssueIntakePanel-XYsIcIhp.js","assets/RichEditor-DJFl5TvH.js","assets/react-dom-DCnDkJvp.js","assets/RichEditor-B4sEOPyN.css","assets/IssuePeek-CP_rAkqO.js"])))=>i.map(i=>d[i]);
2
+ import{i as e}from"./store-uT65Mask.js";function t(e){return new URLSearchParams(e).get(`kobeDesktop`)===`1`}function n(e=window.location.search){let n=t(e);return n&&(document.documentElement.dataset.kobeDesktop=`true`),n}function r(){return document.documentElement.dataset.kobeDesktop===`true`}function i(){return window.kobeDesktopWindow}async function a(){await Promise.allSettled([e(()=>import(`./AppShell-BTjvuY-t.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31])),e(()=>import(`./Board-DPB4h6mJ.js`),__vite__mapDeps([32,1,2,3,4,5,6,7,8,9,10,11,12,33,34,30,35,16,28,25,21,27,14])),e(()=>import(`./IssuesPage-BR5mpuo-.js`),__vite__mapDeps([36,1,2,3,4,5,9,37,34,30,35,12,16,28,25,21,10,27,14])),e(()=>import(`./WorkspaceTabs-CMKlvN_Y.js`).then(e=>e.n),__vite__mapDeps([18,1,2,3,9,19,20,21,10,11,22,23])),e(()=>import(`./ChatTerminal-MCI1aBbT.js`),__vite__mapDeps([38,1,2,3,9,20,11,39])),e(()=>import(`./BoardPeek-69VJptGV.js`),__vite__mapDeps([40,1,2,3,9,19,20,21,10,11,22,33,26,14])),e(()=>import(`./IssueIntakePanel-XYsIcIhp.js`),__vite__mapDeps([41,1,2,3,29,10,14,35,9,12,16,28,42,8,43,15,5,17,44])),e(()=>import(`./IssuePeek-CP_rAkqO.js`),__vite__mapDeps([45,1,2,3,33,29,10,14,35,9,12,16,28,42,8,43,15,5,17,44])),e(()=>import(`./SettingsPage-CLRhr-sg.js`).then(e=>e.n),__vite__mapDeps([24,1,2,3,4,5,16,17]))])}export{a as i,n,r,i as t};
@@ -0,0 +1 @@
1
+ import{o as e}from"./terminal-qBEkzc-m.js";import{t}from"./external-store-DJlWpyYC.js";var n=t([{id:`claude`,label:`Claude`},{id:`codex`,label:`Codex`}]),r=!1;function i(){r||(r=!0,e.getOr(`/api/engines`,{},{label:`load engines`}).then(e=>{!Array.isArray(e.engines)||e.engines.length===0||n.replace(e.engines.filter(e=>typeof e?.id==`string`&&typeof e?.label==`string`).map(e=>({id:e.id,label:e.label,...Array.isArray(e.effortLevels)&&e.effortLevels.every(e=>typeof e==`string`)?{effortLevels:e.effortLevels}:{}})))}).catch(()=>{}))}function a(){return i(),n.useSnapshot()}export{a as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./createLucideIcon-CM5xLVj1.js";var t=e(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{l as e}from"./terminal-qBEkzc-m.js";import{y as t}from"./tabs-Dx-TnbvG.js";var n=e(t(),1);function r(e){let t=e,r=new Set;function i(){for(let e of r)e()}let a={getSnapshot(){return t},subscribe(e){return r.add(e),()=>{r.delete(e)}},useSnapshot(){return(0,n.useSyncExternalStore)(a.subscribe,a.getSnapshot,a.getSnapshot)},replace(e){return t=e,i(),t},update(e){return t=e(t),i(),t}};return a}export{r as t};
@@ -0,0 +1 @@
1
+ import{l as e}from"./terminal-qBEkzc-m.js";import{y as t}from"./tabs-Dx-TnbvG.js";import{d as n}from"./createLucideIcon-CM5xLVj1.js";import{ChatTerminal as r}from"./ChatTerminal-MCI1aBbT.js";var i=e(t()),a=n();function o(){let e=`visual-${(new URLSearchParams(window.location.search).get(`run`)??`manual`).replace(/[^a-zA-Z0-9_-]/g,``).slice(0,48)||`manual`}`,[t,n]=(0,i.useState)(`connecting`),[o,s]=(0,i.useState)(``);return(0,a.jsxs)(`div`,{"data-testid":`opentui-harness`,"data-pty-status":t,style:{position:`fixed`,inset:0,background:`#141413`},children:[(0,a.jsx)(r,{tabId:e,taskId:e,mode:`shell`,testId:`opentui-terminal`,disableWebgl:!0,onStatusChange:n,onBufferChange:s}),(0,a.jsx)(`pre`,{"data-testid":`opentui-buffer`,style:{display:`none`},children:o})]})}export{o as component};