@cuongtran001/kanna 1.113.0 → 1.114.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{BoardsPage-Dlv3KK2-.js → BoardsPage-CPTyidBi.js} +1 -1
- package/dist/client/assets/{BoardsRoutePage-DkNTmlH3.js → BoardsRoutePage-BTFcohwb.js} +1 -1
- package/dist/client/assets/{ChatPage-B3ViHNAr.js → ChatPage-C49Lc0_c.js} +3 -3
- package/dist/client/assets/{CronJobsPage-DsthEvcE.js → CronJobsPage-BzV3HO6W.js} +1 -1
- package/dist/client/assets/{FilePreviewSheet-D1eS1sic.js → FilePreviewSheet-BO3xyeuI.js} +1 -1
- package/dist/client/assets/{FlowSurface-DMfIPMqn.js → FlowSurface-CWQeaAQx.js} +1 -1
- package/dist/client/assets/{GenUIBlock-CjfJLzgM.js → GenUIBlock-BghpEDmM.js} +2 -2
- package/dist/client/assets/{InboundHandlerFields-Dd-cqL4D.js → InboundHandlerFields-By1U6Va9.js} +1 -1
- package/dist/client/assets/{InboxPage-DwhhX4_U.js → InboxPage-Bt6-BVJj.js} +1 -1
- package/dist/client/assets/{LocalProjectsPage-C6EY4ZlZ.js → LocalProjectsPage-BO2AV3k7.js} +1 -1
- package/dist/client/assets/{PluginPage-B9G9fIFa.js → PluginPage-BQG2y6Gm.js} +1 -1
- package/dist/client/assets/{SettingsPage-CbtxFa4s.js → SettingsPage-f6Pc3AB3.js} +1 -1
- package/dist/client/assets/{StackBoardsRoutePage-S5yJOilY.js → StackBoardsRoutePage-CnHJ_GvQ.js} +1 -1
- package/dist/client/assets/ToolCallMessage-CXiz9Cd0.js +4 -0
- package/dist/client/assets/{VChartSurface-CTVVULnO.js → VChartSurface-DIDbhdpu.js} +1 -1
- package/dist/client/assets/{WebhooksPage-BwQMYrgC.js → WebhooksPage-DCETcbyv.js} +1 -1
- package/dist/client/assets/{WorkflowsPage-BB2RhXgh.js → WorkflowsPage-CHpGr7sM.js} +1 -1
- package/dist/client/assets/{beacon-alias-C_8ij5Mx.js → beacon-alias-cNwP8pVO.js} +3 -3
- package/dist/client/assets/{contextWindow-KeJ1IZK_.js → contextWindow-CYMWAL-c.js} +1 -1
- package/dist/client/assets/{copyFeedbackStore-BdT0JvsV.js → copyFeedbackStore-BzRxJUR1.js} +1 -1
- package/dist/client/assets/{errors-DHHCl9j1.js → errors-DbXjCVKy.js} +1 -1
- package/dist/client/assets/{inboxAutonomy-BwJ6ieTX.js → inboxAutonomy-wDXAoWM1.js} +1 -1
- package/dist/client/assets/{index-DeBbchPA.js → index-DF0pA0gW.js} +3 -3
- package/dist/client/assets/{keybindings-CWrxxXiE.js → keybindings-BW_pL7gi.js} +1 -1
- package/dist/client/assets/{pendingActionsStore-EfXRl-P9.js → pendingActionsStore-CN6bupeH.js} +1 -1
- package/dist/client/assets/runDetached-BuHgIs5d.js +1 -0
- package/dist/client/assets/{searchable-select-CHDAu0GW.js → searchable-select-BkaerVpb.js} +1 -1
- package/dist/client/assets/{select-OfBf0pz3.js → select-CchqKAUi.js} +1 -1
- package/dist/client/assets/{settings-header-button-1aJSBgMY.js → settings-header-button-BU20-TAm.js} +1 -1
- package/dist/client/assets/{textarea-DC3rvgYm.js → textarea-Dy7mQQaV.js} +1 -1
- package/dist/client/assets/{timer.adapter-DeARXNMc.js → timer.adapter-BJQNf9VD.js} +1 -1
- package/dist/client/assets/{tools-BFWoj5em.js → tools-Co3y9epg.js} +1 -1
- package/dist/client/assets/{useAppGlobalState-BiG8NzNB.js → useAppGlobalState-CjCQ7Ehb.js} +1 -1
- package/dist/client/assets/{useProviderCatalog-DIMs7tsR.js → useProviderCatalog--7VJaTAj.js} +1 -1
- package/dist/client/index.html +15 -15
- package/package.json +1 -1
- package/src/shared/app-settings-types.schema.ts +6 -6
- package/src/shared/app-settings-types.ts +3 -3
- package/src/shared/commands/commands.test.ts +9 -0
- package/src/shared/tool-call-types.schema.ts +1 -1
- package/src/shared/tool-call-types.ts +2 -1
- package/src/shared/tools.ts +1 -1
- package/dist/client/assets/ToolCallMessage-BcKKlv3Z.js +0 -4
- package/dist/client/assets/runDetached-CRthtTXg.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BCiCTKAo.js";import{t}from"./react-BWPDF9mI.js";import{t as n}from"./jsx-runtime-BB9-612F.js";import{t as r}from"./utils-gw0dpHSZ.js";import{d as i,i as a,l as o,n as s,r as c,t as l}from"./pendingActionsStore-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BCiCTKAo.js";import{t}from"./react-BWPDF9mI.js";import{t as n}from"./jsx-runtime-BB9-612F.js";import{t as r}from"./utils-gw0dpHSZ.js";import{d as i,i as a,l as o,n as s,r as c,t as l}from"./pendingActionsStore-CN6bupeH.js";import{t as u}from"./plus-k8ypzgh4.js";import{n as d,t as f}from"./log-8K5PdGJC.js";import{t as p}from"./input-Bkp2JE9C.js";import{c as m,r as h}from"./errors-DbXjCVKy.js";import{Cn as g,_t as _,vt as v,yt as y}from"./index-DF0pA0gW.js";import{_ as b,g as x,h as S,v as C}from"./ChatPage-C49Lc0_c.js";var w=e(t(),1),T=[],E=d()(e=>({templates:T,templatesStatus:`loading`,openMenuId:null,picking:!1,renamingId:null,error:null,setTemplates:t=>e({templates:Array.isArray(t)?t:[],templatesStatus:`ready`}),beginTemplatesLoad:()=>e({templatesStatus:`loading`}),failTemplatesLoad:()=>e({templatesStatus:`failed`}),openMenu:t=>e({openMenuId:t}),closeMenu:()=>e({openMenuId:null}),openPicker:()=>e({picking:!0,error:null}),closePicker:()=>e({picking:!1}),startRename:t=>e({renamingId:t,picking:!1,openMenuId:null}),stopRename:()=>e({renamingId:null}),setError:t=>e({error:t})}));function D(e){return e.templates}var O=e(n(),1),k=[`board.update`,`board.duplicate`,`board.saveAsTemplate`,`board.archive`];function A(e){return a(t=>k.some(n=>t.inFlight[l(n,e)]===!0))}function j({ownerKind:e,ownerId:t,ownerName:n,socket:r,onOpenBoard:i}){let a=x(e,t),d=C(b(a)),p=E(D),g=E(e=>e.picking),_=E(e=>e.renamingId),v=E(e=>e.error),y=E(e=>e.templatesStatus),S=l(`board.create`,a),T=c(S),{openPicker:k,closePicker:A,startRename:j,stopRename:N,setError:P,setTemplates:I}=E.getState();(0,w.useEffect)(()=>r.subscribe({type:`boards`,ownerKind:e,ownerId:t},e=>{C.getState().setBoards(x(e.ownerKind,e.ownerId),e.boards)}),[e,t,r]),(0,w.useEffect)(()=>{let e=!1,t=E.getState();return t.templatesStatus!==`ready`&&t.beginTemplatesLoad(),r.command({type:`board.templates.list`}).then(t=>{e||I(t)},h(t=>{f.error(m,`board.templates.list failed`,t),e||E.getState().failTemplatesLoad()})),()=>{e=!0}},[r,I]);let L=(0,w.useCallback)(async e=>{try{return await r.command(e),P(null),!0}catch(e){return P(e instanceof Error?e.message:`That did not work.`),!1}},[r,P]),R=(0,w.useCallback)(n=>{s(S,async()=>{await L({type:`board.create`,ownerKind:e,ownerId:t,title:n?n.name:`Untitled board`,templateId:n?.id??null})&&A()})},[A,S,e,t,L]),z=(0,w.useCallback)((e,t)=>{N();let n=t.trim();n!==``&&s(l(`board.update`,e),()=>L({type:`board.update`,boardId:e,title:n}))},[L,N]),B=g||d.length===0;return(0,O.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col bg-background`,children:[(0,O.jsxs)(`header`,{className:`flex items-end justify-between gap-4 border-b border-border px-6 py-4`,children:[(0,O.jsxs)(`div`,{className:`min-w-0`,children:[(0,O.jsx)(`h1`,{className:`text-lg font-medium leading-tight tracking-[-0.01em] text-foreground`,children:`Boards`}),(0,O.jsxs)(`p`,{className:`truncate text-13 text-muted-foreground`,children:[n,d.length>0?(0,O.jsxs)(`span`,{className:`tabular-nums`,children:[` · `,d.length,` boards`]}):null]})]}),d.length>0?(0,O.jsxs)(o,{size:`sm`,onClick:k,pending:T,children:[(0,O.jsx)(u,{className:`size-3.5`}),`New board`]}):null]}),v?(0,O.jsx)(`p`,{className:`border-b border-border px-6 py-2 text-13 text-destructive-text`,children:v}):null,(0,O.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto`,children:[B?(0,O.jsx)(F,{templates:p,templatesStatus:y,creating:T,firstRun:d.length===0,onPick:R,onCancel:A}):null,d.length>0?(0,O.jsx)(`ul`,{className:`px-4 py-1`,children:d.map(e=>(0,O.jsx)(M,{board:e,renaming:_===e.id,onOpen:i,onStartRename:j,onRename:z,onCancelRename:N,onCommand:L},e.id))}):null]})]})}function M({board:e,renaming:t,onOpen:n,onStartRename:r,onRename:i,onCancelRename:a,onCommand:o}){let s=A(e.id),c=(0,w.useCallback)(()=>n(e.id),[e.id,n]),l=(0,w.useCallback)(t=>{t.key===`Enter`&&i(e.id,t.currentTarget.value),t.key===`Escape`&&a()},[e.id,a,i]),u=(0,w.useCallback)(t=>i(e.id,t.currentTarget.value),[e.id,i]);return(0,O.jsxs)(`li`,{"aria-busy":s||void 0,className:`group grid grid-cols-[1fr_auto_auto] items-center gap-5 border-b border-border px-3 py-3 last:border-b-0 hover:bg-secondary`,children:[(0,O.jsx)(`div`,{className:`min-w-0`,children:t?(0,O.jsx)(p,{autoFocus:!0,defaultValue:e.title,onKeyDown:l,onBlur:u,className:`h-7 max-w-sm`,"aria-label":`Board name`}):(0,O.jsxs)(`button`,{type:`button`,onClick:c,className:`block w-full text-left`,children:[(0,O.jsx)(`span`,{className:`block truncate text-15 font-semibold tracking-[-0.005em] text-foreground`,children:e.title}),e.description?(0,O.jsx)(`span`,{className:`mt-0.5 block truncate text-13 text-muted-foreground`,children:e.description}):null]})}),(0,O.jsxs)(`div`,{className:`flex items-center gap-4 text-xs text-muted-foreground`,children:[(0,O.jsxs)(`span`,{children:[(0,O.jsx)(`b`,{className:`font-medium tabular-nums text-foreground`,children:e.columnCount}),` columns`]}),(0,O.jsxs)(`span`,{children:[(0,O.jsx)(`b`,{className:`font-medium tabular-nums text-foreground`,children:e.cardCount}),` cards`]})]}),(0,O.jsx)(N,{board:e,pending:s,onStartRename:r,onCommand:o})]})}function N({board:e,pending:t,onStartRename:n,onCommand:a}){let o=E(t=>t.openMenuId===e.id),{openMenu:c,closeMenu:u}=E.getState(),d=(0,w.useCallback)(t=>{t?c(e.id):u()},[e.id,u,c]),f=(0,w.useCallback)(()=>{u(),n(e.id)},[e.id,u,n]),p=(0,w.useCallback)(()=>{u(),s(l(`board.duplicate`,e.id),()=>a({type:`board.duplicate`,boardId:e.id,title:`${e.title} copy`}))},[e.id,e.title,u,a]),m=(0,w.useCallback)(()=>{u(),s(l(`board.saveAsTemplate`,e.id),()=>a({type:`board.saveAsTemplate`,boardId:e.id,name:e.title}))},[e.id,e.title,u,a]),h=(0,w.useCallback)(()=>{u(),s(l(`board.archive`,e.id),()=>a({type:`board.archive`,boardId:e.id}))},[e.id,u,a]);return(0,O.jsxs)(_,{open:o,onOpenChange:d,children:[(0,O.jsx)(y,{asChild:!0,children:(0,O.jsx)(`button`,{type:`button`,"aria-label":`Actions for ${e.title}`,disabled:t,"aria-busy":t||void 0,className:r(`rounded-md px-1.5 py-1 text-muted-foreground opacity-0 transition-opacity group-hover:opacity-100 data-[state=open]:opacity-100`,t&&`opacity-100`),children:t?(0,O.jsx)(i,{className:`size-4`}):(0,O.jsx)(g,{className:`size-4`})})}),(0,O.jsxs)(v,{align:`end`,className:`w-56 p-1`,children:[(0,O.jsx)(P,{onClick:f,children:`Rename`}),(0,O.jsx)(P,{onClick:p,children:`Duplicate structure`}),(0,O.jsx)(P,{onClick:m,children:`Save as template`}),(0,O.jsx)(`div`,{className:`my-1 h-px bg-border`}),(0,O.jsx)(P,{onClick:h,tone:`destructive`,children:`Archive`})]})]})}function P({onClick:e,children:t,tone:n}){return(0,O.jsx)(`button`,{type:`button`,onClick:e,className:r(`flex w-full items-center rounded-sm px-2 py-1.5 text-left text-xs font-medium hover:bg-secondary`,n===`destructive`&&`text-destructive-text`),children:t})}function F({templates:e,templatesStatus:t,creating:n,firstRun:r,onPick:a,onCancel:s}){let c=(0,w.useCallback)(()=>a(null),[a]);return(0,O.jsxs)(`div`,{className:`px-6 py-8`,children:[r?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`h2`,{className:`text-15 font-semibold text-foreground`,children:`No boards yet.`}),(0,O.jsx)(`p`,{className:`mt-1 max-w-[58ch] text-sm text-muted-foreground`,children:`A board turns issues into work your agents can pick up. Start from a shape, or import an existing tracker.`})]}):(0,O.jsx)(`h2`,{className:`text-15 font-semibold text-foreground`,children:`Start from a shape`}),(0,O.jsxs)(`div`,{className:`mt-4 max-w-xl rounded-lg border border-border`,"aria-busy":n||void 0,children:[e.map(e=>(0,O.jsx)(I,{template:e,disabled:n,onPick:a},e.id)),t===`loading`?(0,O.jsxs)(`p`,{role:`status`,className:`flex items-center gap-2 px-3.5 py-2.5 text-xs text-muted-foreground`,children:[(0,O.jsx)(i,{}),`Loading templates…`]}):null,t===`failed`?(0,O.jsx)(`p`,{className:`px-3.5 py-2.5 text-xs text-muted-foreground`,children:`Couldn't load templates.`}):null,(0,O.jsx)(`button`,{type:`button`,onClick:c,disabled:n,className:`flex w-full items-center border-t border-border px-3.5 py-2.5 text-left hover:bg-secondary disabled:pointer-events-none disabled:opacity-60`,children:(0,O.jsxs)(`span`,{children:[(0,O.jsx)(`span`,{className:`block text-sm font-medium text-foreground`,children:`Empty board`}),(0,O.jsx)(`span`,{className:`block text-xs text-muted-foreground`,children:`Name your own columns`})]})})]}),n?(0,O.jsxs)(`p`,{role:`status`,className:`mt-3 flex items-center gap-2 text-xs text-muted-foreground`,children:[(0,O.jsx)(i,{}),`Creating board…`]}):null,r?null:(0,O.jsx)(o,{variant:`ghost`,size:`sm`,className:`mt-3`,onClick:s,children:`Cancel`})]})}function I({template:e,disabled:t,onPick:n}){let i=(0,w.useCallback)(()=>n(e),[n,e]),a=e.definition.columns;return(0,O.jsxs)(`button`,{type:`button`,onClick:i,disabled:t,className:`flex w-full items-center gap-3 border-b border-border px-3.5 py-2.5 text-left last:border-b-0 hover:bg-secondary disabled:pointer-events-none disabled:opacity-60`,children:[(0,O.jsxs)(`span`,{className:`min-w-0`,children:[(0,O.jsx)(`span`,{className:`block text-sm font-medium text-foreground`,children:e.name}),(0,O.jsx)(`span`,{className:`block truncate text-xs text-muted-foreground`,children:a.map(e=>e.title).join(` · `)})]}),(0,O.jsx)(`span`,{"aria-hidden":!0,className:`ml-auto flex shrink-0 gap-1`,children:a.map((t,n)=>(0,O.jsx)(`span`,{className:r(`size-1.5 rounded-full`,t.colorToken?S[t.colorToken]:`bg-muted-icon`)},`${e.id}-${String(n)}`))})]})}export{j as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BCiCTKAo.js";import{t}from"./react-BWPDF9mI.js";import{l as n,u as r}from"./chunk-6KYCQHYJ-C0N1h4Su.js";import{t as i}from"./jsx-runtime-BB9-612F.js";import{n as a}from"./pathUtils-BU6_uBbH.js";import{n as o}from"./sidebar-data-BV2p2vi6.js";import{t as s}from"./BoardsPage-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BCiCTKAo.js";import{t}from"./react-BWPDF9mI.js";import{l as n,u as r}from"./chunk-6KYCQHYJ-C0N1h4Su.js";import{t as i}from"./jsx-runtime-BB9-612F.js";import{n as a}from"./pathUtils-BU6_uBbH.js";import{n as o}from"./sidebar-data-BV2p2vi6.js";import{t as s}from"./BoardsPage-CPTyidBi.js";var c=e(t(),1),l=e(i(),1);function u({projectId:e}){let t=r(),i=n(),u=o(t.sidebarData).find(t=>t.groupKey===e),d=u?a(u.localPath):`Project`,f=(0,c.useCallback)(t=>{i(`/boards/${e}/${t}`)},[i,e]);return(0,l.jsx)(`div`,{className:`relative flex min-h-0 min-w-0 flex-1 flex-col`,children:(0,l.jsx)(s,{ownerKind:`project`,ownerId:e,ownerName:d,socket:t.socket,onOpenBoard:f})})}export{u as BoardsRoutePage};
|