@sma1lboy/kobe 0.9.7 → 0.9.8
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 +393 -389
- package/dist/cli/kobe-run.js +393 -389
- package/dist/cli/pty-host-node.mjs +24 -7
- package/dist/cli/rove-run.js +393 -389
- package/dist/web-ui/assets/AppShell-CYnOcixW.js +5 -0
- package/dist/web-ui/assets/Board-CPhoB6iq.js +1 -0
- package/dist/web-ui/assets/BoardPeek-DrOQ79OT.js +2 -0
- package/dist/web-ui/assets/ChatTerminal-dD7BxK7D.js +87 -0
- package/dist/web-ui/assets/ChatTranscript-sGctZOWf.js +1 -0
- package/dist/web-ui/assets/ConfirmDialog-DwCR5VCW.js +1 -0
- package/dist/web-ui/assets/{IssueIntakePanel-CBM21cyc.js → IssueIntakePanel-M1-5-SQo.js} +1 -1
- package/dist/web-ui/assets/IssuePeek-CvBjr3Uj.js +1 -0
- package/dist/web-ui/assets/IssuesPage-DOAacim_.js +1 -0
- package/dist/web-ui/assets/RichEditor-B2Hirfcc.js +173 -0
- package/dist/web-ui/assets/SettingsPage-DBxl8Gua.js +2 -0
- package/dist/web-ui/assets/SlideOver-Bt2OrIFm.js +1 -0
- package/dist/web-ui/assets/ViewToggle-BIW8t88D.js +1 -0
- package/dist/web-ui/assets/{WorkspaceTabs-DrrZuT8m.js → WorkspaceTabs-Bq1xW2Fj.js} +3 -3
- package/dist/web-ui/assets/active-task-DOIy-xHd.js +1 -0
- package/dist/web-ui/assets/arrow-left-CkmFCPVu.js +1 -0
- package/dist/web-ui/assets/board-Cc87lh3Z.js +1 -0
- package/dist/web-ui/assets/{chips-NdkDNqV7.js → chips-B2ODRu8l.js} +1 -1
- package/dist/web-ui/assets/{createLucideIcon-C6nfansM.js → createLucideIcon-C8T7_EGK.js} +1 -1
- package/dist/web-ui/assets/{external-link-Cj-9rta8.js → external-link-D4N6NrPI.js} +1 -1
- package/dist/web-ui/assets/{external-store-CNyRxjsC.js → external-store-Djn-EBMQ.js} +1 -1
- package/dist/web-ui/assets/{harness-9M6rZZri.js → harness-CzVjZ6jm.js} +1 -1
- package/dist/web-ui/assets/index-BnJAzfQw.js +10 -0
- package/dist/web-ui/assets/{index-BCOORN5f.css → index-BnjD9Q-3.css} +1 -1
- package/dist/web-ui/assets/issues-CiVe8q_b.js +4 -0
- package/dist/web-ui/assets/issues-QjkeRDbu.js +1 -0
- package/dist/web-ui/assets/{lazy-issue-panels-GvnRdSfG.js → lazy-issue-panels-BwPzNd74.js} +3 -3
- package/dist/web-ui/assets/{rotate-cw-BsVaYno1.js → rotate-cw-CSI5S-rL.js} +1 -1
- package/dist/web-ui/assets/routes-DzzbdStG.js +1 -0
- package/dist/web-ui/assets/{store-BK5yanfN.js → store-C3IHXPqa.js} +2 -2
- package/dist/web-ui/assets/{tabs-DHBP2ShA.js → tabs-C1KFppnz.js} +1 -1
- package/dist/web-ui/assets/task._taskId-IZIQEjgf.js +1 -0
- package/dist/web-ui/assets/terminal-Nt-mXbb9.js +1 -0
- package/dist/web-ui/assets/{toast-2mA6GzBq.js → toast-CTxQEYJU.js} +1 -1
- package/dist/web-ui/assets/{web-transport-BFuf9jKF.js → web-transport-BFmRPA6p.js} +1 -1
- package/dist/web-ui/assets/{worktrees-Bu5ii1XY.js → worktrees-BlU0Tq_2.js} +1 -1
- package/dist/web-ui/index.html +9 -23
- package/package.json +1 -1
- package/dist/web-ui/assets/AppShell-BvHb-c8o.js +0 -5
- package/dist/web-ui/assets/Board-CcUG5Zqa.js +0 -1
- package/dist/web-ui/assets/BoardPeek-C5c1gItm.js +0 -2
- package/dist/web-ui/assets/ChatTerminal-B32Pfuys.js +0 -144
- package/dist/web-ui/assets/ChatTranscript-Bw-ROsjY.js +0 -1
- package/dist/web-ui/assets/ConfirmDialog-CQUf9GuM.js +0 -1
- package/dist/web-ui/assets/IssuePeek-Ce8Qc6KY.js +0 -1
- package/dist/web-ui/assets/IssuesPage-BHj8y82L.js +0 -1
- package/dist/web-ui/assets/RichEditor-CY2cypY2.js +0 -173
- package/dist/web-ui/assets/SettingsPage-DovXUI00.js +0 -2
- package/dist/web-ui/assets/SlideOver-CI7vBtQJ.js +0 -1
- package/dist/web-ui/assets/ViewToggle-Bvvh1yLG.js +0 -1
- package/dist/web-ui/assets/active-task-CCVuYWP9.js +0 -1
- package/dist/web-ui/assets/activity-BjTd1D8q.js +0 -1
- package/dist/web-ui/assets/arrow-left-wT_Oflhg.js +0 -1
- package/dist/web-ui/assets/board-rQqUWfL9.js +0 -1
- package/dist/web-ui/assets/columns-3-xX5P4LBE.js +0 -1
- package/dist/web-ui/assets/desktop-B6tIfst1.js +0 -2
- package/dist/web-ui/assets/engines-CZCmPVm2.js +0 -1
- package/dist/web-ui/assets/index-BNs9r4hG.js +0 -10
- package/dist/web-ui/assets/issues-9Bx80Ra2.js +0 -1
- package/dist/web-ui/assets/issues-BjnSNgu-.js +0 -4
- package/dist/web-ui/assets/plus-Bz25iNHX.js +0 -1
- package/dist/web-ui/assets/react-dom-Ccqy9Xi6.js +0 -1
- package/dist/web-ui/assets/routes-F18MCI2e.js +0 -1
- package/dist/web-ui/assets/search-zs6lDYfz.js +0 -1
- package/dist/web-ui/assets/settings-Cavhxdh3.js +0 -1
- package/dist/web-ui/assets/task._taskId-B3nsG86I.js +0 -1
- package/dist/web-ui/assets/task._taskId-rxSYKMea.js +0 -2
- package/dist/web-ui/assets/terminal-6BCvBu4_.js +0 -1
- package/dist/web-ui/assets/triage-DjBy6dI9.js +0 -1
- package/dist/web-ui/assets/use-focus-trap-oPsw86zw.js +0 -1
- package/dist/web-ui/assets/vendor-CdtpTJrf.js +0 -1
- package/dist/web-ui/assets/with-selector-D8BuTuR6.js +0 -1
- package/dist/web-ui/assets/x-MtSojW5V.js +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{l as e,o as t,s as n,u as r}from"./terminal-6BCvBu4_.js";import{d as i,y as a}from"./tabs-DHBP2ShA.js";import{a as o,c as s,i as c,m as l,r as u,t as d,u as f}from"./createLucideIcon-C6nfansM.js";import{a as p,n as m,r as h}from"./toast-2mA6GzBq.js";import{n as g,r as _}from"./settings-Cavhxdh3.js";import{a as v,t as y}from"./vendor-CdtpTJrf.js";var b=d(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),x=r(a(),1);async function S(){let e=await t.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 C(e){await t.put(`/api/quick-prompts`,e,{label:`save quick prompts`})}`${n}`;function w(e){return v(e)===`claude`?`/review`:`Review the current changes in this worktree critically.`}var T=[`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
|
-
`),E=l();function D({title:e,children:t}){return(0,E.jsxs)(`section`,{children:[(0,E.jsx)(`h2`,{className:`text-[11px] font-bold uppercase tracking-[0.12em] text-subtle`,children:e}),(0,E.jsx)(`div`,{className:`mt-3 space-y-3 text-[12px]`,children:t})]})}function O({label:e,detail:t,enabled:n,onToggle:r,disabled:i}){return(0,E.jsxs)(`div`,{className:`flex items-start justify-between gap-4 border border-line bg-bg p-3`,children:[(0,E.jsxs)(`div`,{className:`min-w-0`,children:[(0,E.jsx)(`div`,{className:`text-[12px] font-bold text-fg`,children:e}),t?(0,E.jsx)(`div`,{className:`mt-1 text-[11px] leading-relaxed text-subtle`,children:t}):null]}),(0,E.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 k(){let[e,t]=(0,x.useState)(null),[n,r]=(0,x.useState)(!0),[i,a]=(0,x.useState)(!1),o=(0,x.useRef)(0),s=(0,x.useCallback)(async()=>{let e=++o.current;r(!0),a(!1);try{let n=await g();e===o.current&&t(n)}catch(t){e===o.current&&a(!0),h(`load settings`,t)}finally{e===o.current&&r(!1)}},[]);return(0,x.useEffect)(()=>{s()},[s]),{settings:e,loading:n,error:i,reload:s,patch:async e=>{let n=await _(e);return t(n),n}}}function A({palette:e}){return(0,E.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,E.jsx)(`span`,{className:`h-5 w-3`,style:{backgroundColor:e}},t))})}function j(){let{names:e,palettes:t,active:n,overridden:r}=o();return(0,E.jsxs)(`div`,{className:`border border-line bg-surface p-4`,children:[(0,E.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,E.jsx)(`div`,{className:`text-[11px] font-bold uppercase tracking-[0.12em] text-subtle`,children:`Appearance`}),r?(0,E.jsx)(`button`,{type:`button`,onClick:u,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,E.jsx)(`span`,{className:`font-mono text-[10px] text-subtle`,children:`following TUI`})]}),e.length===0?(0,E.jsx)(`p`,{className:`mt-4 text-[12px] text-subtle`,children:`Loading themes…`}):(0,E.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,E.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,E.jsx)(A,{palette:t[e]??{}}),(0,E.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[12px] ${r?`text-fg`:`text-muted`}`,children:e}),r&&(0,E.jsx)(b,{size:13,strokeWidth:2.5,className:`shrink-0 text-primary`})]},e)})})]})}function M(){return(0,E.jsx)(`div`,{className:`space-y-6`,children:(0,E.jsxs)(D,{title:`Dashboard theme`,children:[(0,E.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,E.jsx)(j,{})]})})}function N({engine:e,onSave:t,onDefault:n,onRemove:r}){let[i,a]=(0,x.useState)(e.command),[o,s]=(0,x.useState)(e.label),c=/\s--[A-Za-z0-9][\w-]*/.test(o)&&!/\s--[A-Za-z0-9][\w-]*/.test(i);return(0,x.useEffect)(()=>{a(e.command),s(e.label)},[e.command,e.label]),(0,E.jsxs)(`div`,{className:`border border-line bg-bg p-3`,children:[(0,E.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,E.jsxs)(`div`,{className:`min-w-0`,children:[(0,E.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,E.jsx)(`span`,{className:`font-bold text-fg`,children:e.label}),e.isDefault?(0,E.jsx)(`span`,{className:`font-mono text-[10px] text-primary`,children:`default`}):null,e.isCustom?(0,E.jsx)(`span`,{className:`font-mono text-[10px] text-subtle`,children:`custom`}):null]}),(0,E.jsx)(`div`,{className:`font-mono text-[10px] text-subtle`,children:e.id})]}),(0,E.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,E.jsxs)(`label`,{className:`mt-3 block`,children:[(0,E.jsx)(`span`,{className:`text-[11px] text-muted`,children:`Display name (label only)`}),(0,E.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,E.jsxs)(`label`,{className:`mt-2 block`,children:[(0,E.jsx)(`span`,{className:`text-[11px] text-muted`,children:`Launch command (argv that Rove runs)`}),(0,E.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,E.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,E.jsxs)(`div`,{className:`mt-3 flex items-center gap-2`,children:[(0,E.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,E.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 P({settings:e,patch:t}){let[n,r]=(0,x.useState)(``),[i,a]=(0,x.useState)(``),[o,s]=(0,x.useState)(``),c=(e,n,r)=>void t({engineUpdates:[{id:e,command:n,label:r}]}).then(()=>m(`success`,`engine saved`));return(0,E.jsxs)(`div`,{className:`space-y-6`,children:[(0,E.jsxs)(D,{title:`Launch commands`,children:[(0,E.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,E.jsx)(`div`,{className:`space-y-2`,children:e.engines.map(e=>(0,E.jsx)(N,{engine:e,onSave:c,onDefault:e=>void t({defaultEngine:e}).then(()=>m(`success`,`default engine saved`)),onRemove:e=>void t({removeEngine:e}).then(()=>m(`success`,`engine removed`))},e.id))})]}),(0,E.jsxs)(D,{title:`Add engine`,children:[(0,E.jsxs)(`div`,{className:`grid gap-2 md:grid-cols-3`,children:[(0,E.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,E.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,E.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,E.jsx)(`button`,{type:`button`,onClick:()=>void t({addEngine:{id:n,command:i,label:o}}).then(()=>{r(``),a(``),s(``),m(`success`,`engine added`)}).catch(e=>h(`add engine`,e)),className:`border border-primary bg-inset px-2 py-1 text-[11px] text-fg`,children:`Add engine`})]})]})}function F(){let[e,t]=(0,x.useState)(``),[n,r]=(0,x.useState)(``),[i,a]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{let e=!1;return S().then(n=>{e||(t(n.review??``),r(n.pr??``),a(!0))}).catch(t=>{e||h(`load quick-action templates`,t)}),()=>{e=!0}},[]),(0,E.jsxs)(D,{title:`Board quick actions`,children:[(0,E.jsxs)(`label`,{className:`block`,children:[(0,E.jsx)(`span`,{className:`text-muted`,children:`Review template`}),(0,E.jsx)(`textarea`,{value:e,onChange:e=>t(e.target.value),placeholder:`default: ${w(y)}`,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,E.jsxs)(`label`,{className:`block`,children:[(0,E.jsx)(`span`,{className:`text-muted`,children:`Open-PR template`}),(0,E.jsx)(`textarea`,{value:n,onChange:e=>r(e.target.value),placeholder:`default:\n${T}`,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,E.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,E.jsx)(`span`,{className:`text-[11px] text-subtle`,children:`Empty = built-in default. Rove appends its status/URL guardrails at send time.`}),(0,E.jsx)(`button`,{type:`button`,onClick:()=>void C({review:e,pr:n}).then(()=>m(`success`,`quick-action templates saved`)).catch(e=>h(`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 I({settings:e,patch:t}){let[n,r]=(0,x.useState)(!1),a=p();return(0,E.jsxs)(`div`,{className:`space-y-6`,children:[(0,E.jsxs)(D,{title:`Experimental gates`,children:[(0,E.jsx)(O,{label:`Remote projects`,detail:`Enables SSH-backed remote project setup in the CLI.`,enabled:e.remoteProjects,onToggle:()=>void t({remoteProjects:!e.remoteProjects})}),(0,E.jsx)(O,{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,E.jsx)(O,{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,E.jsx)(O,{label:`Dispatcher`,detail:`Enables the field-notes dispatcher protocol for repo main sessions.`,enabled:e.dispatcher,onToggle:()=>void t({dispatcher:!e.dispatcher})})]}),(0,E.jsxs)(D,{title:`Browser workspace`,children:[(0,E.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,E.jsx)(`button`,{type:`button`,onClick:()=>{if(!n){r(!0);return}i(),a({to:`/`}),r(!1)},onBlur:()=>r(!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 L(){let{supported:e,permission:t,enabled:n}=f();return(0,E.jsx)(`div`,{className:`space-y-6`,children:(0,E.jsxs)(D,{title:`Notifications`,children:[e?(0,E.jsx)(O,{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 s(!n),disabled:t===`denied`&&!n}):(0,E.jsx)(`p`,{className:`text-[11px] leading-relaxed text-subtle`,children:`This browser does not support desktop notifications.`}),t===`denied`&&!n?(0,E.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 R=e({SettingsPage:()=>B}),z=[[`general`,`General`],[`engines`,`Engines`],[`board`,`Board`],[`dev`,`Dev`],[`notifications`,`Notifications`]];function B({onClose:e}){let[t,n]=(0,x.useState)(`general`),{settings:r,loading:i,error:a,reload:o,patch:s}=k(),c=(0,x.useMemo)(()=>z.find(([e])=>e===t)?.[1]??`Settings`,[t]);return(0,E.jsxs)(`section`,{"data-settings-open":!0,className:`flex min-w-0 flex-1 flex-col bg-bg`,children:[(0,E.jsxs)(`div`,{className:`flex h-9 shrink-0 items-center justify-between border-b border-line bg-surface px-3`,children:[(0,E.jsx)(`span`,{className:`text-[10px] font-bold uppercase tracking-[0.12em] text-fg`,children:`Settings`}),(0,E.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,E.jsxs)(`div`,{className:`grid min-h-0 flex-1 grid-cols-[180px_minmax(0,1fr)] overflow-hidden`,children:[(0,E.jsx)(`nav`,{className:`min-h-0 overflow-auto border-r border-line bg-surface/60 p-2`,children:z.map(([e,r])=>(0,E.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,E.jsx)(`main`,{className:`min-h-0 overflow-auto p-4`,children:(0,E.jsxs)(`div`,{className:`mx-auto max-w-4xl`,children:[(0,E.jsx)(`h1`,{className:`mb-3 text-[13px] font-bold uppercase tracking-[0.12em] text-fg`,children:c}),a?(0,E.jsxs)(`div`,{className:`border border-line bg-surface p-4 text-[12px]`,children:[(0,E.jsx)(`p`,{className:`text-subtle`,children:`Couldn't load settings (daemon web transport offline?)`}),(0,E.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,E.jsx)(`div`,{className:`border border-line bg-surface p-4 text-[12px] text-subtle`,children:`Loading settings...`}):t===`general`?(0,E.jsx)(M,{}):t===`engines`?(0,E.jsx)(P,{settings:r,patch:s}):t===`board`?(0,E.jsx)(F,{}):t===`dev`?(0,E.jsx)(I,{settings:r,patch:s}):(0,E.jsx)(L,{})]})})]})]})}export{R as n,B as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as e}from"./terminal-6BCvBu4_.js";import{y as t}from"./tabs-DHBP2ShA.js";import{m as n}from"./createLucideIcon-C6nfansM.js";import{t as r}from"./x-MtSojW5V.js";import{t as i}from"./use-focus-trap-oPsw86zw.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{u as e}from"./terminal-6BCvBu4_.js";import{_ as t,y as n}from"./tabs-DHBP2ShA.js";import{i as r,r as i,t as a}from"./columns-3-xX5P4LBE.js";import{f as o,m as s,p as c,t as l}from"./createLucideIcon-C6nfansM.js";import{a as u,o as d}from"./toast-2mA6GzBq.js";import{n as f}from"./store-BK5yanfN.js";import{t as p}from"./x-MtSojW5V.js";import{n as m}from"./web-transport-BFuf9jKF.js";function h(e){let t=d({warn:e?.router===void 0}),n=e?.router||t;return r(n.stores.__store,i(e,n))}var g=l(`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`}]]),_=l(`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`}]]),v=e(n(),1),y=s();function b(){let{daemonConnected:e,streamConnected:t,hydrated:n}=f(),[r,i]=(0,v.useState)(!1);return!m({daemonConnected:e,streamConnected:t,hydrated:n})||r?null:(0,y.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,y.jsx)(`span`,{className:`h-1.5 w-1.5 shrink-0 rounded-full bg-kobe-yellow`}),(0,y.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[`The `,c(),` 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,y.jsx)(`code`,{children:o(`doctor`)}),` or`,` `,(0,y.jsx)(`code`,{children:o(`reset`)}),` in a terminal.`]}),(0,y.jsx)(`button`,{type:`button`,onClick:()=>i(!0),className:`shrink-0 text-kobe-yellow/70 hover:text-kobe-yellow`,"aria-label":`dismiss`,children:(0,y.jsx)(p,{size:13,strokeWidth:2})})]})}function x(){let e=u(),n=h({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,y.jsxs)(`div`,{className:`flex items-center overflow-hidden rounded-sm border border-line`,children:[(0,y.jsxs)(`button`,{type:`button`,onClick:()=>o(`workspace`),"aria-pressed":i===`workspace`,title:`Workspace`,className:s(i===`workspace`),children:[(0,y.jsx)(_,{size:13,strokeWidth:1.8}),`Workspace`]}),(0,y.jsxs)(`button`,{type:`button`,onClick:()=>o(`board`),"aria-pressed":i===`board`,title:`Board`,className:s(i===`board`),children:[(0,y.jsx)(a,{size:13,strokeWidth:1.8}),`Board`]}),(0,y.jsxs)(`button`,{type:`button`,onClick:()=>o(`worktrees`),"aria-pressed":i===`worktrees`,title:`Worktrees`,className:s(i===`worktrees`),children:[(0,y.jsx)(g,{size:13,strokeWidth:1.8}),`Worktrees`]})]})}export{b as n,x as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./store-BK5yanfN.js";function t(t){return e(`task.setActive`,{taskId:t})}function n(e,n){t(e).catch(e=>{n?.(e)})}export{n,t};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-C6nfansM.js";var t=e(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Board as e}from"./Board-CcUG5Zqa.js";var t=e;export{t as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as e}from"./terminal-6BCvBu4_.js";import{y as t}from"./tabs-DHBP2ShA.js";import{t as n}from"./createLucideIcon-C6nfansM.js";import{o as r}from"./toast-2mA6GzBq.js";import{t as i}from"./with-selector-D8BuTuR6.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};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AppShell-BvHb-c8o.js","assets/terminal-6BCvBu4_.js","assets/tabs-DHBP2ShA.js","assets/createLucideIcon-C6nfansM.js","assets/toast-2mA6GzBq.js","assets/external-store-CNyRxjsC.js","assets/ViewToggle-Bvvh1yLG.js","assets/columns-3-xX5P4LBE.js","assets/with-selector-D8BuTuR6.js","assets/store-BK5yanfN.js","assets/x-MtSojW5V.js","assets/web-transport-BFuf9jKF.js","assets/active-task-CCVuYWP9.js","assets/triage-DjBy6dI9.js","assets/use-focus-trap-oPsw86zw.js","assets/engines-CZCmPVm2.js","assets/settings-Cavhxdh3.js","assets/vendor-CdtpTJrf.js","assets/WorkspaceTabs-DrrZuT8m.js","assets/ChatTranscript-Bw-ROsjY.js","assets/rotate-cw-BsVaYno1.js","assets/search-zs6lDYfz.js","assets/time-kviT26Tm.js","assets/WorkspaceTabs-DLzL-Tad.css","assets/SettingsPage-DovXUI00.js","assets/plus-Bz25iNHX.js","assets/activity-BjTd1D8q.js","assets/ConfirmDialog-CQUf9GuM.js","assets/text-match-DW3sD-Rt.js","assets/SlideOver-CI7vBtQJ.js","assets/chips-NdkDNqV7.js","assets/AppShell-HiyATJse.css","assets/Board-CcUG5Zqa.js","assets/external-link-Cj-9rta8.js","assets/lazy-issue-panels-GvnRdSfG.js","assets/issues-BjnSNgu-.js","assets/IssuesPage-BHj8y82L.js","assets/arrow-left-wT_Oflhg.js","assets/ChatTerminal-B32Pfuys.js","assets/ChatTerminal-BrP-ENHg.css","assets/BoardPeek-C5c1gItm.js","assets/IssueIntakePanel-CBM21cyc.js","assets/RichEditor-CY2cypY2.js","assets/react-dom-Ccqy9Xi6.js","assets/RichEditor-B4sEOPyN.css","assets/IssuePeek-Ce8Qc6KY.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{i as e}from"./store-BK5yanfN.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-BvHb-c8o.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-CcUG5Zqa.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-BHj8y82L.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-DrrZuT8m.js`).then(e=>e.n),__vite__mapDeps([18,1,2,3,9,19,20,21,10,11,22,17,23])),e(()=>import(`./ChatTerminal-B32Pfuys.js`),__vite__mapDeps([38,1,2,3,9,20,11,39])),e(()=>import(`./BoardPeek-C5c1gItm.js`),__vite__mapDeps([40,1,2,3,9,19,20,21,10,11,22,33,26,14,17])),e(()=>import(`./IssueIntakePanel-CBM21cyc.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-Ce8Qc6KY.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-DovXUI00.js`).then(e=>e.n),__vite__mapDeps([24,1,2,3,4,5,16,17]))])}export{a as i,n,r,i as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./terminal-6BCvBu4_.js";import{t}from"./external-store-CNyRxjsC.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};
|