@wrongstack/webui 1.0.17 → 1.0.24
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/assets/{AgentRosterView-CV9MW-4M.js → AgentRosterView-Dq8Xa0WK.js} +4 -4
- package/dist/assets/{AnalyticsDashboard-30brLbuz.js → AnalyticsDashboard-DgqJODVI.js} +1 -1
- package/dist/assets/{AudienceMemoryPanel-bKVydKg8.js → AudienceMemoryPanel-BVGdDVTT.js} +1 -1
- package/dist/assets/{ChangesView-Cv6svx-V.js → ChangesView-BVyLENBb.js} +1 -1
- package/dist/assets/ChimeraReviewsView-CTuxzgTC.js +1 -0
- package/dist/assets/ChronicleDashboard-BRP7D6RZ.js +1 -0
- package/dist/assets/{CodeEditor-JlvMbECd.js → CodeEditor-k3z3M0NG.js} +1 -1
- package/dist/assets/{CodeMap-4swT3FIw.js → CodeMap-CvHNQZEF.js} +1 -1
- package/dist/assets/{CronJobsPanel-LSpFBceD.js → CronJobsPanel-GTK038V9.js} +1 -1
- package/dist/assets/{DeadCodeScanPanel-ZRNNV02b.js → DeadCodeScanPanel-DX4OEuyp.js} +1 -1
- package/dist/assets/{DebugDashboard-DlH0QNPX.js → DebugDashboard-CKp3sa_k.js} +1 -1
- package/dist/assets/{DesignGalleryView-yZgVVEg9.js → DesignGalleryView-DVUTYaP6.js} +1 -1
- package/dist/assets/{GoalView-D1gxZre2.js → GoalView-D8G8e8YG.js} +1 -1
- package/dist/assets/KanbanView-BMXGDqGo.js +3 -0
- package/dist/assets/{MailboxDetailView-C4lEW3f8.js → MailboxDetailView-CylnzTVc.js} +1 -1
- package/dist/assets/{MemoryDrawer-arujfDSW.js → MemoryDrawer-DJ0Y98Z8.js} +1 -1
- package/dist/assets/{MemoryManager-BmQYIRhD.js → MemoryManager-DfcsYPUB.js} +1 -1
- package/dist/assets/{ProcessMonitor-ByW-VKsX.js → ProcessMonitor-BnQ3vJtn.js} +1 -1
- package/dist/assets/{PromptJournalView-0cHPeYXa.js → PromptJournalView-D7k8Yh5a.js} +1 -1
- package/dist/assets/{ProviderTestView-CQlwC6HG.js → ProviderTestView-DSd6kkWT.js} +1 -1
- package/dist/assets/{QueuePanel-DJeK7xCh.js → QueuePanel-79KiyZWD.js} +1 -1
- package/dist/assets/{RefreshDebugView-BfOjHodq.js → RefreshDebugView-s6MyGpPq.js} +1 -1
- package/dist/assets/{RepositoryHistoryView-BYPPu5uv.js → RepositoryHistoryView-CWi_Zo3F.js} +1 -1
- package/dist/assets/RequirementIntakeView-D_Ea20fx.js +1 -0
- package/dist/assets/{SageTabs-Bt2kzPNB.js → SageTabs-D6eTg3ix.js} +2 -2
- package/dist/assets/SddFlowGraph-B-ptkFX6.js +1 -0
- package/dist/assets/SddHub-CSVfLGpr.js +2 -0
- package/dist/assets/{SessionInspectView-BasxJ_5x.js → SessionInspectView-NSpj5WEN.js} +1 -1
- package/dist/assets/{SessionList-C9MRSj_-.js → SessionList-BYRCs1AK.js} +1 -1
- package/dist/assets/{SessionsDashboard-BK95Zp6f.js → SessionsDashboard-mF4PzdKY.js} +1 -1
- package/dist/assets/{SetupScreen-rPKsBa9Z.js → SetupScreen-BUZeJSZi.js} +1 -1
- package/dist/assets/SkillDetailView-B9BFyB1i.js +3 -0
- package/dist/assets/{TechStackView-xVR5dsSn.js → TechStackView-CXJilX0M.js} +2 -2
- package/dist/assets/{TerminalPanel-CBEZTuvV.js → TerminalPanel-CAXevSAa.js} +1 -1
- package/dist/assets/{activity-CInOo57V.js → activity-B3wutYIE.js} +4 -4
- package/dist/assets/activity-Be03cc7g.js +10 -0
- package/dist/assets/activity-CiYZ3y4e.js +10 -0
- package/dist/assets/activity-CmIA2MhR.js +10 -0
- package/dist/assets/activity-Cp5GhldB.js +10 -0
- package/dist/assets/activity-DFCf7l5d.js +10 -0
- package/dist/assets/activity-EbNUY7Ci.js +10 -0
- package/dist/assets/{chat-store-BDVZSmod.js → chat-store-C7InoWAO.js} +1 -1
- package/dist/assets/common-Bjl7V12m.js +1 -0
- package/dist/assets/common-BtyQBZBN.js +1 -0
- package/dist/assets/common-D0QL7rwb.js +1 -0
- package/dist/assets/common-DJRPtYAt.js +1 -0
- package/dist/assets/common-DPPTV3yw.js +1 -0
- package/dist/assets/common-DvjdaRhB.js +1 -0
- package/dist/assets/common-opV6EoLd.js +1 -0
- package/dist/assets/config-store-BbL0WxLE.js +21 -0
- package/dist/assets/{i18n-CvJB4U4z.js → i18n-Dv97urcO.js} +3 -3
- package/dist/assets/index-CON0Nbm4.css +1 -0
- package/dist/assets/index-DX6tHUzs.js +177 -0
- package/dist/assets/roster-ws-Cv_PHlEV.js +1 -0
- package/dist/assets/settings-BCvuzOJ6.js +1 -0
- package/dist/assets/settings-DMPKd-4K.js +1 -0
- package/dist/assets/settings-DxQ2452f.js +1 -0
- package/dist/assets/settings-Dz3StaVx.js +1 -0
- package/dist/assets/settings-EBW1mlXc.js +1 -0
- package/dist/assets/settings-Er2LHp9d.js +1 -0
- package/dist/assets/settings-EzznCDaX.js +1 -0
- package/dist/assets/stores-DXn5tdr7.js +7 -0
- package/dist/assets/ui-store-DxDwFHNK.js +1 -0
- package/dist/assets/{view-navigation-DTs4cSQ6.js → view-navigation-CpIPxhZp.js} +1 -1
- package/dist/components/ChatInput/skill-mention-picker.d.ts +10 -0
- package/dist/components/CustomRosterPanel.d.ts +0 -1
- package/dist/components/KanbanColumnView.d.ts +13 -0
- package/dist/components/OfficeMapCanvas.d.ts +0 -7
- package/dist/components/SettingsPanel/BrainSection.d.ts +1 -1
- package/dist/components/SettingsPanel/JevSection.d.ts +4 -0
- package/dist/components/SettingsPanel/OAuthLoginSection.d.ts +2 -0
- package/dist/components/SettingsPanel/ProviderSection.d.ts +5 -5
- package/dist/components/SettingsPanel/brain-section-options.d.ts +1 -1
- package/dist/components/SettingsPanel/contracts.d.ts +1 -0
- package/dist/components/SettingsPanel/official-servers.d.ts +1 -0
- package/dist/components/SettingsPanel/use-brain-section.d.ts +28 -0
- package/dist/components/SkillDetailView.d.ts +1 -1
- package/dist/components/chronicle-event-detail.d.ts +51 -0
- package/dist/components/context-dashboard-sections.d.ts +79 -0
- package/dist/components/use-office-map-canvas.d.ts +42 -0
- package/dist/components/use-skill-detail.d.ts +177 -0
- package/dist/components/vector-memory-panel/model.d.ts +9 -0
- package/dist/hooks/useProviderModels.d.ts +2 -0
- package/dist/hooks/useWebSocket.d.ts +3 -3
- package/dist/hooks/ws-handlers/brain-handlers.d.ts +18 -0
- package/dist/hooks/ws-handlers/goal-handlers.d.ts +7 -0
- package/dist/hooks/ws-handlers/misc-handlers.d.ts +2 -21
- package/dist/index.html +9 -9
- package/dist/index.js +15586 -12891
- package/dist/lib/auth-operation.d.ts +5 -0
- package/dist/lib/kanban-cleaner.d.ts +1 -1
- package/dist/lib/sdd-theme.d.ts +2 -2
- package/dist/lib/ws-client-actions.d.ts +2 -0
- package/dist/lib/ws-client-domain-methods.d.ts +2 -2
- package/dist/lib/ws-client-echo.d.ts +1 -1
- package/dist/lib/ws-client-session-methods.d.ts +1 -1
- package/dist/lib/ws-client.d.ts +0 -3
- package/dist/stores/council-log-store.d.ts +4 -0
- package/dist/stores/ui-store-types.d.ts +1 -1
- package/dist/types/client-message.d.ts +13 -0
- package/dist/types/jev.d.ts +62 -0
- package/dist/types/runtime.d.ts +5 -3
- package/dist/types/server-message-system.d.ts +4 -0
- package/dist/types/system.d.ts +2 -0
- package/package.json +10 -10
- package/dist/assets/ChimeraReviewsView-DLTrEJDS.js +0 -1
- package/dist/assets/ChronicleDashboard-DhgWbaXj.js +0 -1
- package/dist/assets/KanbanView-Bh0T3p3J.js +0 -3
- package/dist/assets/RequirementIntakeView-CEwUB7VD.js +0 -1
- package/dist/assets/SddFlowGraph-CZSwcAtS.js +0 -1
- package/dist/assets/SddHub-Cc79Ob7A.js +0 -2
- package/dist/assets/SkillDetailView-LkJyIBPb.js +0 -3
- package/dist/assets/activity-CDHIWIPJ.js +0 -10
- package/dist/assets/activity-D6XfckyA.js +0 -10
- package/dist/assets/activity-DapbBEf6.js +0 -10
- package/dist/assets/activity-E8vCWdG2.js +0 -10
- package/dist/assets/activity-e8OIpNGJ.js +0 -10
- package/dist/assets/activity-oTJsNfZu.js +0 -10
- package/dist/assets/common-BXosnbIt.js +0 -1
- package/dist/assets/common-CzfPgMjC.js +0 -1
- package/dist/assets/common-DDDPz7Dv.js +0 -1
- package/dist/assets/common-DYx9oSoC.js +0 -1
- package/dist/assets/common-DZ-05t4z.js +0 -1
- package/dist/assets/common-MjX8fcng.js +0 -1
- package/dist/assets/common-ipsuLC3n.js +0 -1
- package/dist/assets/config-store-mWuYCild.js +0 -22
- package/dist/assets/index-DLjaZSCH.js +0 -177
- package/dist/assets/index-DiX5j910.css +0 -1
- package/dist/assets/roster-ws-BRANim2Y.js +0 -1
- package/dist/assets/settings-B5Jy-ObI.js +0 -1
- package/dist/assets/settings-BXTJJ4n-.js +0 -1
- package/dist/assets/settings-BcXAVecM.js +0 -1
- package/dist/assets/settings-ByPfZHGm.js +0 -1
- package/dist/assets/settings-CCe4iHcn.js +0 -1
- package/dist/assets/settings-D2GLiaDO.js +0 -1
- package/dist/assets/settings-gB9nKL3f.js +0 -1
- package/dist/assets/stores-D5loyGLL.js +0 -7
- package/dist/assets/ui-store-DC3mkswy.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{K as t,t as n,tt as r}from"./config-store-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{K as t,t as n,tt as r}from"./config-store-BbL0WxLE.js";import{i,t as a}from"./react-core-wiHys0m2.js";import{In as o,Mt as s,Qt as c,ln as l,qn as u,wo as d,xo as f}from"./vendor-V3ydTHqN.js";import"./i18n-Dv97urcO.js";import{n as p,t as m}from"./utils-CKsqCaP8.js";import{n as h}from"./ui-store-DxDwFHNK.js";import"./stores-DXn5tdr7.js";import{w as g}from"./fonts-DRGbd-AM.js";import{m as _}from"./index-DX6tHUzs.js";import{n as v,t as y}from"./xterm-DA3G7037.js";var b=e(i(),1),x=`wrongstack.terminalDockHeight`,S=260;function C(e){let t=typeof window>`u`?640:Math.max(140,Math.min(640,Math.floor(window.innerHeight*.55),window.innerHeight-S));return Math.min(Math.max(Math.round(e),140),t)}var w=a(),T={background:`#1e1e2e`,foreground:`#cdd6f4`,cursor:`#f5e0dc`,selectionBackground:`#585b70`,black:`#45475a`,red:`#f38ba8`,green:`#a6e3a1`,yellow:`#f9e2af`,blue:`#89b4fa`,magenta:`#f5c2e7`,cyan:`#94e2d5`,white:`#bac2de`,brightBlack:`#585b70`,brightRed:`#f38ba8`,brightGreen:`#a6e3a1`,brightYellow:`#f9e2af`,brightBlue:`#89b4fa`,brightMagenta:`#f5c2e7`,brightCyan:`#94e2d5`,brightWhite:`#a6adc8`},E=8;function D(e=!1){return typeof window>`u`?300:C(window.innerHeight*(e?.32:.4))}function O(e=!1){if(typeof window>`u`)return D(e);try{let t=window.localStorage.getItem(x),n=t?Number.parseInt(t,10):NaN;return Number.isFinite(n)?C(n):D(e)}catch{return D(e)}}function k(e){try{window.localStorage.setItem(x,String(C(e)))}catch{}}function A(){return p()}function j(e){return{id:A(),name:`Terminal ${e}`,status:`starting`}}function M({desktopShell:e=!1,onClose:t}){let n=(0,b.useRef)(null),{t:i}=f(),a=(0,b.useRef)(1),[d,p]=(0,b.useState)(()=>O(e)),[g,_]=(0,b.useState)(()=>[j(1)]),[v,y]=(0,b.useState)(()=>g[0]?.id??``),x=h(e=>e.terminalCreateNonce),S=(0,b.useRef)(x),T=r(e=>e.projectName),D=r(e=>e.cwd);(0,b.useEffect)(()=>{let e=()=>{p(e=>{let t=C(e);return k(t),t})};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]);let M=e=>{e.preventDefault(),n.current?.();let t=e.clientY,r=d,i=document.body.style.cursor,a=document.body.style.userSelect;document.body.style.cursor=`ns-resize`,document.body.style.userSelect=`none`;let o=e=>{let n=C(r+t-e.clientY);p(n),k(n)},s=()=>{document.body.style.cursor=i,document.body.style.userSelect=a,window.removeEventListener(`pointermove`,o),window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,s),n.current===s&&(n.current=null)};n.current=s,window.addEventListener(`pointermove`,o),window.addEventListener(`pointerup`,s,{once:!0}),window.addEventListener(`pointercancel`,s,{once:!0})};(0,b.useEffect)(()=>()=>n.current?.(),[]);let P=()=>{if(g.length>=E)return;a.current+=1;let e=j(a.current);_([...g,e]),y(e.id)};(0,b.useEffect)(()=>{x!==S.current&&(S.current=x,P())},[x]);let F=e=>{let n=g.findIndex(t=>t.id===e);if(n===-1)return;let r=g.filter(t=>t.id!==e);if(_(r),r.length===0){queueMicrotask(t);return}v===e&&y(r[Math.max(0,n-1)]?.id??r[0]?.id??``)},I=e=>{let t=A();g.some(t=>t.id===e)&&(_(g.map(n=>n.id===e?{...n,id:t,status:`starting`,exitCode:void 0}:n)),y(t))},L=()=>{_([]),y(``),queueMicrotask(t)},R=(e,t)=>{_(n=>n.map(n=>n.id===e?{...n,...t}:n))},z=g.find(e=>e.id===v)??g[0]??null;return(0,w.jsxs)(`div`,{"data-terminal-dock":!0,style:{height:d},"data-shell":e?`desktop`:`browser`,className:m(`z-30 flex min-h-0 shrink-0 flex-col border-t border-border/70 bg-card shadow-2xl`,e&&`ws-terminal-desktop`),children:[(0,w.jsx)(`hr`,{"aria-orientation":`horizontal`,tabIndex:0,title:i(`activity:terminal.resize`),onPointerDown:M,className:`h-1.5 cursor-ns-resize bg-muted/70 transition-colors hover:bg-primary/35 border-0`}),(0,w.jsxs)(`div`,{className:m(`flex min-w-0 items-center justify-between gap-3 border-b border-border/70 bg-card/85`,e?`px-2 py-1`:`px-3 py-1.5`),children:[(0,w.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2 text-xs text-foreground`,children:[(0,w.jsx)(l,{className:`h-3.5 w-3.5 shrink-0 text-primary`}),(0,w.jsx)(`span`,{className:`font-medium`,children:i(e?`activity:terminal.labelSingular`:`activity:terminal.labelPlural`)}),(0,w.jsx)(`span`,{className:`min-w-0 truncate text-muted-foreground`,children:T||D||i(`activity:terminal.projectShell`)})]}),(0,w.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,w.jsx)(`button`,{type:`button`,onClick:P,disabled:g.length>=E,title:g.length>=E?i(`activity:terminal.maxTerminals`,{count:E}):i(`activity:terminal.newTerminal`),className:`inline-flex h-6 w-6 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:cursor-not-allowed disabled:opacity-40`,children:(0,w.jsx)(u,{className:`h-4 w-4`})}),(0,w.jsx)(`button`,{type:`button`,onClick:()=>z&&I(z.id),disabled:!z,title:i(`activity:terminal.restart`),className:`inline-flex h-6 w-6 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:cursor-not-allowed disabled:opacity-40`,children:(0,w.jsx)(o,{className:`h-3.5 w-3.5`})}),(0,w.jsx)(`button`,{type:`button`,onClick:L,disabled:g.length===0,title:i(`activity:terminal.closeAll`),className:`inline-flex h-6 w-6 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:cursor-not-allowed disabled:opacity-40`,children:(0,w.jsx)(c,{className:`h-3.5 w-3.5`})}),(0,w.jsx)(`button`,{type:`button`,onClick:t,title:i(`activity:terminal.closeDock`),className:`inline-flex h-6 w-6 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-accent hover:text-foreground`,children:(0,w.jsx)(s,{className:`h-4 w-4`})})]})]}),(0,w.jsx)(`div`,{className:m(`flex min-w-0 items-center gap-1 overflow-x-auto border-b border-border/70 bg-[hsl(var(--surface-2)/0.45)]`,e?`px-1.5 py-0.5`:`px-2 py-1`),children:g.map(t=>(0,w.jsxs)(`div`,{className:m(`group inline-flex items-center rounded border text-xs transition-colors`,e?`h-6 min-w-[92px] max-w-[148px]`:`h-7 min-w-[112px] max-w-[180px]`,v===t.id?`border-primary/35 bg-primary/10 text-primary`:`border-transparent bg-transparent text-muted-foreground hover:bg-accent hover:text-foreground`),children:[(0,w.jsxs)(`button`,{type:`button`,onClick:()=>y(t.id),title:t.status===`exited`?`${t.name} exited`:t.name,className:`inline-flex min-w-0 flex-1 items-center gap-2 px-2 text-left`,children:[(0,w.jsx)(`span`,{className:m(`h-1.5 w-1.5 shrink-0 rounded-full`,t.status===`running`&&`bg-success`,t.status===`starting`&&`bg-primary`,t.status===`exited`&&`bg-destructive`)}),(0,w.jsxs)(`span`,{className:`min-w-0 flex-1 truncate`,children:[t.name,t.status===`exited`&&typeof t.exitCode==`number`?` (${t.exitCode})`:``]})]}),(0,w.jsx)(`button`,{type:`button`,onClick:e=>{e.stopPropagation(),F(t.id)},className:`mr-1 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded text-muted-foreground opacity-70 hover:bg-accent hover:text-foreground hover:opacity-100`,title:i(`activity:terminal.closeTab`,{name:t.name}),children:(0,w.jsx)(s,{className:`h-3 w-3`})})]},t.id))}),D&&!e&&(0,w.jsx)(`div`,{className:`min-w-0 truncate border-b border-border/60 bg-muted/30 px-3 py-1 text-[11px] font-mono text-muted-foreground`,children:D}),(0,w.jsx)(`div`,{className:`relative min-h-0 min-w-0 flex-1 overflow-hidden`,children:g.map(e=>(0,w.jsx)(N,{id:e.id,active:e.id===v,onRunning:()=>R(e.id,{status:`running`}),onExit:t=>R(e.id,{status:`exited`,exitCode:t})},e.id))})]})}function N({id:e,active:r,onRunning:i,onExit:a}){let o=(0,b.useRef)(null),s=(0,b.useRef)(null),c=(0,b.useRef)(null),l=(0,b.useRef)(i),u=(0,b.useRef)(a),f=n(e=>e.wsConnected),{terminal:p}=_();return(0,b.useEffect)(()=>{l.current=i,u.current=a},[a,i]),(0,b.useEffect)(()=>{let e=s.current;if(e){e.options.fontFamily===p.fontFamily&&(e.options.fontFamily=`monospace`),e.options.fontFamily=p.fontFamily,e.options.fontSize=p.fontSize,e.options.lineHeight=p.lineHeight;try{c.current?.fit()}catch{}}},[p]),(0,b.useEffect)(()=>{let r=o.current;if(!r)return;let i=new y({...g(n.getState().fonts),cursorBlink:!0,theme:T,scrollback:5e3}),a=new v;s.current=i,c.current=a,i.loadAddon(a),i.open(r);try{a.fit()}catch{}let f=t(n.getState().wsUrl);f.send({type:`terminal.create`,payload:{id:e,cols:i.cols,rows:i.rows}});let p=!1,m=f.on(`terminal.output`,t=>{t.type===`terminal.output`&&t.payload.id===e&&(p||(p=!0,l.current()),i.write(t.payload.data))}),h=f.on(`terminal.exit`,t=>{t.type===`terminal.exit`&&t.payload.id===e&&(i.write(`\r\n\x1b[2m${d.t(`activity:terminal.processExited`,{code:t.payload.exitCode})}\x1b[0m\r\n`),u.current(t.payload.exitCode))}),_=i.onData(t=>{f.send({type:`terminal.input`,payload:{id:e,data:t}})}),b=new ResizeObserver(()=>{if(r.offsetParent)try{a.fit(),f.send({type:`terminal.resize`,payload:{id:e,cols:i.cols,rows:i.rows}})}catch{}});return b.observe(r),()=>{m(),h(),_.dispose(),b.disconnect(),f.send({type:`terminal.close`,payload:{id:e}}),i.dispose(),s.current=null,c.current=null}},[e,f]),(0,b.useEffect)(()=>{r&&window.requestAnimationFrame(()=>{try{c.current?.fit();let r=s.current;r&&(t(n.getState().wsUrl).send({type:`terminal.resize`,payload:{id:e,cols:r.cols,rows:r.rows}}),r.focus())}catch{}})},[r,e]),(0,w.jsx)(`div`,{ref:o,className:m(`absolute inset-0 min-h-0 min-w-0 overflow-hidden px-2 py-1`,r?`block`:`hidden`)})}export{M as TerminalPanel};
|