maestro-flow 0.4.7 → 0.4.9
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/.claude/commands/maestro-ralph.md +548 -377
- package/.claude/commands/maestro.md +220 -191
- package/.codex/skills/maestro/SKILL.md +495 -462
- package/.codex/skills/maestro-ralph/SKILL.md +491 -339
- package/dashboard/dist/assets/{ArtifactsPage-CVh0Z2I2.js → ArtifactsPage-BLvAqQlQ.js} +1 -1
- package/dashboard/dist/assets/{ChatInput-CBI3qHQQ.js → ChatInput-DU9YGZKX.js} +1 -1
- package/dashboard/dist/assets/{ChatPage-BjJ9CYox.js → ChatPage-DYHfheXC.js} +1 -1
- package/dashboard/dist/assets/{CollabPage-CprGGO9y.js → CollabPage-CSlmvEa-.js} +1 -1
- package/dashboard/dist/assets/{ExecutionPanel-CClxD7cH.js → ExecutionPanel-RYWf0dYC.js} +1 -1
- package/dashboard/dist/assets/{KanbanPage-copqjdPg.js → KanbanPage-N55Iv0-X.js} +1 -1
- package/dashboard/dist/assets/{MaestroCoordinatePage-CioZjQ9N.js → MaestroCoordinatePage-BxwZ6yy5.js} +1 -1
- package/dashboard/dist/assets/{MarkdownRenderer-CtUhoxCT.js → MarkdownRenderer-ZGtOY7Ti.js} +1 -1
- package/dashboard/dist/assets/{McpPage-BcPPcJpr.js → McpPage-Im6s4pGR.js} +1 -1
- package/dashboard/dist/assets/{MeetingRoomPage-BgmAKxU-.js → MeetingRoomPage-CxHRn1xx.js} +1 -1
- package/dashboard/dist/assets/{OutputPanel-DgT3gMyp.js → OutputPanel-DaL8c1i5.js} +1 -1
- package/dashboard/dist/assets/{ProblemsPanel-BmG7rxoG.js → ProblemsPanel-BQTd5812.js} +1 -1
- package/dashboard/dist/assets/{RequirementBoardPage-k8YoeQ0r.js → RequirementBoardPage-22y9u1qh.js} +1 -1
- package/dashboard/dist/assets/{RequirementPage-Da2354px.js → RequirementPage-_mO743Xm.js} +1 -1
- package/dashboard/dist/assets/{RoomsPage-BtqDiYaU.js → RoomsPage-CExTbOGr.js} +1 -1
- package/dashboard/dist/assets/{SpecsPage-ByPVH_M3.js → SpecsPage-gr4KX51-.js} +1 -1
- package/dashboard/dist/assets/{TeamsPage-sFDLN30L.js → TeamsPage-BxEXLb5g.js} +1 -1
- package/dashboard/dist/assets/{TreeBrowser-oEx8YJXV.js → TreeBrowser-CVtPF5C9.js} +1 -1
- package/dashboard/dist/assets/{WorkflowPage-JrX7CVHh.js → WorkflowPage-BoN18Lhs.js} +1 -1
- package/dashboard/dist/assets/{arrow-left-DYvgSdIH.js → arrow-left-C5ROg97G.js} +1 -1
- package/dashboard/dist/assets/{check-jcgYBWVR.js → check-Bs8PM0tQ.js} +1 -1
- package/dashboard/dist/assets/{chevron-right-DvZ5sMOg.js → chevron-right-SmErd_1F.js} +1 -1
- package/dashboard/dist/assets/{circle-DYT-zoRZ.js → circle-CjpslL_D.js} +1 -1
- package/dashboard/dist/assets/{circle-alert-Bfbv3gt4.js → circle-alert-CuzAg2fd.js} +1 -1
- package/dashboard/dist/assets/{circle-check-D82WnpbI.js → circle-check-BIkDU5D5.js} +1 -1
- package/dashboard/dist/assets/{circle-check-big-CPVD1GKF.js → circle-check-big-CYctV8bK.js} +1 -1
- package/dashboard/dist/assets/{code-B3bKFGI4.js → code-DoB7rfxt.js} +1 -1
- package/dashboard/dist/assets/{columns-3-BeMAQCix.js → columns-3-Ch5KIyRa.js} +1 -1
- package/dashboard/dist/assets/{download-BCtpoWYB.js → download-DadtG2Nr.js} +1 -1
- package/dashboard/dist/assets/{folder-CTj6SNNu.js → folder-B8ODoZfb.js} +1 -1
- package/dashboard/dist/assets/{index-BxR_3IbJ.js → index-BL4h1OKY.js} +1 -1
- package/dashboard/dist/assets/{index-DpcPd-UG.js → index-DQIlX2w_.js} +4 -4
- package/dashboard/dist/assets/{index-CWBJLu42.js → index-DaFwSmVJ.js} +10 -10
- package/dashboard/dist/assets/{list-BMv8pIQn.js → list-CI-XIPZh.js} +1 -1
- package/dashboard/dist/assets/{loader-DdM4VOgF.js → loader-DpdMoQvh.js} +1 -1
- package/dashboard/dist/assets/{minus-D15s2E__.js → minus-BVbfXGrC.js} +1 -1
- package/dashboard/dist/assets/{pen-line-DO6o4xWz.js → pen-line-CR8GaHt-.js} +1 -1
- package/dashboard/dist/assets/{pencil-qGxg9jOe.js → pencil-I7GE0y29.js} +1 -1
- package/dashboard/dist/assets/{proxy-DOffTzwA.js → proxy-CcYyZZWI.js} +1 -1
- package/dashboard/dist/assets/{refresh-cw-C9UNdLCy.js → refresh-cw-BG9V_T4R.js} +1 -1
- package/dashboard/dist/assets/{rows-2-CifAA5SL.js → rows-2-DP6NjQFk.js} +1 -1
- package/dashboard/dist/assets/{search-pe7pU1YN.js → search-b78eLlw2.js} +1 -1
- package/dashboard/dist/assets/{shallow-r7YynQYA.js → shallow-CJEesgtu.js} +1 -1
- package/dashboard/dist/assets/{table-Bh772iIw.js → table-B_lk-a1d.js} +1 -1
- package/dashboard/dist/assets/{team-types-C_HqX2p2.js → team-types-Se7f9LfJ.js} +1 -1
- package/dashboard/dist/assets/{terminal-EpmtGBlw.js → terminal-DXx4tvzq.js} +1 -1
- package/dashboard/dist/assets/{trash-2-Xen46iNQ.js → trash-2-CVh9mnRj.js} +1 -1
- package/dashboard/dist/assets/{users-BLueDPxF.js → users-Da9zGME5.js} +1 -1
- package/dashboard/dist/assets/{zap-DsQCPF61.js → zap-C0zaC7gJ.js} +1 -1
- package/dashboard/dist/index.html +1 -1
- package/dashboard/dist-server/dashboard/src/server/agents/adapter-factory.js +4 -0
- package/dashboard/dist-server/dashboard/src/server/agents/adapter-factory.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/agents/agy-adapter.d.ts +39 -0
- package/dashboard/dist-server/dashboard/src/server/agents/agy-adapter.js +423 -0
- package/dashboard/dist-server/dashboard/src/server/agents/agy-adapter.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js +25 -33
- package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.test.js +9 -3
- package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.test.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/agents/codex-app-server-adapter.js +5 -2
- package/dashboard/dist-server/dashboard/src/server/agents/codex-app-server-adapter.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.d.ts +6 -0
- package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js +129 -8
- package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/agents/gemini-a2a-adapter.js +6 -3
- package/dashboard/dist-server/dashboard/src/server/agents/gemini-a2a-adapter.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/agents/gemini-a2a-adapter.test.js +7 -1
- package/dashboard/dist-server/dashboard/src/server/agents/gemini-a2a-adapter.test.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/agents/opencode-adapter.d.ts +2 -0
- package/dashboard/dist-server/dashboard/src/server/agents/opencode-adapter.js +40 -15
- package/dashboard/dist-server/dashboard/src/server/agents/opencode-adapter.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/agents/process-tree-kill.d.ts +1 -0
- package/dashboard/dist-server/dashboard/src/server/agents/process-tree-kill.js +59 -0
- package/dashboard/dist-server/dashboard/src/server/agents/process-tree-kill.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/agents/process-tree-kill.test.d.ts +1 -0
- package/dashboard/dist-server/dashboard/src/server/agents/process-tree-kill.test.js +78 -0
- package/dashboard/dist-server/dashboard/src/server/agents/process-tree-kill.test.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/agents/stale-handler.d.ts +25 -0
- package/dashboard/dist-server/dashboard/src/server/agents/stale-handler.js +40 -0
- package/dashboard/dist-server/dashboard/src/server/agents/stale-handler.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/agents/stale-handler.test.d.ts +1 -0
- package/dashboard/dist-server/dashboard/src/server/agents/stale-handler.test.js +89 -0
- package/dashboard/dist-server/dashboard/src/server/agents/stale-handler.test.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/agents/stream-json-adapter.js +19 -8
- package/dashboard/dist-server/dashboard/src/server/agents/stream-json-adapter.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/agents/stream-monitor.d.ts +6 -0
- package/dashboard/dist-server/dashboard/src/server/agents/stream-monitor.js +7 -1
- package/dashboard/dist-server/dashboard/src/server/agents/stream-monitor.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/agents/stream-monitor.test.d.ts +1 -0
- package/dashboard/dist-server/dashboard/src/server/agents/stream-monitor.test.js +46 -0
- package/dashboard/dist-server/dashboard/src/server/agents/stream-monitor.test.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/shared/constants.js +2 -0
- package/dashboard/dist-server/dashboard/src/shared/constants.js.map +1 -1
- package/dashboard/dist-server/shared/agent-types.d.ts +7 -1
- package/dist/shared/agent-types.d.ts +7 -1
- package/dist/shared/agent-types.d.ts.map +1 -1
- package/dist/src/agents/cli-agent-runner.d.ts +3 -0
- package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
- package/dist/src/agents/cli-agent-runner.js +4 -0
- package/dist/src/agents/cli-agent-runner.js.map +1 -1
- package/dist/src/commands/delegate.d.ts +2 -0
- package/dist/src/commands/delegate.d.ts.map +1 -1
- package/dist/src/commands/delegate.js +18 -0
- package/dist/src/commands/delegate.js.map +1 -1
- package/dist/src/commands/hooks.d.ts +64 -0
- package/dist/src/commands/hooks.d.ts.map +1 -1
- package/dist/src/commands/hooks.js +107 -0
- package/dist/src/commands/hooks.js.map +1 -1
- package/dist/src/commands/install.d.ts.map +1 -1
- package/dist/src/commands/install.js +17 -3
- package/dist/src/commands/install.js.map +1 -1
- package/dist/src/commands/update.d.ts.map +1 -1
- package/dist/src/commands/update.js +53 -0
- package/dist/src/commands/update.js.map +1 -1
- package/dist/src/config/cli-tools-config.d.ts +22 -5
- package/dist/src/config/cli-tools-config.d.ts.map +1 -1
- package/dist/src/config/cli-tools-config.js +77 -32
- package/dist/src/config/cli-tools-config.js.map +1 -1
- package/dist/src/config/cli-tools-defaults.json +2 -1
- package/dist/src/core/component-defs.d.ts.map +1 -1
- package/dist/src/core/component-defs.js +53 -0
- package/dist/src/core/component-defs.js.map +1 -1
- package/dist/src/tui/install-ui/InstallExecution.d.ts.map +1 -1
- package/dist/src/tui/install-ui/InstallExecution.js +5 -3
- package/dist/src/tui/install-ui/InstallExecution.js.map +1 -1
- package/dist/src/utils/update-notices.d.ts +62 -0
- package/dist/src/utils/update-notices.d.ts.map +1 -0
- package/dist/src/utils/update-notices.js +178 -0
- package/dist/src/utils/update-notices.js.map +1 -0
- package/package.json +82 -82
- package/shared/agent-types.ts +237 -231
- package/workflows/agy-instructions.md +124 -0
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import{d as p,j as e,r as c,ac as C,k as w,w as M,s as S,p as T}from"./index-
|
|
1
|
+
import{d as p,j as e,r as c,ac as C,k as w,w as M,s as S,p as T}from"./index-DQIlX2w_.js";import{Z as _}from"./zap-C0zaC7gJ.js";import{M as A}from"./MarkdownRenderer-ZGtOY7Ti.js";import{C as v}from"./chevron-right-SmErd_1F.js";import{T as z}from"./terminal-DXx4tvzq.js";import{C as E}from"./circle-alert-CuzAg2fd.js";/**
|
|
2
2
|
* @license lucide-react v0.577.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const D=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],
|
|
6
|
+
*/const D=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],L=p("chevron-up",D);/**
|
|
7
7
|
* @license lucide-react v0.577.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const
|
|
11
|
+
*/const I=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],R=p("file-code",I);/**
|
|
12
12
|
* @license lucide-react v0.577.0 - ISC
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const
|
|
16
|
+
*/const $=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]],F=p("file-plus",$);/**
|
|
17
17
|
* @license lucide-react v0.577.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const
|
|
21
|
+
*/const W=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]],O=p("file-x",W);/**
|
|
22
22
|
* @license lucide-react v0.577.0 - ISC
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
@@ -28,17 +28,17 @@ import{d as p,j as e,r as c,ac as C,k as w,w as M,s as S,p as T}from"./index-Dpc
|
|
|
28
28
|
*
|
|
29
29
|
* This source code is licensed under the ISC license.
|
|
30
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/const
|
|
31
|
+
*/const V=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],H=p("shield-check",V);/**
|
|
32
32
|
* @license lucide-react v0.577.0 - ISC
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the ISC license.
|
|
35
35
|
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/const
|
|
36
|
+
*/const P=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}],["path",{d:"M12 17h.01",key:"p32p05"}]],U=p("shield-question-mark",P);/**
|
|
37
37
|
* @license lucide-react v0.577.0 - ISC
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the ISC license.
|
|
40
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const P=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]],Z=p("shield-x",P),J=/^(\/[a-zA-Z0-9_-]+)\s*/,Q=/@([\w./\\-]+\.\w+)/g;function X(o){const r=new Date(o);return`${r.getHours().toString().padStart(2,"0")}:${r.getMinutes().toString().padStart(2,"0")}`}function Y(o){const r=[];let a=0,t;const s=new RegExp(Q);for(;(t=s.exec(o))!==null;){t.index>a&&r.push(o.slice(a,t.index));const n=t[1];r.push(e.jsxs("span",{className:"inline-flex items-center gap-[3px] mx-[2px] px-[6px] py-[1px] rounded-[5px] text-[11px] font-mono align-middle",style:{backgroundColor:"var(--color-tint-exploring)",color:"var(--color-accent-blue)"},children:[e.jsx(q,{size:10,strokeWidth:2}),n.split(/[\\/]/).pop()]},t.index)),a=s.lastIndex}return a<o.length&&r.push(o.slice(a)),r.length>0?r:o}function K({entry:o}){const r=o.content.match(J),a=r==null?void 0:r[1],t=r?o.content.slice(r[0].length):o.content;return e.jsxs("div",{className:"flex gap-[8px]",style:{paddingTop:10,paddingBottom:10},children:[e.jsx("div",{className:"shrink-0 w-6 h-6 rounded-[6px] flex items-center justify-center mt-[2px] text-[10px] font-bold",style:{backgroundColor:"var(--color-tint-exploring)",color:"var(--color-accent-blue)"},children:"U"}),e.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-1",children:[e.jsxs("div",{className:"flex items-center gap-[5px] mb-[2px]",children:[e.jsx("span",{className:"text-[11px] font-semibold",style:{color:"var(--color-text-primary)"},children:"You"}),e.jsx("span",{className:"text-[9px]",style:{color:"var(--color-text-placeholder)"},children:X(o.timestamp)})]}),e.jsxs("div",{className:"text-[13px] leading-[1.6] whitespace-pre-wrap break-words",style:{color:"var(--color-text-primary)"},children:[a&&e.jsxs("span",{className:"inline-flex items-center gap-[4px] mr-[6px] px-[7px] py-[1px] rounded-[6px] text-[11px] font-semibold align-middle",style:{backgroundColor:"var(--color-tint-planning)",color:"var(--color-accent-purple)"},children:[e.jsx(_,{size:10,strokeWidth:2}),a]}),Y(t)]})]})]})}function ee({children:o,maxHeight:r=300,expandLabel:a="Show more",collapseLabel:t="Show less"}){var f;const s=c.useRef(null),[n,l]=c.useState(!1),[i,d]=c.useState(!1);c.useEffect(()=>{const u=s.current;if(!u)return;const b=()=>{const N=u.scrollHeight;l(N>r)};b();const y=new ResizeObserver(()=>{requestAnimationFrame(b)});return y.observe(u),()=>{y.disconnect()}},[r]);const x=c.useCallback(()=>d(u=>!u),[]),g=n&&!i?{maxHeight:`${r}px`,overflow:"hidden",maskImage:"linear-gradient(to bottom, black calc(100% - 60px), transparent)",WebkitMaskImage:"linear-gradient(to bottom, black calc(100% - 60px), transparent)",transition:"max-height 0.35s ease"}:{maxHeight:n?`${((f=s.current)==null?void 0:f.scrollHeight)??9999}px`:"none",overflow:"hidden",transition:"max-height 0.35s ease"};return e.jsxs("div",{children:[e.jsx("div",{ref:s,style:g,children:o}),n&&e.jsx("button",{type:"button",onClick:x,className:"flex items-center gap-1 mt-2 px-0 py-1 text-[12px] font-medium border-none bg-transparent cursor-pointer",style:{color:"color-mix(in srgb, var(--color-text-secondary) 80%, transparent)"},children:i?e.jsxs(e.Fragment,{children:[e.jsx(I,{size:14}),t]}):e.jsxs(e.Fragment,{children:[e.jsx(C,{size:14}),a]})})]})}const k={"claude-code":{label:"C",color:"var(--color-accent-purple)",tint:"var(--color-tint-planning)",className:"claude"},codex:{label:"Cx",color:"var(--color-accent-green)",tint:"var(--color-tint-completed)",className:"codex"},"codex-server":{label:"Cs",color:"var(--color-accent-green)",tint:"var(--color-tint-completed)",className:"codex"},gemini:{label:"G",color:"var(--color-accent-blue)",tint:"var(--color-tint-exploring)",className:"gemini"},"gemini-a2a":{label:"Ga",color:"var(--color-accent-blue)",tint:"var(--color-tint-exploring)",className:"gemini"},qwen:{label:"Q",color:"var(--color-accent-orange)",tint:"var(--color-tint-verifying)",className:"qwen"},opencode:{label:"O",color:"var(--color-text-tertiary)",tint:"var(--color-bg-secondary)",className:"opencode"},"agent-sdk":{label:"S",color:"var(--color-accent-purple)",tint:"var(--color-tint-planning)",className:"claude"}};function oe(o){const r=new Date(o);return`${r.getHours().toString().padStart(2,"0")}:${r.getMinutes().toString().padStart(2,"0")}`}function re({entry:o,isGroupContinuation:r}){const a=w(l=>l.processes[o.processId]),t=a==null?void 0:a.type,s=(a==null?void 0:a.status)==="running"||(a==null?void 0:a.status)==="spawning",n=k[t??"claude-code"]??k["claude-code"];return e.jsxs("div",{className:"flex gap-[8px]",style:{paddingTop:r?0:10,paddingBottom:10},children:[r?e.jsx("div",{className:"shrink-0 w-6"}):e.jsxs("div",{className:"relative shrink-0 w-6 h-6 rounded-[6px] flex items-center justify-center mt-[2px] text-[10px] font-bold",style:{backgroundColor:n.tint,color:n.color},children:[n.label,s&&e.jsx("span",{className:"absolute inset-[-3px] rounded-[8px] pointer-events-none",style:{border:"1.5px solid currentColor",color:n.color,opacity:.3,animation:"avatar-pulse 2.5s ease-in-out infinite"}})]}),e.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-1 contain-content",children:[!r&&e.jsxs("div",{className:"flex items-center gap-[5px] mb-[2px]",children:[e.jsx("span",{className:"text-[11px] font-semibold",style:{color:"var(--color-text-primary)"},children:M[t??"claude-code"]??"Maestro"}),e.jsx("span",{className:"text-[9px]",style:{color:"var(--color-text-placeholder)"},children:oe(o.timestamp)})]}),o.partial?e.jsxs("div",{className:"text-text-primary text-[13px] leading-[1.6] whitespace-pre-wrap break-words",children:[o.content,e.jsx("span",{className:"inline-block w-[2px] h-[1em] ml-[2px] align-text-bottom",style:{backgroundColor:"var(--color-accent-orange)",animation:"blink-cursor 1s step-end infinite"},"aria-label":"Typing"})]}):e.jsx(ee,{maxHeight:300,children:e.jsx(z,{content:o.content})})]})]})}function te({entry:o}){const[r,a]=c.useState(!1),t=w(l=>l.entries[o.processId]??[]),s=c.useMemo(()=>{const l=t.findIndex(d=>d.id===o.id);return l===-1||l===t.length-1||!t[l+1]},[t,o.id]),n=c.useMemo(()=>{if(s)return"Thinking...";const l=t.findIndex(g=>g.id===o.id),i=t[l+1];if(!i)return"Thinking...";const d=new Date(o.timestamp).getTime(),x=new Date(i.timestamp).getTime(),m=Math.round((x-d)/1e3);return m<1?"Thought for <1s":`Thought for ${m}s`},[t,o.id,o.timestamp,s]);return e.jsxs("div",{className:"contain-content",children:[e.jsxs("button",{type:"button",onClick:()=>a(l=>!l),className:"flex items-center gap-[5px] w-full rounded-[6px] cursor-pointer transition-opacity hover:opacity-80",style:{padding:"6px 10px",backgroundColor:"var(--color-tint-planning)",margin:"3px 0",fontSize:"10px",color:"var(--color-accent-purple)",fontWeight:500,border:"none",textAlign:"left",fontFamily:"inherit"},children:[s&&e.jsxs("span",{className:"flex gap-[2px]",children:[e.jsx("span",{className:"w-[3px] h-[3px] rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent-purple)",animationDelay:"0ms",opacity:.7}}),e.jsx("span",{className:"w-[3px] h-[3px] rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent-purple)",animationDelay:"200ms",opacity:.7}}),e.jsx("span",{className:"w-[3px] h-[3px] rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent-purple)",animationDelay:"400ms",opacity:.7}})]}),e.jsx("span",{className:"truncate",children:s?o.content.slice(0,60)||"Thinking...":n})]}),r&&e.jsx("div",{className:"text-[11px] leading-[1.6] italic mt-[2px] pl-[10px] whitespace-pre-wrap break-words",style:{color:"var(--color-text-tertiary)"},children:o.content})]})}const ae={pending:{color:"var(--color-text-tertiary)",label:"Pending"},running:{color:"var(--color-accent-yellow)",label:"Running"},completed:{color:"var(--color-accent-green)",label:"Done"},failed:{color:"var(--color-accent-red, #D05454)",label:"Failed"}};function se(o){if(!o)return null;const r=o.file_path??o.path??o.command;return typeof r=="string"?r:null}function ne({name:o}){const r={width:11,height:11,color:"var(--color-text-tertiary)",flexShrink:0};return o==="Read"||o==="Glob"||o==="Grep"?e.jsxs("svg",{style:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"}),e.jsx("polyline",{points:"14 2 14 8 20 8"})]}):o==="Edit"||o==="Write"||o==="NotebookEdit"?e.jsxs("svg",{style:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M12 20h9"}),e.jsx("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})]}):o==="Bash"?e.jsxs("svg",{style:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("polyline",{points:"4 17 10 11 4 5"}),e.jsx("line",{x1:"12",y1:"19",x2:"20",y2:"19"})]}):e.jsx("svg",{style:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"})})}function le({entry:o}){const[r,a]=c.useState(!1),t=ae[o.status],s=se(o.input),n=o.name==="unknown"?"Tool Call":o.name;return e.jsxs("div",{className:"contain-content",children:[e.jsxs("button",{type:"button",onClick:()=>a(l=>!l),className:"flex items-center gap-[5px] w-full rounded-[5px] cursor-pointer transition-opacity hover:opacity-80",style:{padding:"4px 8px",backgroundColor:"var(--color-bg-secondary)",margin:"3px 0",fontSize:"10px",color:"var(--color-text-secondary)",border:"none",textAlign:"left",fontFamily:"inherit"},children:[e.jsx(ne,{name:n}),e.jsx("span",{className:"font-semibold",style:{color:"var(--color-text-primary)"},children:n}),s&&e.jsx("span",{className:"truncate font-mono text-[10px]",style:{color:"var(--color-text-tertiary)"},children:s}),e.jsx("span",{className:"ml-auto shrink-0 text-[9px] font-semibold",style:{color:t.color},children:t.label})]}),r&&e.jsxs("div",{className:"mt-[2px] space-y-[4px]",children:[o.input&&Object.keys(o.input).length>0&&e.jsx("pre",{className:"text-[11px] font-mono rounded-[6px] p-[6px_8px] overflow-x-auto max-h-[120px] overflow-y-auto whitespace-pre-wrap break-words leading-[1.5]",style:{background:"var(--color-bg-primary)",color:"var(--color-text-secondary)",border:"1px solid var(--color-border-divider)"},children:JSON.stringify(o.input,null,2)}),o.result!=null&&o.result.length>0&&e.jsx("pre",{className:"text-[11px] font-mono rounded-[6px] p-[6px_8px] overflow-x-auto max-h-[120px] overflow-y-auto whitespace-pre-wrap break-words leading-[1.5]",style:{background:"var(--color-bg-primary)",color:"var(--color-text-secondary)",border:"1px solid var(--color-border-divider)"},children:o.result})]})]})}const ce={create:{icon:$,color:"var(--color-accent-green)",bg:"var(--color-status-bg-completed)",label:"Create"},modify:{icon:F,color:"var(--color-accent-yellow)",bg:"var(--color-status-bg-executing)",label:"Modify"},delete:{icon:W,color:"var(--color-accent-red)",bg:"var(--color-status-bg-blocked)",label:"Delete"}};function ie({entry:o}){const[r,a]=c.useState(!1),t=ce[o.action],s=t.icon,n=o.diff!=null&&o.diff.length>0;return e.jsxs("div",{className:"rounded-[10px] border border-border overflow-hidden contain-content transition-shadow",style:{backgroundColor:"var(--color-bg-card)",transitionDuration:"var(--duration-slow)"},onMouseEnter:l=>{l.currentTarget.style.boxShadow="0 2px 12px rgba(45,42,38,0.06)"},onMouseLeave:l=>{l.currentTarget.style.boxShadow="none"},children:[e.jsxs("button",{type:"button",onClick:()=>n&&a(l=>!l),className:`flex items-center gap-[var(--spacing-2)] w-full px-[var(--spacing-3)] py-[var(--spacing-2)] text-left transition-colors ${n?"hover:bg-bg-hover cursor-pointer":"cursor-default"}`,style:{transitionDuration:"var(--duration-fast)"},children:[e.jsx(s,{size:14,className:"shrink-0",strokeWidth:1.8,style:{color:t.color}}),e.jsx("span",{className:"text-[11px] font-mono truncate",style:{color:"var(--color-text-secondary)"},children:o.path}),e.jsx("span",{className:"ml-auto shrink-0 rounded-[var(--radius-sm)] px-[7px] py-[2px] text-[10px] font-bold uppercase tracking-[0.03em]",style:{backgroundColor:t.bg,color:t.color},children:t.label}),n&&e.jsx(v,{size:14,className:"shrink-0 transition-transform text-text-tertiary",style:{transitionDuration:"var(--duration-fast)",transform:r?"rotate(90deg)":"rotate(0deg)"}})]}),r&&n&&e.jsx("div",{className:"border-t border-border-divider",children:e.jsx("pre",{className:"text-[length:var(--font-size-xs)] font-mono p-[var(--spacing-3)] overflow-x-auto max-h-[300px] overflow-y-auto",style:{background:"var(--code-bg)",color:"var(--code-t1)"},children:o.diff.split(`
|
|
42
|
-
`).map((l,i)=>{const d=l.startsWith("+"),x=l.startsWith("-");return e.jsx("div",{style:{background:d?"rgba(90, 158, 120, 0.1)":x?"rgba(196, 101, 85, 0.1)":void 0,color:d?"#5A9E78":x?"#C46555":void 0},children:l},i)})})})]})}function de({entry:o}){const[r,a]=c.useState(!1),t=o.output!=null&&o.output.length>0,
|
|
41
|
+
*/const G=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]],Y=p("shield-x",G),Z=/^(\/[a-zA-Z0-9_-]+)\s*/,J=/@([\w./\\-]+\.\w+)/g;function K(o){const r=new Date(o);return`${r.getHours().toString().padStart(2,"0")}:${r.getMinutes().toString().padStart(2,"0")}`}function Q(o){const r=[];let a=0,t;const n=new RegExp(J);for(;(t=n.exec(o))!==null;){t.index>a&&r.push(o.slice(a,t.index));const s=t[1];r.push(e.jsxs("span",{className:"inline-flex items-center gap-[3px] mx-[2px] px-[6px] py-[1px] rounded-[5px] text-[11px] font-mono align-middle",style:{backgroundColor:"var(--color-tint-exploring)",color:"var(--color-accent-blue)"},children:[e.jsx(q,{size:10,strokeWidth:2}),s.split(/[\\/]/).pop()]},t.index)),a=n.lastIndex}return a<o.length&&r.push(o.slice(a)),r.length>0?r:o}function X({entry:o}){const r=o.content.match(Z),a=r==null?void 0:r[1],t=r?o.content.slice(r[0].length):o.content;return e.jsxs("div",{className:"flex gap-[8px]",style:{paddingTop:10,paddingBottom:10},children:[e.jsx("div",{className:"shrink-0 w-6 h-6 rounded-[6px] flex items-center justify-center mt-[2px] text-[10px] font-bold",style:{backgroundColor:"var(--color-tint-exploring)",color:"var(--color-accent-blue)"},children:"U"}),e.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-1",children:[e.jsxs("div",{className:"flex items-center gap-[5px] mb-[2px]",children:[e.jsx("span",{className:"text-[11px] font-semibold",style:{color:"var(--color-text-primary)"},children:"You"}),e.jsx("span",{className:"text-[9px]",style:{color:"var(--color-text-placeholder)"},children:K(o.timestamp)})]}),e.jsxs("div",{className:"text-[13px] leading-[1.6] whitespace-pre-wrap break-words",style:{color:"var(--color-text-primary)"},children:[a&&e.jsxs("span",{className:"inline-flex items-center gap-[4px] mr-[6px] px-[7px] py-[1px] rounded-[6px] text-[11px] font-semibold align-middle",style:{backgroundColor:"var(--color-tint-planning)",color:"var(--color-accent-purple)"},children:[e.jsx(_,{size:10,strokeWidth:2}),a]}),Q(t)]})]})]})}function ee({children:o,maxHeight:r=300,expandLabel:a="Show more",collapseLabel:t="Show less"}){var f;const n=c.useRef(null),[s,l]=c.useState(!1),[i,d]=c.useState(!1);c.useEffect(()=>{const u=n.current;if(!u)return;const b=()=>{const N=u.scrollHeight;l(N>r)};b();const y=new ResizeObserver(()=>{requestAnimationFrame(b)});return y.observe(u),()=>{y.disconnect()}},[r]);const x=c.useCallback(()=>d(u=>!u),[]),g=s&&!i?{maxHeight:`${r}px`,overflow:"hidden",maskImage:"linear-gradient(to bottom, black calc(100% - 60px), transparent)",WebkitMaskImage:"linear-gradient(to bottom, black calc(100% - 60px), transparent)",transition:"max-height 0.35s ease"}:{maxHeight:s?`${((f=n.current)==null?void 0:f.scrollHeight)??9999}px`:"none",overflow:"hidden",transition:"max-height 0.35s ease"};return e.jsxs("div",{children:[e.jsx("div",{ref:n,style:g,children:o}),s&&e.jsx("button",{type:"button",onClick:x,className:"flex items-center gap-1 mt-2 px-0 py-1 text-[12px] font-medium border-none bg-transparent cursor-pointer",style:{color:"color-mix(in srgb, var(--color-text-secondary) 80%, transparent)"},children:i?e.jsxs(e.Fragment,{children:[e.jsx(L,{size:14}),t]}):e.jsxs(e.Fragment,{children:[e.jsx(C,{size:14}),a]})})]})}const k={"claude-code":{label:"C",color:"var(--color-accent-purple)",tint:"var(--color-tint-planning)",className:"claude"},codex:{label:"Cx",color:"var(--color-accent-green)",tint:"var(--color-tint-completed)",className:"codex"},"codex-server":{label:"Cs",color:"var(--color-accent-green)",tint:"var(--color-tint-completed)",className:"codex"},gemini:{label:"G",color:"var(--color-accent-blue)",tint:"var(--color-tint-exploring)",className:"gemini"},"gemini-a2a":{label:"Ga",color:"var(--color-accent-blue)",tint:"var(--color-tint-exploring)",className:"gemini"},qwen:{label:"Q",color:"var(--color-accent-orange)",tint:"var(--color-tint-verifying)",className:"qwen"},opencode:{label:"O",color:"var(--color-text-tertiary)",tint:"var(--color-bg-secondary)",className:"opencode"},"agent-sdk":{label:"S",color:"var(--color-accent-purple)",tint:"var(--color-tint-planning)",className:"claude"}};function oe(o){const r=new Date(o);return`${r.getHours().toString().padStart(2,"0")}:${r.getMinutes().toString().padStart(2,"0")}`}function re({entry:o,isGroupContinuation:r}){const a=w(l=>l.processes[o.processId]),t=a==null?void 0:a.type,n=(a==null?void 0:a.status)==="running"||(a==null?void 0:a.status)==="spawning",s=k[t??"claude-code"]??k["claude-code"];return e.jsxs("div",{className:"flex gap-[8px]",style:{paddingTop:r?0:10,paddingBottom:10},children:[r?e.jsx("div",{className:"shrink-0 w-6"}):e.jsxs("div",{className:"relative shrink-0 w-6 h-6 rounded-[6px] flex items-center justify-center mt-[2px] text-[10px] font-bold",style:{backgroundColor:s.tint,color:s.color},children:[s.label,n&&e.jsx("span",{className:"absolute inset-[-3px] rounded-[8px] pointer-events-none",style:{border:"1.5px solid currentColor",color:s.color,opacity:.3,animation:"avatar-pulse 2.5s ease-in-out infinite"}})]}),e.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-1 contain-content",children:[!r&&e.jsxs("div",{className:"flex items-center gap-[5px] mb-[2px]",children:[e.jsx("span",{className:"text-[11px] font-semibold",style:{color:"var(--color-text-primary)"},children:M[t??"claude-code"]??"Maestro"}),e.jsx("span",{className:"text-[9px]",style:{color:"var(--color-text-placeholder)"},children:oe(o.timestamp)})]}),o.partial?e.jsxs("div",{className:"text-text-primary text-[13px] leading-[1.6] whitespace-pre-wrap break-words",children:[o.content,e.jsx("span",{className:"inline-block w-[2px] h-[1em] ml-[2px] align-text-bottom",style:{backgroundColor:"var(--color-accent-orange)",animation:"blink-cursor 1s step-end infinite"},"aria-label":"Typing"})]}):e.jsx(ee,{maxHeight:300,children:e.jsx(A,{content:o.content})})]})]})}function te({entry:o}){const[r,a]=c.useState(!1),t=w(l=>l.entries[o.processId]??[]),n=c.useMemo(()=>{const l=t.findIndex(d=>d.id===o.id);return l===-1||l===t.length-1||!t[l+1]},[t,o.id]),s=c.useMemo(()=>{if(n)return"Thinking...";const l=t.findIndex(g=>g.id===o.id),i=t[l+1];if(!i)return"Thinking...";const d=new Date(o.timestamp).getTime(),x=new Date(i.timestamp).getTime(),m=Math.round((x-d)/1e3);return m<1?"Thought for <1s":`Thought for ${m}s`},[t,o.id,o.timestamp,n]);return e.jsxs("div",{className:"contain-content",children:[e.jsxs("button",{type:"button",onClick:()=>a(l=>!l),className:"flex items-center gap-[5px] w-full rounded-[6px] cursor-pointer transition-opacity hover:opacity-80",style:{padding:"6px 10px",backgroundColor:"var(--color-tint-planning)",margin:"3px 0",fontSize:"10px",color:"var(--color-accent-purple)",fontWeight:500,border:"none",textAlign:"left",fontFamily:"inherit"},children:[n&&e.jsxs("span",{className:"flex gap-[2px]",children:[e.jsx("span",{className:"w-[3px] h-[3px] rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent-purple)",animationDelay:"0ms",opacity:.7}}),e.jsx("span",{className:"w-[3px] h-[3px] rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent-purple)",animationDelay:"200ms",opacity:.7}}),e.jsx("span",{className:"w-[3px] h-[3px] rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent-purple)",animationDelay:"400ms",opacity:.7}})]}),e.jsx("span",{className:"truncate",children:n?o.content.slice(0,60)||"Thinking...":s})]}),r&&e.jsx("div",{className:"text-[11px] leading-[1.6] italic mt-[2px] pl-[10px] whitespace-pre-wrap break-words",style:{color:"var(--color-text-tertiary)"},children:o.content})]})}const ae={pending:{color:"var(--color-text-tertiary)",label:"Pending"},running:{color:"var(--color-accent-yellow)",label:"Running"},completed:{color:"var(--color-accent-green)",label:"Done"},failed:{color:"var(--color-accent-red, #D05454)",label:"Failed"}};function se(o){if(!o)return null;const r=["file_path","path","command","query","pattern","contentPattern","regex","url","target","topic","name"];for(const n of r){const s=o[n];if(typeof s=="string"&&s.length>0)return s}const a=o.paths;if(Array.isArray(a)&&a.length>0&&typeof a[0]=="string")return a.length>1?`${a[0]} (+${a.length-1})`:a[0];const t=o.project_root_path;return typeof t=="string"&&t.length>0?t:null}function ne({name:o}){const r={width:11,height:11,color:"var(--color-text-tertiary)",flexShrink:0};return o==="Read"||o==="Glob"||o==="Grep"?e.jsxs("svg",{style:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"}),e.jsx("polyline",{points:"14 2 14 8 20 8"})]}):o==="Edit"||o==="Write"||o==="NotebookEdit"?e.jsxs("svg",{style:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M12 20h9"}),e.jsx("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})]}):o==="Bash"?e.jsxs("svg",{style:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("polyline",{points:"4 17 10 11 4 5"}),e.jsx("line",{x1:"12",y1:"19",x2:"20",y2:"19"})]}):o.includes("/")?e.jsxs("svg",{style:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M9 2v6"}),e.jsx("path",{d:"M15 2v6"}),e.jsx("path",{d:"M6 8h12v4a6 6 0 0 1-12 0V8z"}),e.jsx("path",{d:"M12 18v4"})]}):e.jsx("svg",{style:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"})})}function le({entry:o}){const[r,a]=c.useState(!1),t=ae[o.status],n=se(o.input),s=o.name==="unknown"?"Tool Call":o.name;return e.jsxs("div",{className:"contain-content",children:[e.jsxs("button",{type:"button",onClick:()=>a(l=>!l),className:"flex items-center gap-[5px] w-full rounded-[5px] cursor-pointer transition-opacity hover:opacity-80",style:{padding:"4px 8px",backgroundColor:"var(--color-bg-secondary)",margin:"3px 0",fontSize:"10px",color:"var(--color-text-secondary)",border:"none",textAlign:"left",fontFamily:"inherit"},children:[e.jsx(ne,{name:s}),e.jsx("span",{className:"font-semibold",style:{color:"var(--color-text-primary)"},children:s}),n&&e.jsx("span",{className:"truncate font-mono text-[10px]",style:{color:"var(--color-text-tertiary)"},children:n}),e.jsx("span",{className:"ml-auto shrink-0 text-[9px] font-semibold",style:{color:t.color},children:t.label})]}),r&&e.jsxs("div",{className:"mt-[2px] space-y-[4px]",children:[o.input&&Object.keys(o.input).length>0&&e.jsx("pre",{className:"text-[11px] font-mono rounded-[6px] p-[6px_8px] overflow-x-auto max-h-[120px] overflow-y-auto whitespace-pre-wrap break-words leading-[1.5]",style:{background:"var(--color-bg-primary)",color:"var(--color-text-secondary)",border:"1px solid var(--color-border-divider)"},children:JSON.stringify(o.input,null,2)}),o.result!=null&&o.result.length>0&&e.jsx("pre",{className:"text-[11px] font-mono rounded-[6px] p-[6px_8px] overflow-x-auto max-h-[120px] overflow-y-auto whitespace-pre-wrap break-words leading-[1.5]",style:{background:"var(--color-bg-primary)",color:"var(--color-text-secondary)",border:"1px solid var(--color-border-divider)"},children:o.result})]})]})}const ce={create:{icon:F,color:"var(--color-accent-green)",bg:"var(--color-status-bg-completed)",label:"Create"},modify:{icon:R,color:"var(--color-accent-yellow)",bg:"var(--color-status-bg-executing)",label:"Modify"},delete:{icon:O,color:"var(--color-accent-red)",bg:"var(--color-status-bg-blocked)",label:"Delete"}};function ie({entry:o}){const[r,a]=c.useState(!1),t=ce[o.action],n=t.icon,s=o.diff!=null&&o.diff.length>0;return e.jsxs("div",{className:"rounded-[10px] border border-border overflow-hidden contain-content transition-shadow",style:{backgroundColor:"var(--color-bg-card)",transitionDuration:"var(--duration-slow)"},onMouseEnter:l=>{l.currentTarget.style.boxShadow="0 2px 12px rgba(45,42,38,0.06)"},onMouseLeave:l=>{l.currentTarget.style.boxShadow="none"},children:[e.jsxs("button",{type:"button",onClick:()=>s&&a(l=>!l),className:`flex items-center gap-[var(--spacing-2)] w-full px-[var(--spacing-3)] py-[var(--spacing-2)] text-left transition-colors ${s?"hover:bg-bg-hover cursor-pointer":"cursor-default"}`,style:{transitionDuration:"var(--duration-fast)"},children:[e.jsx(n,{size:14,className:"shrink-0",strokeWidth:1.8,style:{color:t.color}}),e.jsx("span",{className:"text-[11px] font-mono truncate",style:{color:"var(--color-text-secondary)"},children:o.path}),e.jsx("span",{className:"ml-auto shrink-0 rounded-[var(--radius-sm)] px-[7px] py-[2px] text-[10px] font-bold uppercase tracking-[0.03em]",style:{backgroundColor:t.bg,color:t.color},children:t.label}),s&&e.jsx(v,{size:14,className:"shrink-0 transition-transform text-text-tertiary",style:{transitionDuration:"var(--duration-fast)",transform:r?"rotate(90deg)":"rotate(0deg)"}})]}),r&&s&&e.jsx("div",{className:"border-t border-border-divider",children:e.jsx("pre",{className:"text-[length:var(--font-size-xs)] font-mono p-[var(--spacing-3)] overflow-x-auto max-h-[300px] overflow-y-auto",style:{background:"var(--code-bg)",color:"var(--code-t1)"},children:o.diff.split(`
|
|
42
|
+
`).map((l,i)=>{const d=l.startsWith("+"),x=l.startsWith("-");return e.jsx("div",{style:{background:d?"rgba(90, 158, 120, 0.1)":x?"rgba(196, 101, 85, 0.1)":void 0,color:d?"#5A9E78":x?"#C46555":void 0},children:l},i)})})})]})}function de({entry:o}){const[r,a]=c.useState(!1),t=o.output!=null&&o.output.length>0,n=o.exitCode!=null&&o.exitCode!==0;return e.jsxs("div",{className:"rounded-[10px] border overflow-hidden contain-content font-mono",style:{backgroundColor:"var(--code-bg)",borderColor:n?"var(--color-accent-red)":"var(--code-border)"},children:[e.jsxs("button",{type:"button",onClick:()=>t&&a(s=>!s),className:`flex items-center gap-[var(--spacing-2)] w-full px-[var(--spacing-3)] py-[var(--spacing-2)] text-left transition-colors ${t?"cursor-pointer":"cursor-default"}`,style:{transitionDuration:"var(--duration-fast)"},onMouseEnter:s=>{t&&(s.currentTarget.style.backgroundColor="rgba(255,255,255,0.03)")},onMouseLeave:s=>{s.currentTarget.style.backgroundColor="transparent"},children:[e.jsx(z,{size:14,className:"shrink-0",style:{color:"var(--code-t2)"}}),e.jsx("span",{className:"text-[12px] font-medium truncate",style:{color:"var(--code-t1)"},children:o.command}),o.exitCode!=null&&e.jsxs("span",{className:"ml-auto shrink-0 text-[10px] font-semibold px-[7px] py-[2px] rounded-[var(--radius-sm)]",style:{color:n?"#D4A07A":"#A3BE8C",backgroundColor:n?"rgba(196,101,85,0.15)":"rgba(90,158,120,0.15)"},children:["exit ",o.exitCode]}),t&&e.jsx(v,{size:14,className:"shrink-0 transition-transform",style:{color:"var(--code-t2)",transitionDuration:"var(--duration-fast)",transform:r?"rotate(90deg)":"rotate(0deg)"}})]}),r&&t&&e.jsx("div",{style:{borderTop:"1px solid var(--code-border)"},children:e.jsx("pre",{className:"text-[11px] leading-[1.5] p-[var(--spacing-3)] overflow-x-auto max-h-[300px] overflow-y-auto whitespace-pre-wrap break-words",style:{color:"var(--code-t2)"},children:o.output})})]})}function h({label:o,light:r}){return e.jsx("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:18,height:16,padding:"0 4px",borderRadius:3,fontSize:10,fontFamily:"monospace",fontWeight:600,lineHeight:1,backgroundColor:r?"rgba(255,255,255,0.2)":"var(--color-bg-hover)",color:r?"rgba(255,255,255,0.8)":"var(--color-text-tertiary)",border:r?"none":"1px solid var(--color-border-divider)"},children:o})}function pe({entry:o}){function r(a){S({action:"approve",processId:o.processId,requestId:o.requestId,allow:a})}return e.jsxs("div",{className:"rounded-[10px] overflow-hidden contain-content",style:{backgroundColor:"var(--color-tint-verifying)",border:"1.5px solid var(--color-accent-orange)"},children:[e.jsxs("div",{className:"flex items-center gap-[var(--spacing-2)] px-[var(--spacing-3)] py-[9px]",style:{borderBottom:"1px solid rgba(200,134,58,0.15)"},children:[e.jsx(U,{size:15,className:"shrink-0",strokeWidth:1.8,style:{color:"var(--color-accent-orange)"}}),e.jsx("span",{className:"text-[12px] font-semibold text-text-primary",children:"Permission Required"}),e.jsx("span",{className:"ml-auto shrink-0 rounded-[var(--radius-full)] px-[var(--spacing-2)] py-[2px] text-[10px] font-semibold",style:{backgroundColor:"rgba(200,134,58,0.12)",color:"var(--color-accent-orange)"},children:o.toolName})]}),e.jsx("div",{className:"px-[var(--spacing-3)] py-[10px]",children:e.jsx("pre",{className:"text-[11px] font-mono rounded-[var(--radius-default)] p-[8px_10px] overflow-x-auto max-h-[100px] overflow-y-auto whitespace-pre-wrap break-words",style:{color:"var(--color-text-secondary)",backgroundColor:"var(--color-bg-card)",border:"1px solid var(--color-border-divider)"},children:JSON.stringify(o.toolInput,null,2)})}),e.jsxs("div",{className:"flex items-center gap-[var(--spacing-2)] px-[var(--spacing-3)] py-[var(--spacing-2)]",style:{borderTop:"1px solid rgba(200,134,58,0.15)"},children:[e.jsxs("button",{type:"button",onClick:()=>r(!0),className:"rounded-[var(--radius-md)] px-[var(--spacing-4)] py-[5px] text-[12px] font-semibold transition-all hover:opacity-90 flex items-center gap-[6px]",style:{backgroundColor:"var(--color-accent-green)",color:"#fff"},children:["Allow",e.jsx(h,{label:"Y",light:!0})]}),e.jsxs("button",{type:"button",onClick:()=>r(!1),className:"rounded-[var(--radius-md)] px-[var(--spacing-4)] py-[5px] text-[12px] font-semibold border transition-all flex items-center gap-[6px]",style:{borderColor:"var(--color-border)",backgroundColor:"var(--color-bg-card)",color:"var(--color-accent-red)"},onMouseEnter:a=>{const t=a.currentTarget;t.style.borderColor="var(--color-accent-red)",t.style.backgroundColor="var(--color-tint-blocked)"},onMouseLeave:a=>{const t=a.currentTarget;t.style.borderColor="var(--color-border)",t.style.backgroundColor="var(--color-bg-card)"},children:["Deny",e.jsx(h,{label:"Esc"})]}),e.jsxs("span",{className:"ml-auto text-[10px]",style:{color:"var(--color-text-placeholder)"},children:[e.jsx(h,{label:"A"})," Always"]})]})]})}function xe({entry:o}){const r=o.allowed?H:Y,a=o.allowed?"var(--color-accent-green)":"var(--color-accent-red)",t=o.allowed?"var(--color-status-bg-completed)":"var(--color-status-bg-blocked)",n=o.allowed?"Allowed":"Denied";return e.jsx("div",{className:"flex items-center justify-center",children:e.jsxs("span",{className:"inline-flex items-center gap-[var(--spacing-1-5)] rounded-[var(--radius-full)] px-[var(--spacing-3)] py-[var(--spacing-1)] text-[length:var(--font-size-xs)] font-[var(--font-weight-medium)]",style:{backgroundColor:t,color:a},children:[e.jsx(r,{size:12}),n]})})}function ue(o){const r=o.split(`
|
|
43
43
|
`)[0],a=r.length>100?r.slice(0,100)+"...":r,t=o.includes(`
|
|
44
|
-
`)||r.length>100;return{summary:a,hasMore:t}}function me({entry:o}){const[r,a]=c.useState(!1),{summary:t,hasMore:
|
|
44
|
+
`)||r.length>100;return{summary:a,hasMore:t}}function me({entry:o}){const[r,a]=c.useState(!1),{summary:t,hasMore:n}=ue(o.message);return e.jsxs("div",{className:"contain-content",children:[e.jsxs("button",{type:"button",onClick:()=>n&&a(s=>!s),className:"flex items-center gap-[5px] w-full rounded-[5px] transition-opacity hover:opacity-80",style:{padding:"4px 8px",backgroundColor:"rgba(208, 84, 84, 0.06)",margin:"3px 0",fontSize:"10px",color:"var(--color-accent-red, #D05454)",border:"none",textAlign:"left",fontFamily:"inherit",cursor:n?"pointer":"default"},children:[n&&e.jsx(v,{size:10,className:"shrink-0 transition-transform duration-150",style:{transform:r?"rotate(90deg)":"none"}}),e.jsx(E,{size:11,className:"shrink-0",strokeWidth:1.8}),e.jsx("span",{className:"truncate flex-1 min-w-0",style:{color:"var(--color-accent-red, #D05454)"},children:t}),o.code&&e.jsx("code",{className:"ml-auto shrink-0 font-mono text-[9px] px-[4px] py-[1px] rounded-[3px]",style:{backgroundColor:"rgba(208, 84, 84, 0.08)",color:"var(--color-accent-red, #D05454)"},children:o.code})]}),r&&n&&e.jsx("pre",{className:"text-[11px] font-mono rounded-[6px] p-[6px_8px] overflow-x-auto max-h-[160px] overflow-y-auto whitespace-pre-wrap break-words leading-[1.5] mt-[2px]",style:{background:"rgba(208, 84, 84, 0.04)",color:"var(--color-accent-red, #D05454)",border:"1px solid rgba(208, 84, 84, 0.12)"},children:o.message})]})}const ge={spawning:"var(--color-status-exploring)",running:"var(--color-status-executing)",paused:"var(--color-status-pending)",stopping:"var(--color-accent-orange)",stopped:"var(--color-status-pending)",error:"var(--color-accent-red)"},he={spawning:"var(--color-status-bg-exploring)",running:"var(--color-status-bg-executing)",paused:"var(--color-status-bg-pending)",stopping:"var(--color-status-bg-verifying)",stopped:"var(--color-status-bg-pending)",error:"var(--color-status-bg-blocked)"};function ve({entry:o}){const r=ge[o.status]??"var(--color-text-tertiary)",a=he[o.status]??"var(--color-bg-secondary)";return e.jsxs("div",{className:"flex items-center justify-center gap-[var(--spacing-2)] py-[var(--spacing-1-5)]",children:[e.jsx("span",{className:"flex-1 max-w-[80px] h-[1px]",style:{backgroundColor:"var(--color-border-divider)"}}),e.jsxs("span",{className:"inline-flex items-center gap-[5px] rounded-[var(--radius-full)] px-[10px] py-[2px] text-[10px] font-semibold",style:{backgroundColor:a,color:r},children:[e.jsx(T,{size:10,strokeWidth:2}),o.status,o.reason&&e.jsxs("span",{className:"text-text-tertiary",children:["-- ",o.reason]})]}),e.jsx("span",{className:"flex-1 max-w-[80px] h-[1px]",style:{backgroundColor:"var(--color-border-divider)"}})]})}function j(o){return o>=1e6?`${(o/1e6).toFixed(1)}M`:o>=1e3?`${(o/1e3).toFixed(1)}k`:String(o)}function fe({entry:o}){const r=o.inputTokens+o.outputTokens,t=Math.min(100,Math.round(r/2e5*100));return e.jsxs("div",{className:"flex items-center gap-[10px] px-3 py-[6px] rounded-[8px] border",style:{backgroundColor:"var(--color-bg-primary)",borderColor:"var(--color-border-divider)"},children:[e.jsx("span",{className:"text-[10px] font-medium",style:{color:"var(--color-text-tertiary)"},children:"Tokens"}),e.jsx("span",{className:"text-[11px] font-mono font-medium",style:{color:"var(--color-text-secondary)"},children:j(r)}),e.jsx("div",{className:"flex-1 max-w-[60px] h-1 rounded-[2px] overflow-hidden",style:{backgroundColor:"var(--color-bg-tertiary)"},children:e.jsx("div",{className:"h-full rounded-[2px]",style:{width:`${t}%`,backgroundColor:"var(--color-accent-orange)"}})}),e.jsx("span",{className:"w-px h-3",style:{backgroundColor:"var(--color-border-divider)"}}),o.cacheReadTokens!=null&&o.cacheReadTokens>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-[10px] font-medium",style:{color:"var(--color-text-tertiary)"},children:"Cache"}),e.jsx("span",{className:"text-[11px] font-mono font-medium",style:{color:"var(--color-text-secondary)"},children:j(o.cacheReadTokens)})]}),"cost"in o&&typeof o.cost=="number"&&e.jsxs("span",{className:"text-[10px] ml-auto",style:{color:"var(--color-text-tertiary)"},children:["$",o.cost.toFixed(3)]})]})}function Ce({entry:o,isGroupContinuation:r}){switch(o.type){case"user_message":return e.jsx(X,{entry:o});case"assistant_message":return e.jsx(re,{entry:o,isGroupContinuation:r});case"thinking":return e.jsx(te,{entry:o});case"tool_use":return e.jsx(le,{entry:o});case"file_change":return e.jsx(ie,{entry:o});case"command_exec":return e.jsx(de,{entry:o});case"approval_request":return e.jsx(pe,{entry:o});case"approval_response":return e.jsx(xe,{entry:o});case"error":return e.jsx(me,{entry:o});case"status_change":return e.jsx(ve,{entry:o});case"token_usage":return e.jsx(fe,{entry:o});default:return null}}export{k as A,Ce as E};
|