claude-code-workflow 7.2.15 → 7.2.16
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/.ccw/workflows/cli-templates/schemas/team-tasks-schema.json +255 -0
- package/.codex/agents/team-supervisor.toml +39 -0
- package/.codex/agents/team-worker.toml +46 -0
- package/.codex/skills/team-arch-opt/SKILL.md +151 -698
- package/.codex/skills/team-arch-opt/roles/analyzer/role.md +78 -0
- package/.codex/skills/team-arch-opt/roles/coordinator/commands/analyze.md +57 -0
- package/.codex/skills/team-arch-opt/roles/coordinator/commands/dispatch.md +287 -0
- package/.codex/skills/team-arch-opt/roles/coordinator/commands/monitor.md +204 -0
- package/.codex/skills/team-arch-opt/roles/coordinator/role.md +162 -0
- package/.codex/skills/team-arch-opt/roles/designer/role.md +115 -0
- package/.codex/skills/team-arch-opt/roles/refactorer/role.md +102 -0
- package/.codex/skills/team-arch-opt/roles/reviewer/role.md +111 -0
- package/.codex/skills/team-arch-opt/roles/validator/role.md +115 -0
- package/.codex/skills/team-arch-opt/specs/pipelines.md +102 -0
- package/.codex/skills/team-arch-opt/specs/team-config.json +263 -0
- package/.codex/skills/team-brainstorm/SKILL.md +167 -724
- package/.codex/skills/team-brainstorm/roles/challenger/role.md +61 -0
- package/.codex/skills/team-brainstorm/roles/coordinator/commands/analyze.md +58 -0
- package/.codex/skills/team-brainstorm/roles/coordinator/commands/dispatch.md +162 -0
- package/.codex/skills/team-brainstorm/roles/coordinator/commands/monitor.md +171 -0
- package/.codex/skills/team-brainstorm/roles/coordinator/role.md +140 -0
- package/.codex/skills/team-brainstorm/roles/evaluator/role.md +56 -0
- package/.codex/skills/team-brainstorm/roles/ideator/role.md +69 -0
- package/.codex/skills/team-brainstorm/roles/synthesizer/role.md +57 -0
- package/.codex/skills/team-brainstorm/specs/pipelines.md +72 -0
- package/.codex/skills/team-brainstorm/specs/team-config.json +86 -0
- package/.codex/skills/team-coordinate/SKILL.md +267 -667
- package/.codex/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +247 -0
- package/.codex/skills/team-coordinate/roles/coordinator/commands/dispatch.md +126 -0
- package/.codex/skills/team-coordinate/roles/coordinator/commands/monitor.md +327 -0
- package/.codex/skills/team-coordinate/roles/coordinator/role.md +361 -0
- package/.codex/skills/team-coordinate/specs/knowledge-transfer.md +111 -0
- package/.codex/skills/team-coordinate/specs/pipelines.md +97 -0
- package/.codex/skills/team-coordinate/specs/quality-gates.md +112 -0
- package/.codex/skills/team-coordinate/specs/role-spec-template.md +192 -0
- package/.codex/skills/team-designer/SKILL.md +153 -691
- package/.codex/skills/team-designer/phases/01-requirements-analysis.md +250 -0
- package/.codex/skills/team-designer/phases/02-scaffold-generation.md +228 -0
- package/.codex/skills/team-designer/phases/03-content-generation.md +330 -0
- package/.codex/skills/team-designer/phases/04-validation.md +320 -0
- package/.codex/skills/team-executor/SKILL.md +191 -515
- package/.codex/skills/team-executor/roles/executor/commands/monitor.md +280 -0
- package/.codex/skills/team-executor/roles/executor/role.md +170 -0
- package/.codex/skills/team-executor/specs/session-schema.md +264 -0
- package/.codex/skills/team-frontend/SKILL.md +129 -750
- package/.codex/skills/team-frontend/roles/analyst/role.md +92 -0
- package/.codex/skills/team-frontend/roles/architect/role.md +86 -0
- package/.codex/skills/team-frontend/roles/coordinator/commands/analyze.md +52 -0
- package/.codex/skills/team-frontend/roles/coordinator/commands/dispatch.md +151 -0
- package/.codex/skills/team-frontend/roles/coordinator/commands/monitor.md +188 -0
- package/.codex/skills/team-frontend/roles/coordinator/role.md +157 -0
- package/.codex/skills/team-frontend/roles/developer/role.md +93 -0
- package/.codex/skills/team-frontend/roles/qa/role.md +79 -0
- package/.codex/skills/team-frontend/specs/pipelines.md +76 -0
- package/.codex/skills/team-frontend/specs/team-config.json +84 -0
- package/.codex/skills/team-frontend-debug/SKILL.md +191 -821
- package/.codex/skills/team-frontend-debug/roles/analyzer/role.md +208 -0
- package/.codex/skills/team-frontend-debug/roles/coordinator/commands/analyze.md +174 -0
- package/.codex/skills/team-frontend-debug/roles/coordinator/commands/dispatch.md +198 -0
- package/.codex/skills/team-frontend-debug/roles/coordinator/commands/monitor.md +143 -0
- package/.codex/skills/team-frontend-debug/roles/coordinator/role.md +131 -0
- package/.codex/skills/team-frontend-debug/roles/fixer/role.md +147 -0
- package/.codex/skills/team-frontend-debug/roles/reproducer/role.md +147 -0
- package/.codex/skills/team-frontend-debug/roles/tester/role.md +231 -0
- package/.codex/skills/team-frontend-debug/roles/verifier/role.md +172 -0
- package/.codex/skills/team-frontend-debug/specs/debug-tools.md +215 -0
- package/.codex/skills/team-frontend-debug/specs/pipelines.md +94 -0
- package/.codex/skills/team-issue/SKILL.md +166 -751
- package/.codex/skills/team-issue/roles/coordinator/commands/analyze.md +64 -0
- package/.codex/skills/team-issue/roles/coordinator/commands/dispatch.md +273 -0
- package/.codex/skills/team-issue/roles/coordinator/commands/monitor.md +194 -0
- package/.codex/skills/team-issue/roles/coordinator/role.md +175 -0
- package/.codex/skills/team-issue/roles/explorer/role.md +94 -0
- package/.codex/skills/team-issue/roles/implementer/role.md +87 -0
- package/.codex/skills/team-issue/roles/integrator/role.md +84 -0
- package/.codex/skills/team-issue/roles/planner/role.md +81 -0
- package/.codex/skills/team-issue/roles/reviewer/role.md +86 -0
- package/.codex/skills/team-issue/specs/pipelines.md +124 -0
- package/.codex/skills/team-issue/specs/team-config.json +70 -0
- package/.codex/skills/team-iterdev/SKILL.md +134 -825
- package/.codex/skills/team-iterdev/roles/architect/role.md +65 -0
- package/.codex/skills/team-iterdev/roles/coordinator/commands/analyze.md +62 -0
- package/.codex/skills/team-iterdev/roles/coordinator/commands/dispatch.md +187 -0
- package/.codex/skills/team-iterdev/roles/coordinator/commands/monitor.md +186 -0
- package/.codex/skills/team-iterdev/roles/coordinator/role.md +161 -0
- package/.codex/skills/team-iterdev/roles/developer/role.md +74 -0
- package/.codex/skills/team-iterdev/roles/reviewer/role.md +66 -0
- package/.codex/skills/team-iterdev/roles/tester/role.md +88 -0
- package/.codex/skills/team-iterdev/specs/pipelines.md +94 -0
- package/.codex/skills/team-iterdev/specs/team-config.json +172 -0
- package/.codex/skills/team-lifecycle-v4/MIGRATION-PLAN.md +512 -0
- package/.codex/skills/team-lifecycle-v4/SKILL.md +166 -723
- package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +104 -0
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +56 -0
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +61 -0
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +177 -0
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/role.md +152 -0
- package/.codex/skills/team-lifecycle-v4/roles/executor/commands/fix.md +35 -0
- package/.codex/skills/team-lifecycle-v4/roles/executor/commands/implement.md +63 -0
- package/.codex/skills/team-lifecycle-v4/roles/executor/role.md +89 -0
- package/.codex/skills/team-lifecycle-v4/roles/planner/role.md +108 -0
- package/.codex/skills/team-lifecycle-v4/roles/reviewer/commands/review-code.md +57 -0
- package/.codex/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +44 -0
- package/.codex/skills/team-lifecycle-v4/roles/reviewer/role.md +98 -0
- package/.codex/skills/team-lifecycle-v4/roles/supervisor/role.md +210 -0
- package/.codex/skills/team-lifecycle-v4/roles/tester/role.md +126 -0
- package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +125 -0
- package/.codex/skills/team-lifecycle-v4/schemas/tasks-schema.md +82 -160
- package/.codex/skills/team-lifecycle-v4/specs/knowledge-transfer.md +136 -0
- package/.codex/skills/team-lifecycle-v4/specs/pipelines.md +125 -0
- package/.codex/skills/team-lifecycle-v4/specs/quality-gates.md +130 -0
- package/.codex/skills/team-perf-opt/SKILL.md +169 -697
- package/.codex/skills/team-perf-opt/roles/benchmarker/role.md +89 -0
- package/.codex/skills/team-perf-opt/roles/coordinator/commands/analyze.md +61 -0
- package/.codex/skills/team-perf-opt/roles/coordinator/commands/dispatch.md +262 -0
- package/.codex/skills/team-perf-opt/roles/coordinator/commands/monitor.md +320 -0
- package/.codex/skills/team-perf-opt/roles/coordinator/role.md +147 -0
- package/.codex/skills/team-perf-opt/roles/optimizer/role.md +97 -0
- package/.codex/skills/team-perf-opt/roles/profiler/role.md +73 -0
- package/.codex/skills/team-perf-opt/roles/reviewer/role.md +75 -0
- package/.codex/skills/team-perf-opt/roles/strategist/role.md +94 -0
- package/.codex/skills/team-perf-opt/specs/pipelines.md +65 -0
- package/.codex/skills/team-perf-opt/specs/team-config.json +246 -0
- package/.codex/skills/team-planex/SKILL.md +103 -477
- package/.codex/skills/team-planex/roles/coordinator/commands/analyze.md +52 -0
- package/.codex/skills/team-planex/roles/coordinator/commands/dispatch.md +80 -0
- package/.codex/skills/team-planex/roles/coordinator/commands/monitor.md +164 -0
- package/.codex/skills/team-planex/roles/coordinator/role.md +140 -0
- package/.codex/skills/team-planex/roles/executor/role.md +91 -0
- package/.codex/skills/team-planex/roles/planner/role.md +112 -0
- package/.codex/skills/team-planex/specs/pipelines.md +93 -0
- package/.codex/skills/team-quality-assurance/SKILL.md +148 -813
- package/.codex/skills/team-quality-assurance/roles/analyst/role.md +80 -0
- package/.codex/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -0
- package/.codex/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +108 -0
- package/.codex/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +209 -0
- package/.codex/skills/team-quality-assurance/roles/coordinator/role.md +143 -0
- package/.codex/skills/team-quality-assurance/roles/executor/role.md +66 -0
- package/.codex/skills/team-quality-assurance/roles/generator/role.md +68 -0
- package/.codex/skills/team-quality-assurance/roles/scout/role.md +67 -0
- package/.codex/skills/team-quality-assurance/roles/strategist/role.md +71 -0
- package/.codex/skills/team-quality-assurance/specs/pipelines.md +115 -0
- package/.codex/skills/team-quality-assurance/specs/team-config.json +131 -0
- package/.codex/skills/team-review/SKILL.md +148 -533
- package/.codex/skills/team-review/roles/coordinator/commands/analyze.md +71 -0
- package/.codex/skills/team-review/roles/coordinator/commands/dispatch.md +90 -0
- package/.codex/skills/team-review/roles/coordinator/commands/monitor.md +185 -0
- package/.codex/skills/team-review/roles/coordinator/role.md +142 -0
- package/.codex/skills/team-review/roles/fixer/role.md +76 -0
- package/.codex/skills/team-review/roles/reviewer/role.md +68 -0
- package/.codex/skills/team-review/roles/scanner/role.md +71 -0
- package/.codex/skills/team-review/specs/dimensions.md +82 -0
- package/.codex/skills/team-review/specs/finding-schema.json +82 -0
- package/.codex/skills/team-review/specs/pipelines.md +102 -0
- package/.codex/skills/team-review/specs/team-config.json +27 -0
- package/.codex/skills/team-roadmap-dev/SKILL.md +162 -683
- package/.codex/skills/team-roadmap-dev/roles/coordinator/commands/analyze.md +61 -0
- package/.codex/skills/team-roadmap-dev/roles/coordinator/commands/dispatch.md +241 -0
- package/.codex/skills/team-roadmap-dev/roles/coordinator/commands/monitor.md +468 -0
- package/.codex/skills/team-roadmap-dev/roles/coordinator/commands/pause.md +90 -0
- package/.codex/skills/team-roadmap-dev/roles/coordinator/commands/resume.md +137 -0
- package/.codex/skills/team-roadmap-dev/roles/coordinator/commands/roadmap-discuss.md +243 -0
- package/.codex/skills/team-roadmap-dev/roles/coordinator/role.md +303 -0
- package/.codex/skills/team-roadmap-dev/roles/executor/role.md +71 -0
- package/.codex/skills/team-roadmap-dev/roles/planner/role.md +76 -0
- package/.codex/skills/team-roadmap-dev/roles/verifier/role.md +74 -0
- package/.codex/skills/team-roadmap-dev/specs/pipelines.md +93 -0
- package/.codex/skills/team-roadmap-dev/specs/team-config.json +95 -0
- package/.codex/skills/team-tech-debt/SKILL.md +129 -708
- package/.codex/skills/team-tech-debt/roles/assessor/role.md +69 -0
- package/.codex/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -0
- package/.codex/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +163 -0
- package/.codex/skills/team-tech-debt/roles/coordinator/commands/monitor.md +231 -0
- package/.codex/skills/team-tech-debt/roles/coordinator/role.md +141 -0
- package/.codex/skills/team-tech-debt/roles/executor/role.md +76 -0
- package/.codex/skills/team-tech-debt/roles/planner/role.md +69 -0
- package/.codex/skills/team-tech-debt/roles/scanner/role.md +82 -0
- package/.codex/skills/team-tech-debt/roles/validator/role.md +75 -0
- package/.codex/skills/team-tech-debt/specs/pipelines.md +47 -0
- package/.codex/skills/team-tech-debt/specs/team-config.json +129 -0
- package/.codex/skills/team-testing/SKILL.md +144 -769
- package/.codex/skills/team-testing/roles/analyst/role.md +95 -0
- package/.codex/skills/team-testing/roles/coordinator/commands/analyze.md +70 -0
- package/.codex/skills/team-testing/roles/coordinator/commands/dispatch.md +106 -0
- package/.codex/skills/team-testing/roles/coordinator/commands/monitor.md +242 -0
- package/.codex/skills/team-testing/roles/coordinator/role.md +151 -0
- package/.codex/skills/team-testing/roles/executor/role.md +96 -0
- package/.codex/skills/team-testing/roles/generator/role.md +95 -0
- package/.codex/skills/team-testing/roles/strategist/role.md +83 -0
- package/.codex/skills/team-testing/specs/pipelines.md +101 -0
- package/.codex/skills/team-testing/specs/team-config.json +93 -0
- package/.codex/skills/team-uidesign/SKILL.md +133 -767
- package/.codex/skills/team-uidesign/roles/coordinator/commands/analyze.md +59 -0
- package/.codex/skills/team-uidesign/roles/coordinator/commands/dispatch.md +156 -0
- package/.codex/skills/team-uidesign/roles/coordinator/commands/monitor.md +194 -0
- package/.codex/skills/team-uidesign/roles/coordinator/role.md +179 -0
- package/.codex/skills/team-uidesign/roles/designer/role.md +69 -0
- package/.codex/skills/team-uidesign/roles/implementer/role.md +72 -0
- package/.codex/skills/team-uidesign/roles/researcher/role.md +82 -0
- package/.codex/skills/team-uidesign/roles/reviewer/role.md +67 -0
- package/.codex/skills/team-uidesign/specs/pipelines.md +76 -0
- package/.codex/skills/team-uidesign/specs/team-config.json +107 -0
- package/.codex/skills/team-ultra-analyze/SKILL.md +166 -786
- package/.codex/skills/team-ultra-analyze/roles/analyst/role.md +90 -0
- package/.codex/skills/team-ultra-analyze/roles/coordinator/commands/analyze.md +73 -0
- package/.codex/skills/team-ultra-analyze/roles/coordinator/commands/dispatch.md +225 -0
- package/.codex/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +327 -0
- package/.codex/skills/team-ultra-analyze/roles/coordinator/role.md +223 -0
- package/.codex/skills/team-ultra-analyze/roles/discussant/role.md +104 -0
- package/.codex/skills/team-ultra-analyze/roles/explorer/role.md +74 -0
- package/.codex/skills/team-ultra-analyze/roles/synthesizer/role.md +78 -0
- package/.codex/skills/team-ultra-analyze/specs/pipelines.md +64 -0
- package/.codex/skills/team-ultra-analyze/specs/team-config.json +129 -0
- package/.codex/skills/team-ux-improve/SKILL.md +142 -638
- package/.codex/skills/team-ux-improve/roles/coordinator/commands/analyze.md +62 -0
- package/.codex/skills/team-ux-improve/roles/coordinator/commands/dispatch.md +233 -0
- package/.codex/skills/team-ux-improve/roles/coordinator/commands/monitor.md +160 -0
- package/.codex/skills/team-ux-improve/roles/coordinator/role.md +138 -0
- package/.codex/skills/team-ux-improve/roles/designer/role.md +122 -0
- package/.codex/skills/team-ux-improve/roles/diagnoser/role.md +93 -0
- package/.codex/skills/team-ux-improve/roles/explorer/role.md +77 -0
- package/.codex/skills/team-ux-improve/roles/implementer/role.md +102 -0
- package/.codex/skills/team-ux-improve/roles/scanner/role.md +93 -0
- package/.codex/skills/team-ux-improve/roles/tester/role.md +84 -0
- package/.codex/skills/team-ux-improve/specs/pipelines.md +54 -0
- package/.codex/skills/team-ux-improve/specs/team-config.json +181 -0
- package/.codex/skills/team-ux-improve/wisdom/anti-patterns/common-ux-pitfalls.md +17 -0
- package/.codex/skills/team-ux-improve/wisdom/contributions/.gitkeep +0 -0
- package/.codex/skills/team-ux-improve/wisdom/patterns/state-management.md +14 -0
- package/.codex/skills/team-ux-improve/wisdom/patterns/ui-feedback.md +16 -0
- package/.codex/skills/team-ux-improve/wisdom/principles/general-ux.md +16 -0
- package/ccw/dist/core/routes/cli-settings-routes.d.ts.map +1 -1
- package/ccw/dist/core/routes/cli-settings-routes.js +135 -133
- package/ccw/dist/core/routes/cli-settings-routes.js.map +1 -1
- package/ccw/frontend/dist/assets/{AlertDialog-BW9jiZ-p.js → AlertDialog-CnpjWAGm.js} +2 -2
- package/ccw/frontend/dist/assets/{AlertDialog-BW9jiZ-p.js.map → AlertDialog-CnpjWAGm.js.map} +1 -1
- package/ccw/frontend/dist/assets/{AnalysisPage-ds-w_nVO.js → AnalysisPage-BT2rDDUD.js} +2 -2
- package/ccw/frontend/dist/assets/{AnalysisPage-ds-w_nVO.js.map → AnalysisPage-BT2rDDUD.js.map} +1 -1
- package/ccw/frontend/dist/assets/{ApiSettingsPage-DlCbXxTz.js → ApiSettingsPage-DGpjiNVu.js} +2 -2
- package/ccw/frontend/dist/assets/{ApiSettingsPage-DlCbXxTz.js.map → ApiSettingsPage-DGpjiNVu.js.map} +1 -1
- package/ccw/frontend/dist/assets/{CliModeToggle-Dq3nL4fF.js → CliModeToggle-BqUadHn3.js} +2 -2
- package/ccw/frontend/dist/assets/{CliModeToggle-Dq3nL4fF.js.map → CliModeToggle-BqUadHn3.js.map} +1 -1
- package/ccw/frontend/dist/assets/{CliSessionSharePage-BNDkEE4u.js → CliSessionSharePage-C3AdsDkm.js} +2 -2
- package/ccw/frontend/dist/assets/{CliSessionSharePage-BNDkEE4u.js.map → CliSessionSharePage-C3AdsDkm.js.map} +1 -1
- package/ccw/frontend/dist/assets/{CliViewerPage-ChM-uNx_.js → CliViewerPage-BZXpgY0N.js} +2 -2
- package/ccw/frontend/dist/assets/{CliViewerPage-ChM-uNx_.js.map → CliViewerPage-BZXpgY0N.js.map} +1 -1
- package/ccw/frontend/dist/assets/{CodexLensPage-DOcsYNQk.js → CodexLensPage-CePoJz-u.js} +2 -2
- package/ccw/frontend/dist/assets/{CodexLensPage-DOcsYNQk.js.map → CodexLensPage-CePoJz-u.js.map} +1 -1
- package/ccw/frontend/dist/assets/{Collapsible-CRNbykXN.js → Collapsible-DXVzWwmb.js} +2 -2
- package/ccw/frontend/dist/assets/{Collapsible-CRNbykXN.js.map → Collapsible-DXVzWwmb.js.map} +1 -1
- package/ccw/frontend/dist/assets/{CommandsManagerPage-C2JWcemF.js → CommandsManagerPage-B6wJYF0z.js} +2 -2
- package/ccw/frontend/dist/assets/{CommandsManagerPage-C2JWcemF.js.map → CommandsManagerPage-B6wJYF0z.js.map} +1 -1
- package/ccw/frontend/dist/assets/{DeepWikiPage-CvleOtJy.js → DeepWikiPage-D55fcvSk.js} +2 -2
- package/ccw/frontend/dist/assets/{DeepWikiPage-CvleOtJy.js.map → DeepWikiPage-D55fcvSk.js.map} +1 -1
- package/ccw/frontend/dist/assets/{EndpointsPage-CMOWQG64.js → EndpointsPage-DcGziJ5t.js} +2 -2
- package/ccw/frontend/dist/assets/{EndpointsPage-CMOWQG64.js.map → EndpointsPage-DcGziJ5t.js.map} +1 -1
- package/ccw/frontend/dist/assets/{ExplorerPage-DaFPRlNo.js → ExplorerPage-C4eKzn7F.js} +2 -2
- package/ccw/frontend/dist/assets/{ExplorerPage-DaFPRlNo.js.map → ExplorerPage-C4eKzn7F.js.map} +1 -1
- package/ccw/frontend/dist/assets/{FixSessionPage-CC4p04Az.js → FixSessionPage-BUHh954A.js} +2 -2
- package/ccw/frontend/dist/assets/{FixSessionPage-CC4p04Az.js.map → FixSessionPage-BUHh954A.js.map} +1 -1
- package/ccw/frontend/dist/assets/{FloatingFileBrowser-DROn1xZ5.js → FloatingFileBrowser-C3GF_u1C.js} +2 -2
- package/ccw/frontend/dist/assets/{FloatingFileBrowser-DROn1xZ5.js.map → FloatingFileBrowser-C3GF_u1C.js.map} +1 -1
- package/ccw/frontend/dist/assets/{FloatingPanel-CmL_yhDv.js → FloatingPanel-Cn-q9PyJ.js} +2 -2
- package/ccw/frontend/dist/assets/{FloatingPanel-CmL_yhDv.js.map → FloatingPanel-Cn-q9PyJ.js.map} +1 -1
- package/ccw/frontend/dist/assets/{GraphExplorerPage-DCV5ybKE.js → GraphExplorerPage-DIpqgvoU.js} +2 -2
- package/ccw/frontend/dist/assets/{GraphExplorerPage-DCV5ybKE.js.map → GraphExplorerPage-DIpqgvoU.js.map} +1 -1
- package/ccw/frontend/dist/assets/{HistoryPage-D0fYQZgc.js → HistoryPage-DzSvEAFe.js} +2 -2
- package/ccw/frontend/dist/assets/{HistoryPage-D0fYQZgc.js.map → HistoryPage-DzSvEAFe.js.map} +1 -1
- package/ccw/frontend/dist/assets/{HookManagerPage-D2FuJfsM.js → HookManagerPage-C6LDhWrH.js} +2 -2
- package/ccw/frontend/dist/assets/{HookManagerPage-D2FuJfsM.js.map → HookManagerPage-C6LDhWrH.js.map} +1 -1
- package/ccw/frontend/dist/assets/{InstallationsPage-tjklillZ.js → InstallationsPage-D9ct9xFV.js} +2 -2
- package/ccw/frontend/dist/assets/{InstallationsPage-tjklillZ.js.map → InstallationsPage-D9ct9xFV.js.map} +1 -1
- package/ccw/frontend/dist/assets/{IssueHubPage-E4JVrhO1.js → IssueHubPage-CXgDC8pS.js} +2 -2
- package/ccw/frontend/dist/assets/{IssueHubPage-E4JVrhO1.js.map → IssueHubPage-CXgDC8pS.js.map} +1 -1
- package/ccw/frontend/dist/assets/{LiteTasksPage-aJuRoyLt.js → LiteTasksPage-DMkauCwG.js} +2 -2
- package/ccw/frontend/dist/assets/{LiteTasksPage-aJuRoyLt.js.map → LiteTasksPage-DMkauCwG.js.map} +1 -1
- package/ccw/frontend/dist/assets/{McpManagerPage-BJeuWJv1.js → McpManagerPage-DhLDydgc.js} +2 -2
- package/ccw/frontend/dist/assets/{McpManagerPage-BJeuWJv1.js.map → McpManagerPage-DhLDydgc.js.map} +1 -1
- package/ccw/frontend/dist/assets/{MemoryPage-BI4FAXhs.js → MemoryPage-Be3nhq40.js} +2 -2
- package/ccw/frontend/dist/assets/{MemoryPage-BI4FAXhs.js.map → MemoryPage-Be3nhq40.js.map} +1 -1
- package/ccw/frontend/dist/assets/{NotFoundPage-DD2svchp.js → NotFoundPage-0yGnCePd.js} +2 -2
- package/ccw/frontend/dist/assets/{NotFoundPage-DD2svchp.js.map → NotFoundPage-0yGnCePd.js.map} +1 -1
- package/ccw/frontend/dist/assets/{OrchestratorPage-FC__7yYa.js → OrchestratorPage-_SmXZcGl.js} +2 -2
- package/ccw/frontend/dist/assets/{OrchestratorPage-FC__7yYa.js.map → OrchestratorPage-_SmXZcGl.js.map} +1 -1
- package/ccw/frontend/dist/assets/{ProjectOverviewPage-DBB_-FzV.js → ProjectOverviewPage-BeXTMsdo.js} +2 -2
- package/ccw/frontend/dist/assets/{ProjectOverviewPage-DBB_-FzV.js.map → ProjectOverviewPage-BeXTMsdo.js.map} +1 -1
- package/ccw/frontend/dist/assets/{PromptHistoryPage-BwOAvCH8.js → PromptHistoryPage-DS6ycuAv.js} +2 -2
- package/ccw/frontend/dist/assets/{PromptHistoryPage-BwOAvCH8.js.map → PromptHistoryPage-DS6ycuAv.js.map} +1 -1
- package/ccw/frontend/dist/assets/{ReviewSessionPage-Dd1-g_gp.js → ReviewSessionPage-BoqyjhPo.js} +2 -2
- package/ccw/frontend/dist/assets/{ReviewSessionPage-Dd1-g_gp.js.map → ReviewSessionPage-BoqyjhPo.js.map} +1 -1
- package/ccw/frontend/dist/assets/{RulesManagerPage-B3RGdsKD.js → RulesManagerPage-DMAwkKlc.js} +2 -2
- package/ccw/frontend/dist/assets/{RulesManagerPage-B3RGdsKD.js.map → RulesManagerPage-DMAwkKlc.js.map} +1 -1
- package/ccw/frontend/dist/assets/{SessionDetailPage-DM-W5R8K.js → SessionDetailPage-BgJRHIF4.js} +2 -2
- package/ccw/frontend/dist/assets/{SessionDetailPage-DM-W5R8K.js.map → SessionDetailPage-BgJRHIF4.js.map} +1 -1
- package/ccw/frontend/dist/assets/{SessionsPage-BVz1KCc7.js → SessionsPage-DBPdWlji.js} +2 -2
- package/ccw/frontend/dist/assets/{SessionsPage-BVz1KCc7.js.map → SessionsPage-DBPdWlji.js.map} +1 -1
- package/ccw/frontend/dist/assets/{SettingsPage-ComW7EZS.js → SettingsPage-BY3QiJhm.js} +4 -4
- package/ccw/frontend/dist/assets/{SettingsPage-ComW7EZS.js.map → SettingsPage-BY3QiJhm.js.map} +1 -1
- package/ccw/frontend/dist/assets/{SkillsManagerPage-CKom9XwV.js → SkillsManagerPage-DS101Adm.js} +2 -2
- package/ccw/frontend/dist/assets/{SkillsManagerPage-CKom9XwV.js.map → SkillsManagerPage-DS101Adm.js.map} +1 -1
- package/ccw/frontend/dist/assets/{SpecsSettingsPage-DQz7WP2s.js → SpecsSettingsPage-BcsLu1qq.js} +2 -2
- package/ccw/frontend/dist/assets/{SpecsSettingsPage-DQz7WP2s.js.map → SpecsSettingsPage-BcsLu1qq.js.map} +1 -1
- package/ccw/frontend/dist/assets/{Switch-BPMdND9H.js → Switch-BL9AmNPC.js} +2 -2
- package/ccw/frontend/dist/assets/{Switch-BPMdND9H.js.map → Switch-BL9AmNPC.js.map} +1 -1
- package/ccw/frontend/dist/assets/{TabsNavigation-qqt70VYL.js → TabsNavigation-BUcjsLeE.js} +2 -2
- package/ccw/frontend/dist/assets/{TabsNavigation-qqt70VYL.js.map → TabsNavigation-BUcjsLeE.js.map} +1 -1
- package/ccw/frontend/dist/assets/{TaskDrawer-BqK_qiHX.js → TaskDrawer-BNvfS6dq.js} +2 -2
- package/ccw/frontend/dist/assets/{TaskDrawer-BqK_qiHX.js.map → TaskDrawer-BNvfS6dq.js.map} +1 -1
- package/ccw/frontend/dist/assets/{TeamPage-u5_i0Rgh.js → TeamPage-CT-zNCrF.js} +2 -2
- package/ccw/frontend/dist/assets/{TeamPage-u5_i0Rgh.js.map → TeamPage-CT-zNCrF.js.map} +1 -1
- package/ccw/frontend/dist/assets/{TerminalDashboardPage-rUtC9e40.js → TerminalDashboardPage-DfZFGs8g.js} +2 -2
- package/ccw/frontend/dist/assets/{TerminalDashboardPage-rUtC9e40.js.map → TerminalDashboardPage-DfZFGs8g.js.map} +1 -1
- package/ccw/frontend/dist/assets/{archive-C3u8YNQF.js → archive-Cev1SaQq.js} +2 -2
- package/ccw/frontend/dist/assets/{archive-C3u8YNQF.js.map → archive-Cev1SaQq.js.map} +1 -1
- package/ccw/frontend/dist/assets/{archive-restore-DfQ998g5.js → archive-restore-BIVluaHZ.js} +2 -2
- package/ccw/frontend/dist/assets/{archive-restore-DfQ998g5.js.map → archive-restore-BIVluaHZ.js.map} +1 -1
- package/ccw/frontend/dist/assets/{arrow-right-BshJM9Po.js → arrow-right-DrivbS5j.js} +2 -2
- package/ccw/frontend/dist/assets/{arrow-right-BshJM9Po.js.map → arrow-right-DrivbS5j.js.map} +1 -1
- package/ccw/frontend/dist/assets/{bookmark-plus-D03qJyOZ.js → bookmark-plus-DKyzL0Xg.js} +2 -2
- package/ccw/frontend/dist/assets/{bookmark-plus-D03qJyOZ.js.map → bookmark-plus-DKyzL0Xg.js.map} +1 -1
- package/ccw/frontend/dist/assets/{bot-CyzWuwq0.js → bot-GBUkPAe3.js} +2 -2
- package/ccw/frontend/dist/assets/{bot-CyzWuwq0.js.map → bot-GBUkPAe3.js.map} +1 -1
- package/ccw/frontend/dist/assets/{braces-BPgtyjsG.js → braces-BWhm2c4g.js} +2 -2
- package/ccw/frontend/dist/assets/{braces-BPgtyjsG.js.map → braces-BWhm2c4g.js.map} +1 -1
- package/ccw/frontend/dist/assets/{circle-stop-Dix1AOmw.js → circle-stop-CBcZSKNp.js} +2 -2
- package/ccw/frontend/dist/assets/{circle-stop-Dix1AOmw.js.map → circle-stop-CBcZSKNp.js.map} +1 -1
- package/ccw/frontend/dist/assets/{cpu-CCQ4Q0Zh.js → cpu-CzNmuTZD.js} +2 -2
- package/ccw/frontend/dist/assets/{cpu-CCQ4Q0Zh.js.map → cpu-CzNmuTZD.js.map} +1 -1
- package/ccw/frontend/dist/assets/{ellipsis-vertical-BpTysg-Y.js → ellipsis-vertical-BoIyQKaI.js} +2 -2
- package/ccw/frontend/dist/assets/{ellipsis-vertical-BpTysg-Y.js.map → ellipsis-vertical-BoIyQKaI.js.map} +1 -1
- package/ccw/frontend/dist/assets/{eye-DGY1rAZs.js → eye-BqxyhxQq.js} +2 -2
- package/ccw/frontend/dist/assets/{eye-DGY1rAZs.js.map → eye-BqxyhxQq.js.map} +1 -1
- package/ccw/frontend/dist/assets/{eye-off-D8t3JfWG.js → eye-off-D9dTZP1A.js} +2 -2
- package/ccw/frontend/dist/assets/{eye-off-D8t3JfWG.js.map → eye-off-D9dTZP1A.js.map} +1 -1
- package/ccw/frontend/dist/assets/{file-json-BAdJb0n8.js → file-json-CLYEUI6e.js} +2 -2
- package/ccw/frontend/dist/assets/{file-json-BAdJb0n8.js.map → file-json-CLYEUI6e.js.map} +1 -1
- package/ccw/frontend/dist/assets/{file-text-DrJFiOUB.js → file-text-D5j9C5XC.js} +2 -2
- package/ccw/frontend/dist/assets/{file-text-DrJFiOUB.js.map → file-text-D5j9C5XC.js.map} +1 -1
- package/ccw/frontend/dist/assets/{filter-CKqzYbz7.js → filter-CEUK5jsA.js} +2 -2
- package/ccw/frontend/dist/assets/{filter-CKqzYbz7.js.map → filter-CEUK5jsA.js.map} +1 -1
- package/ccw/frontend/dist/assets/{folder-CV8511y9.js → folder-BEOY8txM.js} +2 -2
- package/ccw/frontend/dist/assets/{folder-CV8511y9.js.map → folder-BEOY8txM.js.map} +1 -1
- package/ccw/frontend/dist/assets/{gauge-XKvmu_uU.js → gauge-CbumHmVn.js} +2 -2
- package/ccw/frontend/dist/assets/{gauge-XKvmu_uU.js.map → gauge-CbumHmVn.js.map} +1 -1
- package/ccw/frontend/dist/assets/{globe-C56cDUzX.js → globe-D8_IB9gV.js} +2 -2
- package/ccw/frontend/dist/assets/{globe-C56cDUzX.js.map → globe-D8_IB9gV.js.map} +1 -1
- package/ccw/frontend/dist/assets/{grid-3x3-Bya-suFW.js → grid-3x3-BpzWmYF5.js} +2 -2
- package/ccw/frontend/dist/assets/{grid-3x3-Bya-suFW.js.map → grid-3x3-BpzWmYF5.js.map} +1 -1
- package/ccw/frontend/dist/assets/{hard-drive-CmuTZpsB.js → hard-drive-QIHpGln7.js} +2 -2
- package/ccw/frontend/dist/assets/{hard-drive-CmuTZpsB.js.map → hard-drive-QIHpGln7.js.map} +1 -1
- package/ccw/frontend/dist/assets/{hash-CRPT_tJQ.js → hash-CP0YRHVs.js} +2 -2
- package/ccw/frontend/dist/assets/{hash-CRPT_tJQ.js.map → hash-CP0YRHVs.js.map} +1 -1
- package/ccw/frontend/dist/assets/{history-C1pJZQCL.js → history-hOjgVKax.js} +2 -2
- package/ccw/frontend/dist/assets/{history-C1pJZQCL.js.map → history-hOjgVKax.js.map} +1 -1
- package/ccw/frontend/dist/assets/{index-Dmt9OiEf.js → index-B_ysvdnP.js} +2 -2
- package/ccw/frontend/dist/assets/{index-Dmt9OiEf.js.map → index-B_ysvdnP.js.map} +1 -1
- package/ccw/frontend/dist/assets/{index-dWT2M6Ef.js → index-C5Oqx2xI.js} +3 -3
- package/ccw/frontend/dist/assets/{index-dWT2M6Ef.js.map → index-C5Oqx2xI.js.map} +1 -1
- package/ccw/frontend/dist/assets/{index-CI8-rBff.js → index-CJi0bWL-.js} +2 -2
- package/ccw/frontend/dist/assets/{index-CI8-rBff.js.map → index-CJi0bWL-.js.map} +1 -1
- package/ccw/frontend/dist/assets/{index-anSMmEF8.js → index-CdQpo1x0.js} +2 -2
- package/ccw/frontend/dist/assets/{index-anSMmEF8.js.map → index-CdQpo1x0.js.map} +1 -1
- package/ccw/frontend/dist/assets/{layout-grid-TSO0BFQE.js → layout-grid-C38fQyLs.js} +2 -2
- package/ccw/frontend/dist/assets/{layout-grid-TSO0BFQE.js.map → layout-grid-C38fQyLs.js.map} +1 -1
- package/ccw/frontend/dist/assets/{lightbulb-Caj6fIQD.js → lightbulb-CClbCUzu.js} +2 -2
- package/ccw/frontend/dist/assets/{lightbulb-Caj6fIQD.js.map → lightbulb-CClbCUzu.js.map} +1 -1
- package/ccw/frontend/dist/assets/{link-2-DE9lMxa-.js → link-2-CB-LKbI0.js} +2 -2
- package/ccw/frontend/dist/assets/{link-2-DE9lMxa-.js.map → link-2-CB-LKbI0.js.map} +1 -1
- package/ccw/frontend/dist/assets/{link-BZtPgLW0.js → link-BK6SBzHS.js} +2 -2
- package/ccw/frontend/dist/assets/{link-BZtPgLW0.js.map → link-BK6SBzHS.js.map} +1 -1
- package/ccw/frontend/dist/assets/{list-DubWyY-U.js → list-BME_WOA_.js} +2 -2
- package/ccw/frontend/dist/assets/{list-DubWyY-U.js.map → list-BME_WOA_.js.map} +1 -1
- package/ccw/frontend/dist/assets/{map-pin-DwN_48AF.js → map-pin-ADsnCyjJ.js} +2 -2
- package/ccw/frontend/dist/assets/{map-pin-DwN_48AF.js.map → map-pin-ADsnCyjJ.js.map} +1 -1
- package/ccw/frontend/dist/assets/{messages-square-bjxvaiM9.js → messages-square-CLflB1Cq.js} +2 -2
- package/ccw/frontend/dist/assets/{messages-square-bjxvaiM9.js.map → messages-square-CLflB1Cq.js.map} +1 -1
- package/ccw/frontend/dist/assets/{minimize-2-CGfBKD_V.js → minimize-2-B3ZNzfGr.js} +2 -2
- package/ccw/frontend/dist/assets/{minimize-2-CGfBKD_V.js.map → minimize-2-B3ZNzfGr.js.map} +1 -1
- package/ccw/frontend/dist/assets/{package-nzWY6ilt.js → package-CByPhtMG.js} +2 -2
- package/ccw/frontend/dist/assets/{package-nzWY6ilt.js.map → package-CByPhtMG.js.map} +1 -1
- package/ccw/frontend/dist/assets/{plug-CiLce49C.js → plug-BggRzPX9.js} +2 -2
- package/ccw/frontend/dist/assets/{plug-CiLce49C.js.map → plug-BggRzPX9.js.map} +1 -1
- package/ccw/frontend/dist/assets/{power-CFLmB-U9.js → power-CWuxQSJK.js} +2 -2
- package/ccw/frontend/dist/assets/{power-CFLmB-U9.js.map → power-CWuxQSJK.js.map} +1 -1
- package/ccw/frontend/dist/assets/{save-DuO6OF0C.js → save-BdJ6EX4Q.js} +2 -2
- package/ccw/frontend/dist/assets/{save-DuO6OF0C.js.map → save-BdJ6EX4Q.js.map} +1 -1
- package/ccw/frontend/dist/assets/{send-CZk9p0mM.js → send-Ce9wuY7Q.js} +2 -2
- package/ccw/frontend/dist/assets/{send-CZk9p0mM.js.map → send-Ce9wuY7Q.js.map} +1 -1
- package/ccw/frontend/dist/assets/{square-check-big-BY_1YQQg.js → square-check-big-D6jItkfw.js} +2 -2
- package/ccw/frontend/dist/assets/{square-check-big-BY_1YQQg.js.map → square-check-big-D6jItkfw.js.map} +1 -1
- package/ccw/frontend/dist/assets/{square-pen-CnZgm6g-.js → square-pen-Byxq21zp.js} +2 -2
- package/ccw/frontend/dist/assets/{square-pen-CnZgm6g-.js.map → square-pen-Byxq21zp.js.map} +1 -1
- package/ccw/frontend/dist/assets/{star-Cn1F0qy7.js → star-Codj9dvK.js} +2 -2
- package/ccw/frontend/dist/assets/{star-Cn1F0qy7.js.map → star-Codj9dvK.js.map} +1 -1
- package/ccw/frontend/dist/assets/{style-Dxs1iXCV.js → style-4bYpUGcc.js} +2 -2
- package/ccw/frontend/dist/assets/{style-Dxs1iXCV.js.map → style-4bYpUGcc.js.map} +1 -1
- package/ccw/frontend/dist/assets/{target-Bz1fLRKH.js → target-DKBoDNCn.js} +2 -2
- package/ccw/frontend/dist/assets/{target-Bz1fLRKH.js.map → target-DKBoDNCn.js.map} +1 -1
- package/ccw/frontend/dist/assets/{test-tube-C6qCYlDr.js → test-tube-DTqZcBtA.js} +2 -2
- package/ccw/frontend/dist/assets/{test-tube-C6qCYlDr.js.map → test-tube-DTqZcBtA.js.map} +1 -1
- package/ccw/frontend/dist/assets/{upload-C71kd4Qs.js → upload-DlUl-e6b.js} +2 -2
- package/ccw/frontend/dist/assets/{upload-C71kd4Qs.js.map → upload-DlUl-e6b.js.map} +1 -1
- package/ccw/frontend/dist/assets/{useApiSettings-CqP2BAJ7.js → useApiSettings-D4zhKKT-.js} +2 -2
- package/ccw/frontend/dist/assets/{useApiSettings-CqP2BAJ7.js.map → useApiSettings-D4zhKKT-.js.map} +1 -1
- package/ccw/frontend/dist/assets/{useCli-PCoPoVeM.js → useCli-D-qDwsAH.js} +2 -2
- package/ccw/frontend/dist/assets/{useCli-PCoPoVeM.js.map → useCli-D-qDwsAH.js.map} +1 -1
- package/ccw/frontend/dist/assets/{useCommands-3OfPQPw4.js → useCommands-B0sidbbW.js} +2 -2
- package/ccw/frontend/dist/assets/{useCommands-3OfPQPw4.js.map → useCommands-B0sidbbW.js.map} +1 -1
- package/ccw/frontend/dist/assets/{useDebounce-bXiFhQx9.js → useDebounce-eTtbKevt.js} +2 -2
- package/ccw/frontend/dist/assets/{useDebounce-bXiFhQx9.js.map → useDebounce-eTtbKevt.js.map} +1 -1
- package/ccw/frontend/dist/assets/{useFileExplorer-DEyUm46_.js → useFileExplorer-MGSK0h33.js} +2 -2
- package/ccw/frontend/dist/assets/{useFileExplorer-DEyUm46_.js.map → useFileExplorer-MGSK0h33.js.map} +1 -1
- package/ccw/frontend/dist/assets/{useLocale-sXTrdxcJ.js → useLocale-DDNxU7pJ.js} +2 -2
- package/ccw/frontend/dist/assets/{useLocale-sXTrdxcJ.js.map → useLocale-DDNxU7pJ.js.map} +1 -1
- package/ccw/frontend/dist/assets/{useSkills-D0W0kXYm.js → useSkills-CZCRBtMY.js} +3 -3
- package/ccw/frontend/dist/assets/{useSkills-D0W0kXYm.js.map → useSkills-CZCRBtMY.js.map} +1 -1
- package/ccw/frontend/dist/assets/{useSystemSettings-DZ-8lZsG.js → useSystemSettings-DfQEFXSD.js} +2 -2
- package/ccw/frontend/dist/assets/{useSystemSettings-DZ-8lZsG.js.map → useSystemSettings-DfQEFXSD.js.map} +1 -1
- package/ccw/frontend/dist/assets/{wand-sparkles-83GmAYuw.js → wand-sparkles-DCLvfgl1.js} +2 -2
- package/ccw/frontend/dist/assets/{wand-sparkles-83GmAYuw.js.map → wand-sparkles-DCLvfgl1.js.map} +1 -1
- package/ccw/frontend/dist/index.html +1 -1
- package/package.json +1 -1
- package/.codex/skills/team-arch-opt/agents/completion-handler.md +0 -138
- package/.codex/skills/team-arch-opt/agents/fix-cycle-handler.md +0 -146
- package/.codex/skills/team-arch-opt/agents/plan-reviewer.md +0 -150
- package/.codex/skills/team-arch-opt/instructions/agent-instruction.md +0 -114
- package/.codex/skills/team-arch-opt/schemas/tasks-schema.md +0 -174
- package/.codex/skills/team-brainstorm/agents/gc-controller.md +0 -122
- package/.codex/skills/team-brainstorm/agents/topic-clarifier.md +0 -126
- package/.codex/skills/team-brainstorm/instructions/agent-instruction.md +0 -105
- package/.codex/skills/team-brainstorm/schemas/tasks-schema.md +0 -171
- package/.codex/skills/team-coordinate/agents/completion-handler.md +0 -127
- package/.codex/skills/team-coordinate/agents/plan-reviewer.md +0 -145
- package/.codex/skills/team-coordinate/instructions/agent-instruction.md +0 -184
- package/.codex/skills/team-coordinate/schemas/tasks-schema.md +0 -165
- package/.codex/skills/team-designer/agents/requirement-clarifier.md +0 -247
- package/.codex/skills/team-designer/agents/validation-reporter.md +0 -186
- package/.codex/skills/team-designer/instructions/agent-instruction.md +0 -163
- package/.codex/skills/team-designer/schemas/tasks-schema.md +0 -180
- package/.codex/skills/team-executor/instructions/agent-instruction.md +0 -62
- package/.codex/skills/team-executor/schemas/tasks-schema.md +0 -141
- package/.codex/skills/team-frontend/agents/completion-handler.md +0 -131
- package/.codex/skills/team-frontend/agents/qa-gate-reviewer.md +0 -153
- package/.codex/skills/team-frontend/instructions/agent-instruction.md +0 -197
- package/.codex/skills/team-frontend/schemas/tasks-schema.md +0 -188
- package/.codex/skills/team-frontend-debug/agents/completion-handler.md +0 -142
- package/.codex/skills/team-frontend-debug/agents/conditional-skip-gate.md +0 -130
- package/.codex/skills/team-frontend-debug/agents/iteration-handler.md +0 -120
- package/.codex/skills/team-frontend-debug/instructions/agent-instruction.md +0 -272
- package/.codex/skills/team-frontend-debug/schemas/tasks-schema.md +0 -198
- package/.codex/skills/team-issue/agents/reviewer.md +0 -204
- package/.codex/skills/team-issue/instructions/agent-instruction.md +0 -198
- package/.codex/skills/team-issue/schemas/tasks-schema.md +0 -198
- package/.codex/skills/team-iterdev/agents/gc-controller.md +0 -193
- package/.codex/skills/team-iterdev/agents/task-analyzer.md +0 -206
- package/.codex/skills/team-iterdev/instructions/agent-instruction.md +0 -118
- package/.codex/skills/team-iterdev/schemas/tasks-schema.md +0 -174
- package/.codex/skills/team-lifecycle/SKILL.md +0 -906
- package/.codex/skills/team-lifecycle/agents/analyst.md +0 -424
- package/.codex/skills/team-lifecycle/agents/architect.md +0 -274
- package/.codex/skills/team-lifecycle/agents/discuss-agent.md +0 -422
- package/.codex/skills/team-lifecycle/agents/executor.md +0 -423
- package/.codex/skills/team-lifecycle/agents/explore-agent.md +0 -471
- package/.codex/skills/team-lifecycle/agents/fe-developer.md +0 -239
- package/.codex/skills/team-lifecycle/agents/fe-qa.md +0 -357
- package/.codex/skills/team-lifecycle/agents/planner.md +0 -437
- package/.codex/skills/team-lifecycle/agents/reviewer.md +0 -483
- package/.codex/skills/team-lifecycle/agents/tester.md +0 -423
- package/.codex/skills/team-lifecycle/agents/writer.md +0 -502
- package/.codex/skills/team-lifecycle/phases/01-requirement-clarification.md +0 -209
- package/.codex/skills/team-lifecycle/phases/02-team-initialization.md +0 -263
- package/.codex/skills/team-lifecycle/phases/03-task-chain-creation.md +0 -251
- package/.codex/skills/team-lifecycle/phases/04-pipeline-coordination.md +0 -831
- package/.codex/skills/team-lifecycle/phases/05-completion-report.md +0 -309
- package/.codex/skills/team-lifecycle/specs/document-standards.md +0 -192
- package/.codex/skills/team-lifecycle/specs/quality-gates.md +0 -207
- package/.codex/skills/team-lifecycle-v4/agents/quality-gate.md +0 -165
- package/.codex/skills/team-lifecycle-v4/agents/requirement-clarifier.md +0 -163
- package/.codex/skills/team-lifecycle-v4/agents/supervisor.md +0 -182
- package/.codex/skills/team-perf-opt/agents/completion-handler.md +0 -141
- package/.codex/skills/team-perf-opt/agents/fix-cycle-handler.md +0 -156
- package/.codex/skills/team-perf-opt/agents/plan-reviewer.md +0 -150
- package/.codex/skills/team-perf-opt/instructions/agent-instruction.md +0 -122
- package/.codex/skills/team-perf-opt/schemas/tasks-schema.md +0 -174
- package/.codex/skills/team-planex/instructions/agent-instruction.md +0 -301
- package/.codex/skills/team-planex/schemas/tasks-schema.md +0 -198
- package/.codex/skills/team-planex-v2/SKILL.md +0 -652
- package/.codex/skills/team-planex-v2/instructions/agent-instruction.md +0 -193
- package/.codex/skills/team-planex-v2/schemas/tasks-schema.md +0 -206
- package/.codex/skills/team-quality-assurance/agents/executor.md +0 -192
- package/.codex/skills/team-quality-assurance/agents/gc-loop-handler.md +0 -163
- package/.codex/skills/team-quality-assurance/instructions/agent-instruction.md +0 -185
- package/.codex/skills/team-quality-assurance/schemas/tasks-schema.md +0 -190
- package/.codex/skills/team-review/agents/fixer.md +0 -360
- package/.codex/skills/team-review/instructions/agent-instruction.md +0 -102
- package/.codex/skills/team-review/schemas/tasks-schema.md +0 -143
- package/.codex/skills/team-roadmap-dev/agents/roadmap-discusser.md +0 -176
- package/.codex/skills/team-roadmap-dev/agents/roadmap-planner.md +0 -194
- package/.codex/skills/team-roadmap-dev/agents/roadmap-verifier.md +0 -221
- package/.codex/skills/team-roadmap-dev/instructions/executor-instruction.md +0 -55
- package/.codex/skills/team-roadmap-dev/schemas/tasks-schema.md +0 -144
- package/.codex/skills/team-tech-debt/agents/gc-loop-manager.md +0 -130
- package/.codex/skills/team-tech-debt/agents/plan-approver.md +0 -151
- package/.codex/skills/team-tech-debt/instructions/agent-instruction.md +0 -390
- package/.codex/skills/team-tech-debt/schemas/tasks-schema.md +0 -196
- package/.codex/skills/team-testing/agents/executor.md +0 -195
- package/.codex/skills/team-testing/agents/gc-loop-handler.md +0 -155
- package/.codex/skills/team-testing/instructions/agent-instruction.md +0 -142
- package/.codex/skills/team-testing/schemas/tasks-schema.md +0 -172
- package/.codex/skills/team-uidesign/agents/completion-handler.md +0 -177
- package/.codex/skills/team-uidesign/agents/gc-loop-handler.md +0 -162
- package/.codex/skills/team-uidesign/instructions/agent-instruction.md +0 -509
- package/.codex/skills/team-uidesign/schemas/tasks-schema.md +0 -187
- package/.codex/skills/team-ultra-analyze/agents/discussion-feedback.md +0 -155
- package/.codex/skills/team-ultra-analyze/agents/topic-analyzer.md +0 -153
- package/.codex/skills/team-ultra-analyze/instructions/agent-instruction.md +0 -169
- package/.codex/skills/team-ultra-analyze/schemas/tasks-schema.md +0 -180
- package/.codex/skills/team-ux-improve/agents/ux-designer.md +0 -136
- package/.codex/skills/team-ux-improve/agents/ux-explorer.md +0 -158
- package/.codex/skills/team-ux-improve/agents/ux-tester.md +0 -174
- package/.codex/skills/team-ux-improve/instructions/ux-worker-instruction.md +0 -55
- package/.codex/skills/team-ux-improve/schemas/tasks-schema.md +0 -87
- /package/.codex/skills/{team-lifecycle/templates/architecture-doc.md → team-lifecycle-v4/templates/architecture.md} +0 -0
- /package/.codex/skills/{team-lifecycle/templates/epics-template.md → team-lifecycle-v4/templates/epics.md} +0 -0
- /package/.codex/skills/{team-lifecycle → team-lifecycle-v4}/templates/product-brief.md +0 -0
- /package/.codex/skills/{team-lifecycle/templates/requirements-prd.md → team-lifecycle-v4/templates/requirements.md} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{eg as Ne,eh as be,ei as ye,ab as X,aF as Y,aH as Z,ej as we,ek as Te,el as _e,em as Ce,en as Se,eo as Me,u as T,j as e,e as k,J as ke,B as p,cA as U,aV as ee,a1 as se,bu as Fe,R as de,ep as Ae,eq as Le,ad as Ee,N as H,k as Pe,c as j,C as L,a as E,r as h,cy as me,ap as te,X as xe,aq as W,ar as I,as as J,at as G,au as D,er as De,es as $e,ao as Re,D as qe,d as ze,f as Ve,g as B,h as re,T as Be,l as Oe,b as Ke,I as Qe,x as Ue,y as We,z as Ie,A as Je,E as Ge,G as He,o as ne,s as Xe,aw as Ye}from"./index-dWT2M6Ef.js";import{T as ue}from"./TabsNavigation-qqt70VYL.js";import{S as Ze}from"./Switch-BPMdND9H.js";import{F as es}from"./filter-CKqzYbz7.js";import{F as ae}from"./file-text-DrJFiOUB.js";import{P as Q}from"./package-nzWY6ilt.js";import{F as ss}from"./folder-CV8511y9.js";import{F as ts}from"./file-json-BAdJb0n8.js";import{E as as}from"./ellipsis-vertical-BpTysg-Y.js";import{E as rs}from"./eye-DGY1rAZs.js";import{A as ns}from"./archive-restore-DfQ998g5.js";import{A as is}from"./archive-C3u8YNQF.js";import{M as ls,a as cs}from"./minimize-2-CGfBKD_V.js";const z=Ne()(be(ye(s=>({selectedTeam:null,autoRefresh:!0,messageFilter:{},timelineExpanded:!0,viewMode:"list",locationFilter:"active",searchQuery:"",detailTab:"pipeline",setSelectedTeam:t=>s({selectedTeam:t}),toggleAutoRefresh:()=>s(t=>({autoRefresh:!t.autoRefresh})),setMessageFilter:t=>s(a=>({messageFilter:{...a.messageFilter,...t}})),clearMessageFilter:()=>s({messageFilter:{}}),setTimelineExpanded:t=>s({timelineExpanded:t}),setViewMode:t=>s({viewMode:t}),setLocationFilter:t=>s({locationFilter:t}),setSearchQuery:t=>s({searchQuery:t}),setDetailTab:t=>s({detailTab:t}),selectTeamAndShowDetail:t=>s({selectedTeam:t,viewMode:"detail",detailTab:"pipeline"}),backToList:()=>s({viewMode:"list",detailTab:"pipeline"})}),{name:"ccw-team-store"}),{name:"TeamStore"})),S={all:["teams"],lists:()=>[...S.all,"list"],listByLocation:s=>[...S.lists(),s],messages:(s,t)=>[...S.all,"messages",s,t],status:s=>[...S.all,"status",s]};function he(s){var n;const t=z(i=>i.autoRefresh),a=s||"active",r=X({queryKey:S.listByLocation(a),queryFn:async()=>({teams:(await Ce(a)).teams??[]}),staleTime:1e4,refetchInterval:t?1e4:!1});return{teams:((n=r.data)==null?void 0:n.teams)??[],isLoading:r.isLoading,isFetching:r.isFetching,error:r.error,refetch:r.refetch}}function os(s,t,a){var i,l;const r=z(c=>c.autoRefresh),n=X({queryKey:S.messages(s??"",t),queryFn:async()=>{if(!s)return{total:0,showing:0,messages:[]};const c=await Se(s,{...t,last:50});return{total:c.total,showing:c.showing,messages:c.messages}},enabled:!!s,staleTime:5e3,refetchInterval:r?5e3:!1});return{messages:((i=n.data)==null?void 0:i.messages)??[],total:((l=n.data)==null?void 0:l.total)??0,isLoading:n.isLoading,error:n.error,refetch:n.refetch}}function ds(s){var r,n;const t=z(i=>i.autoRefresh),a=X({queryKey:S.status(s??""),queryFn:async()=>{if(!s)return{members:[],total_messages:0};const i=await Me(s);return{members:i.members,total_messages:i.total_messages}},enabled:!!s,staleTime:5e3,refetchInterval:t?5e3:!1});return{members:((r=a.data)==null?void 0:r.members)??[],totalMessages:((n=a.data)==null?void 0:n.total_messages)??0,isLoading:a.isLoading,error:a.error,refetch:a.refetch}}function ms(){const s=Y(),t=Z({mutationFn:we,onSuccess:()=>{s.invalidateQueries({queryKey:S.all})}});return{archiveTeam:t.mutateAsync,isArchiving:t.isPending,error:t.error}}function xs(){const s=Y(),t=Z({mutationFn:Te,onSuccess:()=>{s.invalidateQueries({queryKey:S.all})}});return{unarchiveTeam:t.mutateAsync,isUnarchiving:t.isPending,error:t.error}}function us(){const s=Y(),t=Z({mutationFn:_e,onSuccess:()=>{s.invalidateQueries({queryKey:S.all})}});return{deleteTeam:t.mutateAsync,isDeleting:t.isPending,error:t.error}}function hs({selectedTeam:s,onBack:t,members:a,totalMessages:r,autoRefresh:n,onToggleAutoRefresh:i,skillType:l,pipelineMode:c}){const{formatMessage:x}=T();return e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[e.jsxs(k,{variant:"ghost",size:"sm",onClick:t,className:"gap-1",children:[e.jsx(ke,{className:"h-4 w-4"}),x({id:"team.detail.backToList"})]}),s&&e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"text-lg font-semibold",children:s}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(p,{variant:"secondary",className:"gap-1",children:[e.jsx(U,{className:"w-3 h-3"}),x({id:"team.members"}),": ",a.length]}),e.jsxs(p,{variant:"secondary",className:"gap-1",children:[e.jsx(ee,{className:"w-3 h-3"}),x({id:"team.messages"}),": ",r]})]}),(l||c)&&e.jsxs("div",{className:"flex items-center gap-2",children:[l&&e.jsx(p,{variant:"outline",className:"gap-1",children:l}),c&&e.jsxs(p,{variant:"default",className:"gap-1",children:[e.jsx(se,{className:"w-3 h-3"}),c]})]})]})]}),e.jsx("div",{className:"flex items-center gap-3",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ze,{id:"auto-refresh",checked:n,onCheckedChange:i}),e.jsx(Fe,{htmlFor:"auto-refresh",className:"text-sm text-muted-foreground cursor-pointer",children:x({id:"team.autoRefresh"})}),n&&e.jsx(de,{className:"w-3.5 h-3.5 text-primary animate-spin",style:{animationDuration:"3s"}})]})})]})}const fe={completed:{icon:Pe,color:"text-green-500",bg:"bg-green-500/10 border-green-500/30"},in_progress:{icon:H,color:"text-blue-500",bg:"bg-blue-500/10 border-blue-500/30",animate:!0},pending:{icon:Ee,color:"text-muted-foreground",bg:"bg-muted border-border"},blocked:{icon:Le,color:"text-red-500",bg:"bg-red-500/10 border-red-500/30"},skipped:{icon:Ae,color:"text-yellow-500",bg:"bg-yellow-500/10 border-yellow-500/30"}},fs=["completed","in_progress","pending","blocked","skipped"];function ie({stage:s}){const{formatMessage:t}=T(),a=fe[s.status],r=a.icon,n=s.status==="in_progress"?"inProgress":s.status;return e.jsxs("div",{className:j("flex flex-col items-center gap-1.5 px-4 py-3 rounded-lg border-2 min-w-[90px] transition-all",a.bg),children:[e.jsx(r,{className:j("w-5 h-5",a.color,a.animate&&"animate-spin"),style:a.animate?{animationDuration:"2s"}:void 0}),e.jsx("span",{className:"text-xs font-medium",children:s.label}),e.jsx("span",{className:j("text-[10px]",a.color),children:t({id:`team.pipeline.${n}`})}),s.role&&e.jsx("span",{className:"text-[10px] text-muted-foreground truncate max-w-[80px]",children:s.role})]})}function ps(){return e.jsxs("div",{className:"flex items-center px-1",children:[e.jsx("div",{className:"w-6 h-0.5 bg-border"}),e.jsx("div",{className:"w-0 h-0 border-t-[4px] border-t-transparent border-b-[4px] border-b-transparent border-l-[6px] border-l-border"})]})}function gs({stages:s,phaseInfo:t}){const{formatMessage:a}=T();return s.length===0?e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:a({id:"team.pipeline.title"})}),e.jsx("p",{className:"text-xs text-muted-foreground text-center py-8",children:a({id:"team.pipeline.noStages"})})]}):e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsxs("div",{className:"space-y-3 flex-1",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:a({id:"team.pipeline.title"})}),t&&e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsxs(p,{variant:"secondary",children:[a({id:"team.coordinates.phase"}),": ",t.currentPhase,t.totalPhases!=null&&`/${t.totalPhases}`]}),t.currentStep&&e.jsxs(p,{variant:"secondary",children:[a({id:"team.coordinates.step"}),": ",t.currentStep]}),t.gapIteration>0&&e.jsxs(p,{variant:"outline",children:[a({id:"team.coordinates.gap"}),": ",t.gapIteration]})]}),e.jsx("div",{className:"hidden sm:flex items-center gap-0",children:s.map((r,n)=>e.jsxs("div",{className:"flex items-center",children:[n>0&&e.jsx(ps,{}),e.jsx(ie,{stage:r})]},r.id))}),e.jsx("div",{className:"flex sm:hidden flex-col items-center gap-2",children:s.map(r=>e.jsx(ie,{stage:r},r.id))})]}),e.jsx("div",{className:"flex flex-wrap gap-3 text-[10px] text-muted-foreground mt-auto pt-3 border-t border-border",children:fs.map(r=>{const n=fe[r],i=n.icon,l=r==="in_progress"?"inProgress":r;return e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(i,{className:j("w-3 h-3",n.color)}),a({id:`team.pipeline.${l}`})]},r)})})]})}function js(s){if(!s)return"";const t=Date.now(),a=new Date(s).getTime(),r=t-a;if(r<0)return"now";const n=Math.floor(r/1e3);if(n<60)return`${n}s`;const i=Math.floor(n/60);if(i<60)return`${i}m`;const l=Math.floor(i/60);return l<24?`${l}h`:`${Math.floor(l/24)}d`}function vs(s){return s.lastSeen&&Date.now()-new Date(s.lastSeen).getTime()<120*1e3?"active":"idle"}function Ns({members:s}){const{formatMessage:t}=T();return e.jsxs("div",{className:"space-y-3",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:t({id:"team.membersPanel.title"})}),e.jsxs("div",{className:"space-y-2",children:[s.map(a=>{const r=vs(a),n=r==="active";return e.jsx(L,{className:"overflow-hidden",children:e.jsx(E,{className:"p-3",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"pt-0.5",children:e.jsx("div",{className:j("w-2.5 h-2.5 rounded-full",n?"bg-green-500 shadow-[0_0_6px_rgba(34,197,94,0.5)]":"bg-muted-foreground/40")})}),e.jsxs("div",{className:"flex-1 min-w-0 space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm font-medium truncate",children:a.member}),e.jsx(p,{variant:n?"success":"secondary",className:"text-[10px] px-1.5 py-0",children:t({id:`team.membersPanel.${r}`})})]}),a.lastAction&&e.jsx("p",{className:"text-xs text-muted-foreground truncate",children:a.lastAction}),e.jsxs("div",{className:"flex items-center gap-3 text-[10px] text-muted-foreground",children:[e.jsxs("span",{children:[a.messageCount," ",t({id:"team.messages"}).toLowerCase()]}),a.lastSeen&&e.jsxs("span",{children:[js(a.lastSeen)," ",t({id:"team.membersPanel.ago"})]})]})]})]})})},a.member)}),s.length===0&&e.jsx("p",{className:"text-xs text-muted-foreground text-center py-4",children:t({id:"team.empty.noMessages"})})]})]})}function bs(s){if(!s)return"";const t=Date.now(),a=new Date(s).getTime(),r=t-a;if(r<0)return"now";const n=Math.floor(r/1e3);if(n<60)return`${n}s`;const i=Math.floor(n/60);if(i<60)return`${i}m`;const l=Math.floor(i/60);return l<24?`${l}h`:`${Math.floor(l/24)}d`}function ys(s){return s.lastSeen&&Date.now()-new Date(s.lastSeen).getTime()<120*1e3?"active":"idle"}function ws(s,t){const a=s.member.toLowerCase();return t.find(r=>r.role&&r.role.toLowerCase()===a||r.id.toLowerCase()===a)}const Ts={completed:"success",in_progress:"info",pending:"secondary",blocked:"destructive",skipped:"warning"};function le({members:s,stages:t,roleState:a}){const{formatMessage:r}=T();return t.length===0?e.jsx(Ns,{members:s}):e.jsxs("div",{className:"space-y-3",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:r({id:"team.membersPanel.title"})}),e.jsxs("div",{className:"space-y-2",children:[s.map(n=>{const i=ys(n),l=i==="active",c=ws(n,t);return e.jsx(L,{className:"overflow-hidden",children:e.jsx(E,{className:"p-3",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"pt-0.5",children:e.jsx("div",{className:j("w-2.5 h-2.5 rounded-full",l?"bg-green-500 shadow-[0_0_6px_rgba(34,197,94,0.5)]":"bg-muted-foreground/40")})}),e.jsxs("div",{className:"flex-1 min-w-0 space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx("span",{className:"text-sm font-medium truncate",children:n.member}),e.jsx(p,{variant:l?"success":"secondary",className:"text-[10px] px-1.5 py-0",children:r({id:`team.membersPanel.${i}`})}),c&&e.jsx(p,{variant:Ts[c.status]??"secondary",className:"text-[10px] px-1.5 py-0",children:c.label})]}),n.lastAction&&e.jsx("p",{className:"text-xs text-muted-foreground truncate",children:n.lastAction}),e.jsxs("div",{className:"flex items-center gap-3 text-[10px] text-muted-foreground",children:[e.jsxs("span",{children:[n.messageCount," ",r({id:"team.messages"}).toLowerCase()]}),n.lastSeen&&e.jsxs("span",{children:[bs(n.lastSeen)," ",r({id:"team.membersPanel.ago"})]})]})]})]})})},n.member)}),s.length===0&&e.jsx("p",{className:"text-xs text-muted-foreground text-center py-4",children:r({id:"team.empty.noMessages"})})]})]})}function _s({phaseInfo:s}){const{formatMessage:t}=T();return e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsxs(p,{variant:"secondary",children:[t({id:"team.coordinates.phase"}),": ",s.currentPhase,s.totalPhases!=null&&`/${s.totalPhases}`]}),s.currentStep&&e.jsxs(p,{variant:"secondary",children:[t({id:"team.coordinates.step"}),": ",s.currentStep]}),s.gapIteration>0&&e.jsxs(p,{variant:"outline",children:[t({id:"team.coordinates.gap"}),": ",s.gapIteration]})]})}const ce={plan_ready:"bg-blue-500/15 text-blue-600 dark:text-blue-400 border-blue-500/30",plan_approved:"bg-blue-500/15 text-blue-600 dark:text-blue-400 border-blue-500/30",plan_revision:"bg-amber-500/15 text-amber-600 dark:text-amber-400 border-amber-500/30",task_unblocked:"bg-cyan-500/15 text-cyan-600 dark:text-cyan-400 border-cyan-500/30",impl_complete:"bg-primary/15 text-primary border-primary/30",impl_progress:"bg-primary/15 text-primary border-primary/30",test_result:"bg-green-500/15 text-green-600 dark:text-green-400 border-green-500/30",review_result:"bg-purple-500/15 text-purple-600 dark:text-purple-400 border-purple-500/30",fix_required:"bg-red-500/15 text-red-600 dark:text-red-400 border-red-500/30",error:"bg-red-500/15 text-red-600 dark:text-red-400 border-red-500/30",shutdown:"bg-muted text-muted-foreground border-border",message:"bg-muted text-muted-foreground border-border"};function Cs({type:s}){const{formatMessage:t}=T(),a=ce[s]||ce.message,r=`team.messageType.${s}`;let n;try{n=t({id:r})}catch{n=s}return e.jsx("span",{className:j("text-[10px] px-1.5 py-0.5 rounded border font-medium",a),children:n})}function Ss({msg:s}){var n,i;const[t,a]=h.useState(!1),r=s.ts?s.ts.substring(11,19):"";return e.jsxs("div",{className:"flex gap-3 py-2.5 border-b border-border last:border-b-0 animate-in fade-in slide-in-from-top-1 duration-300",children:[e.jsx("span",{className:"text-[10px] font-mono text-muted-foreground w-16 shrink-0 pt-0.5",children:r}),e.jsxs("div",{className:"flex-1 min-w-0 space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx("span",{className:"text-xs font-medium",children:s.from}),e.jsx("span",{className:"text-[10px] text-muted-foreground",children:"→"}),e.jsx("span",{className:"text-xs font-medium",children:s.to}),e.jsx(Cs,{type:s.type}),s.id&&e.jsx("span",{className:"text-[10px] text-muted-foreground",children:s.id})]}),e.jsx("p",{className:"text-xs text-foreground/80",children:s.summary}),(s.ref||((n=s.data)==null?void 0:n.ref))&&e.jsxs("div",{className:"flex items-center gap-1 text-[10px] text-muted-foreground",children:[e.jsx(ae,{className:"w-3 h-3"}),e.jsx("span",{className:"font-mono truncate",children:s.ref||((i=s.data)==null?void 0:i.ref)})]}),s.data&&Object.keys(s.data).length>0&&e.jsxs("div",{children:[e.jsx("button",{onClick:()=>a(!t),className:"text-[10px] text-primary hover:underline flex items-center gap-0.5",children:t?e.jsxs(e.Fragment,{children:[e.jsx(me,{className:"w-3 h-3"})," collapse"]}):e.jsxs(e.Fragment,{children:[e.jsx(te,{className:"w-3 h-3"})," data"]})}),t&&e.jsx("pre",{className:"text-[10px] bg-muted p-2 rounded mt-1 overflow-x-auto max-h-40",children:JSON.stringify(s.data,null,2)})]})]})]})}function Ms({messages:s,total:t,filter:a,onFilterChange:r,onClearFilter:n,expanded:i,onExpandedChange:l}){const{formatMessage:c}=T(),x=!!(a.from||a.to||a.type),{senders:g,receivers:v,types:C}=h.useMemo(()=>{const d=new Set,m=new Set,_=new Set;for(const y of s)d.add(y.from),m.add(y.to),_.add(y.type);return{senders:Array.from(d).sort(),receivers:Array.from(m).sort(),types:Array.from(_).sort()}},[s]),N=[...s].reverse();return e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("button",{onClick:()=>l(!i),className:"flex items-center gap-2 text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:[i?e.jsx(me,{className:"w-4 h-4"}):e.jsx(te,{className:"w-4 h-4"}),c({id:"team.timeline.title"}),e.jsxs("span",{className:"text-xs font-normal",children:["(",c({id:"team.timeline.showing"},{showing:s.length,total:t}),")"]})]}),x&&e.jsxs(k,{variant:"ghost",size:"sm",onClick:n,className:"h-6 text-xs gap-1",children:[e.jsx(xe,{className:"w-3 h-3"}),c({id:"team.timeline.clearFilters"})]})]}),i&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs(W,{value:a.from??"__all__",onValueChange:d=>r({from:d==="__all__"?void 0:d}),children:[e.jsxs(I,{className:"w-[130px] h-7 text-xs",children:[e.jsx(es,{className:"w-3 h-3 mr-1"}),e.jsx(J,{placeholder:c({id:"team.timeline.filterFrom"})})]}),e.jsxs(G,{children:[e.jsx(D,{value:"__all__",children:c({id:"team.filterAll"})}),g.map(d=>e.jsx(D,{value:d,children:d},d))]})]}),e.jsxs(W,{value:a.to??"__all__",onValueChange:d=>r({to:d==="__all__"?void 0:d}),children:[e.jsx(I,{className:"w-[130px] h-7 text-xs",children:e.jsx(J,{placeholder:c({id:"team.timeline.filterTo"})})}),e.jsxs(G,{children:[e.jsx(D,{value:"__all__",children:c({id:"team.filterAll"})}),v.map(d=>e.jsx(D,{value:d,children:d},d))]})]}),e.jsxs(W,{value:a.type??"__all__",onValueChange:d=>r({type:d==="__all__"?void 0:d}),children:[e.jsx(I,{className:"w-[150px] h-7 text-xs",children:e.jsx(J,{placeholder:c({id:"team.timeline.filterType"})})}),e.jsxs(G,{children:[e.jsx(D,{value:"__all__",children:c({id:"team.filterAll"})}),C.map(d=>e.jsx(D,{value:d,children:d},d))]})]})]}),e.jsx(L,{children:e.jsx(E,{className:"p-3",children:N.length>0?e.jsx("div",{className:"divide-y-0",children:N.map(d=>e.jsx(Ss,{msg:d},d.id))}):e.jsxs("div",{className:"text-center py-8",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:c({id:"team.empty.noMessages"})}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:c({id:"team.empty.noMessagesHint"})})]})})})]})]})}function pe(s){return s.endsWith(".json")?"json":s.endsWith(".md")?"markdown":s.endsWith(".txt")||s.endsWith(".log")||s.endsWith(".tsv")||s.endsWith(".csv")?"text":"unknown"}function ge(s){return s?s<1024?`${s} B`:s<1024*1024?`${(s/1024).toFixed(1)} KB`:`${(s/(1024*1024)).toFixed(1)} MB`:""}function ks(s){if(!s)return"";try{return new Date(s).toLocaleDateString(void 0,{month:"short",day:"numeric"})}catch{return""}}function je({contentType:s}){return s==="json"?e.jsx(ts,{className:"w-4 h-4 text-blue-500"}):e.jsx(ae,{className:"w-4 h-4 text-gray-500"})}function ve({node:s,depth:t,expanded:a,selectedPath:r,onToggle:n,onSelect:i}){if(s.type==="directory"){const x=a.has(s.path);return e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1 py-1.5 px-2 cursor-pointer hover:bg-accent/50 rounded transition-colors",style:{paddingLeft:t*16+8},onClick:()=>n(s.path),children:[x?e.jsx(te,{className:"w-4 h-4 text-muted-foreground"}):e.jsx(Re,{className:"w-4 h-4 text-muted-foreground"}),e.jsx(ss,{className:j("w-4 h-4",x?"text-amber-500":"text-amber-400")}),e.jsx("span",{className:"text-sm truncate",children:s.name})]}),x&&s.children&&e.jsx("div",{children:s.children.map(g=>e.jsx(ve,{node:g,depth:t+1,expanded:a,selectedPath:r,onToggle:n,onSelect:i},g.path))})]},s.path)}const l=r===s.path,c=s.contentType||pe(s.path);return e.jsxs("div",{className:j("flex items-center gap-1 py-1.5 px-2 cursor-pointer hover:bg-accent/50 rounded transition-colors",l&&"bg-accent"),style:{paddingLeft:t*16+28},onClick:()=>i(s),children:[e.jsx(je,{contentType:c}),e.jsx("span",{className:"text-sm truncate flex-1",children:s.name}),s.size!==void 0&&e.jsx("span",{className:"text-xs text-muted-foreground ml-2",children:ge(s.size)})]},s.path)}function Fs({teamName:s}){const{formatMessage:t}=T(),[a,r]=h.useState([]),[n,i]=h.useState(new Set),[l,c]=h.useState(null),[x,g]=h.useState(""),[v,C]=h.useState(!1),[N,d]=h.useState(!0),[m,_]=h.useState(null);h.useEffect(()=>{s&&(d(!0),_(null),De(s).then(f=>{r(f.tree||[]);const b=(f.tree||[]).filter(w=>w.type==="directory").map(w=>w.path);i(new Set(b))}).catch(f=>{console.error("Failed to load artifacts:",f),_(t({id:"team.artifacts.loadError",defaultMessage:"Failed to load artifacts"}))}).finally(()=>{d(!1)}))},[s,t]);const y=h.useCallback(f=>{i(b=>{const w=new Set(b);return w.has(f)?w.delete(f):w.add(f),w})},[]),F=h.useCallback(async f=>{if(f.type!=="directory"){c(f),C(!0),g("");try{const b=await $e(s,f.path);g(b.content)}catch(b){console.error("Failed to load file content:",b),g(t({id:"team.artifacts.contentError",defaultMessage:"Failed to load file content"}))}finally{C(!1)}}},[s,t]),A=l?l.contentType||pe(l.path):"text",M=A==="json"?"json":A==="markdown"?"markdown":"text";return N?e.jsxs("div",{className:"flex items-center justify-center py-12",children:[e.jsx(H,{className:"h-8 w-8 animate-spin text-muted-foreground"}),e.jsx("span",{className:"ml-3 text-muted-foreground",children:t({id:"team.artifacts.loading",defaultMessage:"Loading artifacts..."})})]}):m?e.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[e.jsx(Q,{className:"h-12 w-12 text-destructive mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:m})]}):a.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[e.jsx(Q,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-foreground mb-2",children:t({id:"team.artifacts.noArtifacts",defaultMessage:"No artifacts yet"})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:t({id:"team.artifacts.emptyHint",defaultMessage:"Artifacts will appear here when the team generates them"})})]}):e.jsxs("div",{className:"flex h-[600px] border rounded-lg overflow-hidden",children:[e.jsxs("div",{className:"w-72 shrink-0 border-r bg-muted/30 flex flex-col",children:[e.jsx("div",{className:"p-3 border-b bg-background shrink-0",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Q,{className:"w-4 h-4 text-muted-foreground"}),e.jsx("span",{className:"text-sm font-medium",children:t({id:"team.artifacts.title",defaultMessage:"Artifacts"})})]})}),e.jsx("div",{className:"flex-1 overflow-y-auto py-2",children:a.map(f=>e.jsx(ve,{node:f,depth:0,expanded:n,selectedPath:l==null?void 0:l.path,onToggle:y,onSelect:F},f.path))})]}),e.jsx("div",{className:"flex-1 flex flex-col min-w-0",children:l?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"p-3 border-b bg-muted/30 shrink-0",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(je,{contentType:A}),e.jsx("span",{className:"text-sm font-medium truncate",children:l.name}),l.size!==void 0&&e.jsx("span",{className:"text-xs text-muted-foreground",children:ge(l.size)}),l.modifiedAt&&e.jsx("span",{className:"text-xs text-muted-foreground ml-auto",children:ks(l.modifiedAt)})]})}),e.jsx("div",{className:"flex-1 overflow-y-auto p-4",children:v?e.jsx("div",{className:"flex items-center justify-center py-12",children:e.jsx(H,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):e.jsx(Ls,{content:x,contentType:M})})]}):e.jsx("div",{className:"flex-1 flex items-center justify-center text-center p-8",children:e.jsxs("div",{children:[e.jsx(ae,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:t({id:"team.artifacts.selectFile",defaultMessage:"Select a file to preview"})})]})})})]})}function q({data:s,depth:t=0}){if(s===null)return e.jsx("span",{className:"text-red-500 font-mono text-sm",children:"null"});if(s===void 0)return e.jsx("span",{className:"text-muted-foreground font-mono text-sm",children:"undefined"});if(typeof s=="boolean")return e.jsx("span",{className:j("font-mono text-sm",s?"text-orange-500":"text-red-500"),children:s?"true":"false"});if(typeof s=="number")return e.jsx("span",{className:"text-blue-500 font-mono text-sm",children:s});if(typeof s=="string")return s.length>200?e.jsxs("span",{className:"text-green-600 dark:text-green-400 font-mono text-sm break-all",children:['"',s.slice(0,200),'..."']}):e.jsxs("span",{className:"text-green-600 dark:text-green-400 font-mono text-sm",children:['"',s,'"']});if(Array.isArray(s))return s.length===0?e.jsx("span",{className:"text-muted-foreground text-sm",children:"[]"}):e.jsx("div",{className:"space-y-2",children:s.map((a,r)=>e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(p,{variant:"outline",className:"text-xs shrink-0 mt-0.5",children:r}),e.jsx("div",{className:"flex-1 min-w-0",children:typeof a=="object"&&a!==null?e.jsx("div",{className:"bg-muted/30 rounded-lg p-2 border",children:e.jsx(q,{data:a,depth:t+1})}):e.jsx(q,{data:a,depth:t+1})})]},r))});if(typeof s=="object"){const a=Object.entries(s);return a.length===0?e.jsx("span",{className:"text-muted-foreground text-sm",children:"{}"}):e.jsx("div",{className:j("space-y-2",t>0&&"pl-2 border-l-2 border-border"),children:a.map(([r,n])=>{const i=typeof n=="object"&&n!==null,l=Array.isArray(n),c=l?n.length:i?Object.keys(n).length:0;return e.jsxs("div",{className:"group",children:[e.jsxs("div",{className:"flex items-center gap-2 py-1",children:[e.jsx("span",{className:"text-purple-600 dark:text-purple-400 font-medium text-sm shrink-0",children:r}),i&&e.jsx(p,{variant:"secondary",className:"text-[10px] h-4 px-1",children:l?`${c} items`:`${c} fields`})]}),e.jsx("div",{className:"ml-3",children:i?e.jsx("div",{className:"bg-muted/20 rounded-md p-2 border",children:e.jsx(q,{data:n,depth:t+1})}):e.jsx(q,{data:n,depth:t+1})})]},r)})})}return e.jsx("span",{className:"text-sm",children:String(s)})}function As({data:s}){const t=h.useMemo(()=>{const a={type:"",fields:0,items:0,depth:0},r=(n,i)=>{a.depth=Math.max(a.depth,i),Array.isArray(n)?(a.type="Array",a.items=n.length,n.forEach(l=>r(l,i+1))):typeof n=="object"&&n!==null&&(a.type="Object",a.fields=Object.keys(n).length,Object.values(n).forEach(l=>r(l,i+1)))};return r(s,0),a},[s]);return e.jsxs("div",{className:"flex items-center gap-4 p-3 bg-muted/50 rounded-lg mb-4 text-sm",children:[e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(p,{variant:"outline",children:t.type})}),t.type==="Object"&&e.jsxs("div",{className:"text-muted-foreground",children:[e.jsx("span",{className:"font-medium text-foreground",children:t.fields})," fields"]}),t.type==="Array"&&e.jsxs("div",{className:"text-muted-foreground",children:[e.jsx("span",{className:"font-medium text-foreground",children:t.items})," items"]}),e.jsxs("div",{className:"text-muted-foreground",children:[e.jsx("span",{className:"font-medium text-foreground",children:t.depth})," levels deep"]})]})}function Ls({content:s,contentType:t}){if(!s)return e.jsx("div",{className:"text-muted-foreground text-sm",children:"No content"});if(t==="json")try{const a=JSON.parse(s);return e.jsxs("div",{className:"space-y-2",children:[e.jsx(As,{data:a}),e.jsx("div",{className:"bg-card rounded-lg",children:e.jsx(q,{data:a})})]})}catch{return e.jsx("pre",{className:"text-xs bg-muted/50 p-4 rounded-lg overflow-auto font-mono whitespace-pre-wrap break-words border",children:s})}return t==="markdown"?e.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none",children:e.jsx("pre",{className:"whitespace-pre-wrap break-words font-sans text-sm leading-relaxed bg-transparent p-0",children:s})}):e.jsx("pre",{className:"text-xs bg-muted/50 p-4 rounded-lg overflow-auto font-mono whitespace-pre-wrap break-words border",children:s})}const Es={active:{variant:"info"},completed:{variant:"success"},archived:{variant:"secondary"}},oe={active:"team.status.active",completed:"team.status.completed",archived:"team.status.archived"};function Ps(s){if(!s)return"";try{return new Date(s).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch{return""}}function Ds({team:s,onClick:t,onArchive:a,onUnarchive:r,onDelete:n,showActions:i=!0,actionsDisabled:l=!1,className:c}){const{formatMessage:x}=T(),{variant:g}=Es[s.status]||{variant:"default"},v=oe[s.status]?x({id:oe[s.status]}):s.status,C=s.status==="archived",N=m=>{m.target.closest("[data-radix-popper-content-wrapper]")||t==null||t(s.name)},d=(m,_)=>{switch(m.stopPropagation(),_){case"view":t==null||t(s.name);break;case"archive":a==null||a(s.name);break;case"unarchive":r==null||r(s.name);break;case"delete":n==null||n(s.name);break}};return e.jsx(L,{className:j("group cursor-pointer transition-all duration-200 hover:shadow-md hover:border-primary/30",c),onClick:N,children:e.jsxs(E,{className:"p-4",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2 mb-2",children:[e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx("div",{className:"flex items-center gap-2 mb-1",children:e.jsx("h3",{className:"font-bold text-card-foreground text-sm tracking-wide truncate",children:s.name})})}),e.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[e.jsx(p,{variant:g,children:v}),s.pipeline_mode&&e.jsxs(p,{variant:"default",className:"gap-1",children:[e.jsx(se,{className:"h-3 w-3"}),s.pipeline_mode]}),i&&e.jsxs(qe,{children:[e.jsx(ze,{asChild:!0,children:e.jsx(k,{variant:"ghost",size:"icon",className:"h-8 w-8 opacity-0 group-hover:opacity-100 transition-opacity",onClick:m=>m.stopPropagation(),disabled:l,children:e.jsx(as,{className:"h-4 w-4"})})}),e.jsxs(Ve,{align:"end",children:[e.jsxs(B,{onClick:m=>d(m,"view"),children:[e.jsx(rs,{className:"mr-2 h-4 w-4"}),x({id:"team.actions.viewDetails"})]}),e.jsx(re,{}),C?e.jsxs(B,{onClick:m=>d(m,"unarchive"),children:[e.jsx(ns,{className:"mr-2 h-4 w-4"}),x({id:"team.actions.unarchive"})]}):e.jsxs(B,{onClick:m=>d(m,"archive"),children:[e.jsx(is,{className:"mr-2 h-4 w-4"}),x({id:"team.actions.archive"})]}),e.jsx(re,{}),e.jsxs(B,{onClick:m=>d(m,"delete"),className:"text-destructive focus:text-destructive",children:[e.jsx(Be,{className:"mr-2 h-4 w-4"}),x({id:"team.actions.delete"})]})]})]})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ee,{className:"h-3.5 w-3.5"}),s.messageCount," ",x({id:"team.card.messages"})]}),s.lastActivity&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Oe,{className:"h-3.5 w-3.5"}),Ps(s.lastActivity)]})]}),s.members&&s.members.length>0&&e.jsxs("div",{className:"flex items-center gap-1.5 mt-2 flex-wrap",children:[e.jsx(U,{className:"h-3.5 w-3.5 text-muted-foreground shrink-0"}),s.members.map(m=>e.jsx(p,{variant:"outline",className:"text-[10px] px-1.5 py-0 font-normal",children:m},m))]})]})})}function $s({className:s}){return e.jsx(L,{className:j("animate-pulse",s),children:e.jsxs(E,{className:"p-4",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsx("div",{className:"flex-1",children:e.jsx("div",{className:"h-5 w-32 rounded bg-muted"})}),e.jsx("div",{className:"h-5 w-16 rounded-full bg-muted"})]}),e.jsxs("div",{className:"mt-3 flex gap-4",children:[e.jsx("div",{className:"h-4 w-24 rounded bg-muted"}),e.jsx("div",{className:"h-4 w-20 rounded bg-muted"}),e.jsx("div",{className:"h-4 w-20 rounded bg-muted"})]})]})})}function Rs(){const{formatMessage:s}=T(),{locationFilter:t,setLocationFilter:a,searchQuery:r,setSearchQuery:n,selectTeamAndShowDetail:i}=z(),[l,c]=h.useState(!1),[x,g]=h.useState(null),{teams:v,isLoading:C,isFetching:N,refetch:d}=he(t),{archiveTeam:m,isArchiving:_}=ms(),{unarchiveTeam:y,isUnarchiving:F}=xs(),{deleteTeam:A,isDeleting:M}=us(),f=_||F||M,b=h.useMemo(()=>{if(!r)return v;const u=r.toLowerCase();return v.filter(P=>P.name.toLowerCase().includes(u))},[v,r]),w=async u=>{try{await m(u)}catch(P){console.error("Failed to archive team:",P)}},o=async u=>{try{await y(u)}catch(P){console.error("Failed to unarchive team:",P)}},$=u=>{g(u),c(!0)},R=async()=>{if(x)try{await A(x),c(!1),g(null)}catch(u){console.error("Failed to delete team:",u)}},V=()=>n("");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(U,{className:"w-5 h-5"}),e.jsx("h1",{className:"text-2xl font-semibold text-foreground",children:s({id:"team.title"})})]}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:s({id:"team.description"})})]}),e.jsx("div",{className:"flex items-center gap-2",children:e.jsxs(k,{variant:"outline",size:"sm",onClick:()=>d(),disabled:N,children:[e.jsx(de,{className:j("h-4 w-4 mr-2",N&&"animate-spin")}),s({id:"common.actions.refresh"})]})})]}),e.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center",children:[e.jsx(ue,{value:t,onValueChange:u=>a(u),tabs:[{value:"active",label:s({id:"team.filters.active"})},{value:"archived",label:s({id:"team.filters.archived"})},{value:"all",label:s({id:"team.filters.all"})}]}),e.jsxs("div",{className:"flex-1 max-w-sm relative",children:[e.jsx(Ke,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),e.jsx(Qe,{placeholder:s({id:"team.searchPlaceholder"}),value:r,onChange:u=>n(u.target.value),className:"pl-9 pr-9"}),r&&e.jsx("button",{onClick:V,className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:e.jsx(xe,{className:"h-4 w-4"})})]})]}),C?e.jsx("div",{className:"grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-3",children:Array.from({length:6}).map((u,P)=>e.jsx($s,{},P))}):b.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-16 px-4 border border-dashed border-border rounded-lg",children:[e.jsx(U,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-foreground mb-1",children:s(r?{id:"team.emptyState.noMatching"}:{id:"team.emptyState.noTeams"})}),e.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-sm mb-4",children:s(r?{id:"team.emptyState.noMatchingDescription"}:{id:"team.emptyState.noTeamsDescription"})}),r&&e.jsx(k,{variant:"outline",onClick:V,children:s({id:"common.actions.clearFilters"})})]}):e.jsx("div",{className:"grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-3",children:b.map(u=>e.jsx(Ds,{team:u,onClick:i,onArchive:w,onUnarchive:o,onDelete:$,actionsDisabled:f},u.name))}),e.jsx(Ue,{open:l,onOpenChange:c,children:e.jsxs(We,{children:[e.jsxs(Ie,{children:[e.jsx(Je,{children:s({id:"team.dialog.deleteTeam"})}),e.jsx(Ge,{children:s({id:"team.dialog.deleteConfirm"})})]}),e.jsxs(He,{children:[e.jsx(k,{variant:"outline",onClick:()=>{c(!1),g(null)},children:s({id:"team.dialog.cancel"})}),e.jsx(k,{variant:"destructive",onClick:R,disabled:M,children:s(M?{id:"team.dialog.deleting"}:{id:"team.actions.delete"})})]})]})})]})}const qs=["plan","impl","test","review"];function O(s){return s?s.charAt(0).toUpperCase()+s.slice(1).toLowerCase():""}function K(s,t){const a=s.toLowerCase(),r=t.filter(l=>{const c=l.from.toLowerCase();return c===a||c.startsWith(a)});if(r.length===0)return"pending";const n=r[r.length-1];return["shutdown","impl_complete","review_result","test_result"].includes(n.type)?"completed":n.type==="error"?"blocked":"in_progress"}function zs(s,t){if(s.pipeline_stages&&s.pipeline_stages.length>0)return s.pipeline_stages.map(a=>{var l;const r=a.toUpperCase(),n=a.toLowerCase(),i=(l=s.roles)==null?void 0:l.find(c=>c.toLowerCase().startsWith(n));return{id:r,label:O(a),role:i,status:K(a,t)}});if(s.roles&&s.roles.length>0){const a=s.roles.filter(r=>r.toLowerCase()!=="coordinator");if(a.length>0)return a.map(r=>({id:r.toUpperCase(),label:O(r),role:r,status:K(r,t)}))}if(t.length>0){const a=new Map;for(const r of t){const n=r.from;if(n.toLowerCase()==="coordinator")continue;const i=n.toLowerCase();a.has(i)||a.set(i,n)}if(a.size>0)return Array.from(a.entries()).map(([,r])=>({id:r.toUpperCase(),label:O(r),role:r,status:K(r,t)}))}return qs.map(a=>({id:a.toUpperCase(),label:O(a),role:void 0,status:K(a,t)}))}function Vs(s){if(!s||Object.keys(s).length===0)return null;const t=s.coordinator;return!t||typeof t.current_phase!="number"?null:{currentPhase:t.current_phase,totalPhases:typeof t.total_phases=="number"?t.total_phases:null,currentStep:typeof t.current_step=="string"?t.current_step:null,gapIteration:typeof t.gap_iteration=="number"?t.gap_iteration:0}}function et(){const{formatMessage:s}=T(),{selectedTeam:t,viewMode:a,autoRefresh:r,toggleAutoRefresh:n,messageFilter:i,setMessageFilter:l,clearMessageFilter:c,timelineExpanded:x,setTimelineExpanded:g,detailTab:v,setDetailTab:C,backToList:N,locationFilter:d}=z(),m=ne(Xe),_=ne(u=>u.toggleImmersiveMode),{teams:y,error:F,isLoading:A}=he(d),{messages:M,total:f}=os(a==="detail"?t:null,i),{members:b,totalMessages:w}=ds(a==="detail"?t:null),o=h.useMemo(()=>y.find(u=>u.name===t),[y,t]);h.useEffect(()=>{a==="detail"&&t&&!A&&y.length>0&&!o&&N()},[a,t,A,y.length,o,N]);const $=h.useMemo(()=>zs({pipeline_stages:o==null?void 0:o.pipeline_stages,role_state:o==null?void 0:o.role_state,roles:o==null?void 0:o.roles},M),[o==null?void 0:o.pipeline_stages,o==null?void 0:o.role_state,o==null?void 0:o.roles,M]),R=h.useMemo(()=>Vs(o==null?void 0:o.role_state),[o==null?void 0:o.role_state]);if(F&&a==="detail")return e.jsx("div",{className:"flex items-center justify-center min-h-[400px] p-8",children:e.jsxs("div",{className:"text-center max-w-md",children:[e.jsx("div",{className:"mb-4",children:e.jsx(Ye,{className:"w-16 h-16 mx-auto text-destructive"})}),e.jsx("h2",{className:"text-xl font-semibold mb-2",children:s({id:"team.error.loadFailed"})}),e.jsx("p",{className:"text-muted-foreground mb-6",children:F instanceof Error?F.message:String(F)}),e.jsxs("div",{className:"flex gap-3 justify-center",children:[e.jsx(k,{onClick:N,variant:"default",children:s({id:"team.detail.backToList"})}),e.jsx(k,{onClick:()=>window.location.reload(),variant:"outline",children:s({id:"common.actions.retry"})})]})]})});if(a==="list"||!t||a==="detail"&&y.length>0&&!o)return e.jsx("div",{className:"space-y-6",children:e.jsx(Rs,{})});const V=[{value:"pipeline",label:s({id:"team.tabs.pipeline"}),icon:e.jsx(se,{className:"h-4 w-4"})},{value:"artifacts",label:s({id:"team.tabs.artifacts"}),icon:e.jsx(Q,{className:"h-4 w-4"})},{value:"messages",label:s({id:"team.tabs.messages"}),icon:e.jsx(ee,{className:"h-4 w-4"})}];return e.jsxs("div",{className:j("space-y-6",m&&"h-screen overflow-hidden"),children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(hs,{selectedTeam:t,onBack:N,members:b,totalMessages:w,autoRefresh:r,onToggleAutoRefresh:n,skillType:o!=null&&o.team_name?`team-${o.team_name}`:void 0,pipelineMode:o==null?void 0:o.pipeline_mode}),e.jsx("button",{onClick:_,className:j("p-2 rounded-md transition-colors",m?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground hover:bg-muted"),title:m?"Exit Fullscreen":"Fullscreen",children:m?e.jsx(ls,{className:"w-4 h-4"}):e.jsx(cs,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[e.jsx(L,{className:"lg:col-span-2 flex flex-col",children:e.jsx(E,{className:"p-4 flex-1",children:e.jsx(gs,{stages:$,phaseInfo:R})})}),e.jsx(L,{children:e.jsx(E,{className:"p-4",children:e.jsx(le,{members:b,stages:$,roleState:o==null?void 0:o.role_state})})})]}),R&&e.jsx(_s,{phaseInfo:R}),e.jsx(ue,{value:v,onValueChange:u=>C(u),tabs:V}),v==="pipeline"&&e.jsx(L,{children:e.jsx(E,{className:"p-6",children:e.jsx(le,{members:b,stages:$,roleState:o==null?void 0:o.role_state})})}),v==="artifacts"&&e.jsx(Fs,{teamName:t}),v==="messages"&&e.jsx(Ms,{messages:M,total:f,filter:i,onFilterChange:l,onClearFilter:c,expanded:x,onExpandedChange:g})]})}export{et as TeamPage,et as default};
|
|
2
|
-
//# sourceMappingURL=TeamPage-
|
|
1
|
+
import{eg as Ne,eh as be,ei as ye,ab as X,aF as Y,aH as Z,ej as we,ek as Te,el as _e,em as Ce,en as Se,eo as Me,u as T,j as e,e as k,J as ke,B as p,cA as U,aV as ee,a1 as se,bu as Fe,R as de,ep as Ae,eq as Le,ad as Ee,N as H,k as Pe,c as j,C as L,a as E,r as h,cy as me,ap as te,X as xe,aq as W,ar as I,as as J,at as G,au as D,er as De,es as $e,ao as Re,D as qe,d as ze,f as Ve,g as B,h as re,T as Be,l as Oe,b as Ke,I as Qe,x as Ue,y as We,z as Ie,A as Je,E as Ge,G as He,o as ne,s as Xe,aw as Ye}from"./index-C5Oqx2xI.js";import{T as ue}from"./TabsNavigation-BUcjsLeE.js";import{S as Ze}from"./Switch-BL9AmNPC.js";import{F as es}from"./filter-CEUK5jsA.js";import{F as ae}from"./file-text-D5j9C5XC.js";import{P as Q}from"./package-CByPhtMG.js";import{F as ss}from"./folder-BEOY8txM.js";import{F as ts}from"./file-json-CLYEUI6e.js";import{E as as}from"./ellipsis-vertical-BoIyQKaI.js";import{E as rs}from"./eye-BqxyhxQq.js";import{A as ns}from"./archive-restore-BIVluaHZ.js";import{A as is}from"./archive-Cev1SaQq.js";import{M as ls,a as cs}from"./minimize-2-B3ZNzfGr.js";const z=Ne()(be(ye(s=>({selectedTeam:null,autoRefresh:!0,messageFilter:{},timelineExpanded:!0,viewMode:"list",locationFilter:"active",searchQuery:"",detailTab:"pipeline",setSelectedTeam:t=>s({selectedTeam:t}),toggleAutoRefresh:()=>s(t=>({autoRefresh:!t.autoRefresh})),setMessageFilter:t=>s(a=>({messageFilter:{...a.messageFilter,...t}})),clearMessageFilter:()=>s({messageFilter:{}}),setTimelineExpanded:t=>s({timelineExpanded:t}),setViewMode:t=>s({viewMode:t}),setLocationFilter:t=>s({locationFilter:t}),setSearchQuery:t=>s({searchQuery:t}),setDetailTab:t=>s({detailTab:t}),selectTeamAndShowDetail:t=>s({selectedTeam:t,viewMode:"detail",detailTab:"pipeline"}),backToList:()=>s({viewMode:"list",detailTab:"pipeline"})}),{name:"ccw-team-store"}),{name:"TeamStore"})),S={all:["teams"],lists:()=>[...S.all,"list"],listByLocation:s=>[...S.lists(),s],messages:(s,t)=>[...S.all,"messages",s,t],status:s=>[...S.all,"status",s]};function he(s){var n;const t=z(i=>i.autoRefresh),a=s||"active",r=X({queryKey:S.listByLocation(a),queryFn:async()=>({teams:(await Ce(a)).teams??[]}),staleTime:1e4,refetchInterval:t?1e4:!1});return{teams:((n=r.data)==null?void 0:n.teams)??[],isLoading:r.isLoading,isFetching:r.isFetching,error:r.error,refetch:r.refetch}}function os(s,t,a){var i,l;const r=z(c=>c.autoRefresh),n=X({queryKey:S.messages(s??"",t),queryFn:async()=>{if(!s)return{total:0,showing:0,messages:[]};const c=await Se(s,{...t,last:50});return{total:c.total,showing:c.showing,messages:c.messages}},enabled:!!s,staleTime:5e3,refetchInterval:r?5e3:!1});return{messages:((i=n.data)==null?void 0:i.messages)??[],total:((l=n.data)==null?void 0:l.total)??0,isLoading:n.isLoading,error:n.error,refetch:n.refetch}}function ds(s){var r,n;const t=z(i=>i.autoRefresh),a=X({queryKey:S.status(s??""),queryFn:async()=>{if(!s)return{members:[],total_messages:0};const i=await Me(s);return{members:i.members,total_messages:i.total_messages}},enabled:!!s,staleTime:5e3,refetchInterval:t?5e3:!1});return{members:((r=a.data)==null?void 0:r.members)??[],totalMessages:((n=a.data)==null?void 0:n.total_messages)??0,isLoading:a.isLoading,error:a.error,refetch:a.refetch}}function ms(){const s=Y(),t=Z({mutationFn:we,onSuccess:()=>{s.invalidateQueries({queryKey:S.all})}});return{archiveTeam:t.mutateAsync,isArchiving:t.isPending,error:t.error}}function xs(){const s=Y(),t=Z({mutationFn:Te,onSuccess:()=>{s.invalidateQueries({queryKey:S.all})}});return{unarchiveTeam:t.mutateAsync,isUnarchiving:t.isPending,error:t.error}}function us(){const s=Y(),t=Z({mutationFn:_e,onSuccess:()=>{s.invalidateQueries({queryKey:S.all})}});return{deleteTeam:t.mutateAsync,isDeleting:t.isPending,error:t.error}}function hs({selectedTeam:s,onBack:t,members:a,totalMessages:r,autoRefresh:n,onToggleAutoRefresh:i,skillType:l,pipelineMode:c}){const{formatMessage:x}=T();return e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[e.jsxs(k,{variant:"ghost",size:"sm",onClick:t,className:"gap-1",children:[e.jsx(ke,{className:"h-4 w-4"}),x({id:"team.detail.backToList"})]}),s&&e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"text-lg font-semibold",children:s}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(p,{variant:"secondary",className:"gap-1",children:[e.jsx(U,{className:"w-3 h-3"}),x({id:"team.members"}),": ",a.length]}),e.jsxs(p,{variant:"secondary",className:"gap-1",children:[e.jsx(ee,{className:"w-3 h-3"}),x({id:"team.messages"}),": ",r]})]}),(l||c)&&e.jsxs("div",{className:"flex items-center gap-2",children:[l&&e.jsx(p,{variant:"outline",className:"gap-1",children:l}),c&&e.jsxs(p,{variant:"default",className:"gap-1",children:[e.jsx(se,{className:"w-3 h-3"}),c]})]})]})]}),e.jsx("div",{className:"flex items-center gap-3",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ze,{id:"auto-refresh",checked:n,onCheckedChange:i}),e.jsx(Fe,{htmlFor:"auto-refresh",className:"text-sm text-muted-foreground cursor-pointer",children:x({id:"team.autoRefresh"})}),n&&e.jsx(de,{className:"w-3.5 h-3.5 text-primary animate-spin",style:{animationDuration:"3s"}})]})})]})}const fe={completed:{icon:Pe,color:"text-green-500",bg:"bg-green-500/10 border-green-500/30"},in_progress:{icon:H,color:"text-blue-500",bg:"bg-blue-500/10 border-blue-500/30",animate:!0},pending:{icon:Ee,color:"text-muted-foreground",bg:"bg-muted border-border"},blocked:{icon:Le,color:"text-red-500",bg:"bg-red-500/10 border-red-500/30"},skipped:{icon:Ae,color:"text-yellow-500",bg:"bg-yellow-500/10 border-yellow-500/30"}},fs=["completed","in_progress","pending","blocked","skipped"];function ie({stage:s}){const{formatMessage:t}=T(),a=fe[s.status],r=a.icon,n=s.status==="in_progress"?"inProgress":s.status;return e.jsxs("div",{className:j("flex flex-col items-center gap-1.5 px-4 py-3 rounded-lg border-2 min-w-[90px] transition-all",a.bg),children:[e.jsx(r,{className:j("w-5 h-5",a.color,a.animate&&"animate-spin"),style:a.animate?{animationDuration:"2s"}:void 0}),e.jsx("span",{className:"text-xs font-medium",children:s.label}),e.jsx("span",{className:j("text-[10px]",a.color),children:t({id:`team.pipeline.${n}`})}),s.role&&e.jsx("span",{className:"text-[10px] text-muted-foreground truncate max-w-[80px]",children:s.role})]})}function ps(){return e.jsxs("div",{className:"flex items-center px-1",children:[e.jsx("div",{className:"w-6 h-0.5 bg-border"}),e.jsx("div",{className:"w-0 h-0 border-t-[4px] border-t-transparent border-b-[4px] border-b-transparent border-l-[6px] border-l-border"})]})}function gs({stages:s,phaseInfo:t}){const{formatMessage:a}=T();return s.length===0?e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:a({id:"team.pipeline.title"})}),e.jsx("p",{className:"text-xs text-muted-foreground text-center py-8",children:a({id:"team.pipeline.noStages"})})]}):e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsxs("div",{className:"space-y-3 flex-1",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:a({id:"team.pipeline.title"})}),t&&e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsxs(p,{variant:"secondary",children:[a({id:"team.coordinates.phase"}),": ",t.currentPhase,t.totalPhases!=null&&`/${t.totalPhases}`]}),t.currentStep&&e.jsxs(p,{variant:"secondary",children:[a({id:"team.coordinates.step"}),": ",t.currentStep]}),t.gapIteration>0&&e.jsxs(p,{variant:"outline",children:[a({id:"team.coordinates.gap"}),": ",t.gapIteration]})]}),e.jsx("div",{className:"hidden sm:flex items-center gap-0",children:s.map((r,n)=>e.jsxs("div",{className:"flex items-center",children:[n>0&&e.jsx(ps,{}),e.jsx(ie,{stage:r})]},r.id))}),e.jsx("div",{className:"flex sm:hidden flex-col items-center gap-2",children:s.map(r=>e.jsx(ie,{stage:r},r.id))})]}),e.jsx("div",{className:"flex flex-wrap gap-3 text-[10px] text-muted-foreground mt-auto pt-3 border-t border-border",children:fs.map(r=>{const n=fe[r],i=n.icon,l=r==="in_progress"?"inProgress":r;return e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(i,{className:j("w-3 h-3",n.color)}),a({id:`team.pipeline.${l}`})]},r)})})]})}function js(s){if(!s)return"";const t=Date.now(),a=new Date(s).getTime(),r=t-a;if(r<0)return"now";const n=Math.floor(r/1e3);if(n<60)return`${n}s`;const i=Math.floor(n/60);if(i<60)return`${i}m`;const l=Math.floor(i/60);return l<24?`${l}h`:`${Math.floor(l/24)}d`}function vs(s){return s.lastSeen&&Date.now()-new Date(s.lastSeen).getTime()<120*1e3?"active":"idle"}function Ns({members:s}){const{formatMessage:t}=T();return e.jsxs("div",{className:"space-y-3",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:t({id:"team.membersPanel.title"})}),e.jsxs("div",{className:"space-y-2",children:[s.map(a=>{const r=vs(a),n=r==="active";return e.jsx(L,{className:"overflow-hidden",children:e.jsx(E,{className:"p-3",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"pt-0.5",children:e.jsx("div",{className:j("w-2.5 h-2.5 rounded-full",n?"bg-green-500 shadow-[0_0_6px_rgba(34,197,94,0.5)]":"bg-muted-foreground/40")})}),e.jsxs("div",{className:"flex-1 min-w-0 space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm font-medium truncate",children:a.member}),e.jsx(p,{variant:n?"success":"secondary",className:"text-[10px] px-1.5 py-0",children:t({id:`team.membersPanel.${r}`})})]}),a.lastAction&&e.jsx("p",{className:"text-xs text-muted-foreground truncate",children:a.lastAction}),e.jsxs("div",{className:"flex items-center gap-3 text-[10px] text-muted-foreground",children:[e.jsxs("span",{children:[a.messageCount," ",t({id:"team.messages"}).toLowerCase()]}),a.lastSeen&&e.jsxs("span",{children:[js(a.lastSeen)," ",t({id:"team.membersPanel.ago"})]})]})]})]})})},a.member)}),s.length===0&&e.jsx("p",{className:"text-xs text-muted-foreground text-center py-4",children:t({id:"team.empty.noMessages"})})]})]})}function bs(s){if(!s)return"";const t=Date.now(),a=new Date(s).getTime(),r=t-a;if(r<0)return"now";const n=Math.floor(r/1e3);if(n<60)return`${n}s`;const i=Math.floor(n/60);if(i<60)return`${i}m`;const l=Math.floor(i/60);return l<24?`${l}h`:`${Math.floor(l/24)}d`}function ys(s){return s.lastSeen&&Date.now()-new Date(s.lastSeen).getTime()<120*1e3?"active":"idle"}function ws(s,t){const a=s.member.toLowerCase();return t.find(r=>r.role&&r.role.toLowerCase()===a||r.id.toLowerCase()===a)}const Ts={completed:"success",in_progress:"info",pending:"secondary",blocked:"destructive",skipped:"warning"};function le({members:s,stages:t,roleState:a}){const{formatMessage:r}=T();return t.length===0?e.jsx(Ns,{members:s}):e.jsxs("div",{className:"space-y-3",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:r({id:"team.membersPanel.title"})}),e.jsxs("div",{className:"space-y-2",children:[s.map(n=>{const i=ys(n),l=i==="active",c=ws(n,t);return e.jsx(L,{className:"overflow-hidden",children:e.jsx(E,{className:"p-3",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"pt-0.5",children:e.jsx("div",{className:j("w-2.5 h-2.5 rounded-full",l?"bg-green-500 shadow-[0_0_6px_rgba(34,197,94,0.5)]":"bg-muted-foreground/40")})}),e.jsxs("div",{className:"flex-1 min-w-0 space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx("span",{className:"text-sm font-medium truncate",children:n.member}),e.jsx(p,{variant:l?"success":"secondary",className:"text-[10px] px-1.5 py-0",children:r({id:`team.membersPanel.${i}`})}),c&&e.jsx(p,{variant:Ts[c.status]??"secondary",className:"text-[10px] px-1.5 py-0",children:c.label})]}),n.lastAction&&e.jsx("p",{className:"text-xs text-muted-foreground truncate",children:n.lastAction}),e.jsxs("div",{className:"flex items-center gap-3 text-[10px] text-muted-foreground",children:[e.jsxs("span",{children:[n.messageCount," ",r({id:"team.messages"}).toLowerCase()]}),n.lastSeen&&e.jsxs("span",{children:[bs(n.lastSeen)," ",r({id:"team.membersPanel.ago"})]})]})]})]})})},n.member)}),s.length===0&&e.jsx("p",{className:"text-xs text-muted-foreground text-center py-4",children:r({id:"team.empty.noMessages"})})]})]})}function _s({phaseInfo:s}){const{formatMessage:t}=T();return e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsxs(p,{variant:"secondary",children:[t({id:"team.coordinates.phase"}),": ",s.currentPhase,s.totalPhases!=null&&`/${s.totalPhases}`]}),s.currentStep&&e.jsxs(p,{variant:"secondary",children:[t({id:"team.coordinates.step"}),": ",s.currentStep]}),s.gapIteration>0&&e.jsxs(p,{variant:"outline",children:[t({id:"team.coordinates.gap"}),": ",s.gapIteration]})]})}const ce={plan_ready:"bg-blue-500/15 text-blue-600 dark:text-blue-400 border-blue-500/30",plan_approved:"bg-blue-500/15 text-blue-600 dark:text-blue-400 border-blue-500/30",plan_revision:"bg-amber-500/15 text-amber-600 dark:text-amber-400 border-amber-500/30",task_unblocked:"bg-cyan-500/15 text-cyan-600 dark:text-cyan-400 border-cyan-500/30",impl_complete:"bg-primary/15 text-primary border-primary/30",impl_progress:"bg-primary/15 text-primary border-primary/30",test_result:"bg-green-500/15 text-green-600 dark:text-green-400 border-green-500/30",review_result:"bg-purple-500/15 text-purple-600 dark:text-purple-400 border-purple-500/30",fix_required:"bg-red-500/15 text-red-600 dark:text-red-400 border-red-500/30",error:"bg-red-500/15 text-red-600 dark:text-red-400 border-red-500/30",shutdown:"bg-muted text-muted-foreground border-border",message:"bg-muted text-muted-foreground border-border"};function Cs({type:s}){const{formatMessage:t}=T(),a=ce[s]||ce.message,r=`team.messageType.${s}`;let n;try{n=t({id:r})}catch{n=s}return e.jsx("span",{className:j("text-[10px] px-1.5 py-0.5 rounded border font-medium",a),children:n})}function Ss({msg:s}){var n,i;const[t,a]=h.useState(!1),r=s.ts?s.ts.substring(11,19):"";return e.jsxs("div",{className:"flex gap-3 py-2.5 border-b border-border last:border-b-0 animate-in fade-in slide-in-from-top-1 duration-300",children:[e.jsx("span",{className:"text-[10px] font-mono text-muted-foreground w-16 shrink-0 pt-0.5",children:r}),e.jsxs("div",{className:"flex-1 min-w-0 space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx("span",{className:"text-xs font-medium",children:s.from}),e.jsx("span",{className:"text-[10px] text-muted-foreground",children:"→"}),e.jsx("span",{className:"text-xs font-medium",children:s.to}),e.jsx(Cs,{type:s.type}),s.id&&e.jsx("span",{className:"text-[10px] text-muted-foreground",children:s.id})]}),e.jsx("p",{className:"text-xs text-foreground/80",children:s.summary}),(s.ref||((n=s.data)==null?void 0:n.ref))&&e.jsxs("div",{className:"flex items-center gap-1 text-[10px] text-muted-foreground",children:[e.jsx(ae,{className:"w-3 h-3"}),e.jsx("span",{className:"font-mono truncate",children:s.ref||((i=s.data)==null?void 0:i.ref)})]}),s.data&&Object.keys(s.data).length>0&&e.jsxs("div",{children:[e.jsx("button",{onClick:()=>a(!t),className:"text-[10px] text-primary hover:underline flex items-center gap-0.5",children:t?e.jsxs(e.Fragment,{children:[e.jsx(me,{className:"w-3 h-3"})," collapse"]}):e.jsxs(e.Fragment,{children:[e.jsx(te,{className:"w-3 h-3"})," data"]})}),t&&e.jsx("pre",{className:"text-[10px] bg-muted p-2 rounded mt-1 overflow-x-auto max-h-40",children:JSON.stringify(s.data,null,2)})]})]})]})}function Ms({messages:s,total:t,filter:a,onFilterChange:r,onClearFilter:n,expanded:i,onExpandedChange:l}){const{formatMessage:c}=T(),x=!!(a.from||a.to||a.type),{senders:g,receivers:v,types:C}=h.useMemo(()=>{const d=new Set,m=new Set,_=new Set;for(const y of s)d.add(y.from),m.add(y.to),_.add(y.type);return{senders:Array.from(d).sort(),receivers:Array.from(m).sort(),types:Array.from(_).sort()}},[s]),N=[...s].reverse();return e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("button",{onClick:()=>l(!i),className:"flex items-center gap-2 text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:[i?e.jsx(me,{className:"w-4 h-4"}):e.jsx(te,{className:"w-4 h-4"}),c({id:"team.timeline.title"}),e.jsxs("span",{className:"text-xs font-normal",children:["(",c({id:"team.timeline.showing"},{showing:s.length,total:t}),")"]})]}),x&&e.jsxs(k,{variant:"ghost",size:"sm",onClick:n,className:"h-6 text-xs gap-1",children:[e.jsx(xe,{className:"w-3 h-3"}),c({id:"team.timeline.clearFilters"})]})]}),i&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs(W,{value:a.from??"__all__",onValueChange:d=>r({from:d==="__all__"?void 0:d}),children:[e.jsxs(I,{className:"w-[130px] h-7 text-xs",children:[e.jsx(es,{className:"w-3 h-3 mr-1"}),e.jsx(J,{placeholder:c({id:"team.timeline.filterFrom"})})]}),e.jsxs(G,{children:[e.jsx(D,{value:"__all__",children:c({id:"team.filterAll"})}),g.map(d=>e.jsx(D,{value:d,children:d},d))]})]}),e.jsxs(W,{value:a.to??"__all__",onValueChange:d=>r({to:d==="__all__"?void 0:d}),children:[e.jsx(I,{className:"w-[130px] h-7 text-xs",children:e.jsx(J,{placeholder:c({id:"team.timeline.filterTo"})})}),e.jsxs(G,{children:[e.jsx(D,{value:"__all__",children:c({id:"team.filterAll"})}),v.map(d=>e.jsx(D,{value:d,children:d},d))]})]}),e.jsxs(W,{value:a.type??"__all__",onValueChange:d=>r({type:d==="__all__"?void 0:d}),children:[e.jsx(I,{className:"w-[150px] h-7 text-xs",children:e.jsx(J,{placeholder:c({id:"team.timeline.filterType"})})}),e.jsxs(G,{children:[e.jsx(D,{value:"__all__",children:c({id:"team.filterAll"})}),C.map(d=>e.jsx(D,{value:d,children:d},d))]})]})]}),e.jsx(L,{children:e.jsx(E,{className:"p-3",children:N.length>0?e.jsx("div",{className:"divide-y-0",children:N.map(d=>e.jsx(Ss,{msg:d},d.id))}):e.jsxs("div",{className:"text-center py-8",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:c({id:"team.empty.noMessages"})}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:c({id:"team.empty.noMessagesHint"})})]})})})]})]})}function pe(s){return s.endsWith(".json")?"json":s.endsWith(".md")?"markdown":s.endsWith(".txt")||s.endsWith(".log")||s.endsWith(".tsv")||s.endsWith(".csv")?"text":"unknown"}function ge(s){return s?s<1024?`${s} B`:s<1024*1024?`${(s/1024).toFixed(1)} KB`:`${(s/(1024*1024)).toFixed(1)} MB`:""}function ks(s){if(!s)return"";try{return new Date(s).toLocaleDateString(void 0,{month:"short",day:"numeric"})}catch{return""}}function je({contentType:s}){return s==="json"?e.jsx(ts,{className:"w-4 h-4 text-blue-500"}):e.jsx(ae,{className:"w-4 h-4 text-gray-500"})}function ve({node:s,depth:t,expanded:a,selectedPath:r,onToggle:n,onSelect:i}){if(s.type==="directory"){const x=a.has(s.path);return e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1 py-1.5 px-2 cursor-pointer hover:bg-accent/50 rounded transition-colors",style:{paddingLeft:t*16+8},onClick:()=>n(s.path),children:[x?e.jsx(te,{className:"w-4 h-4 text-muted-foreground"}):e.jsx(Re,{className:"w-4 h-4 text-muted-foreground"}),e.jsx(ss,{className:j("w-4 h-4",x?"text-amber-500":"text-amber-400")}),e.jsx("span",{className:"text-sm truncate",children:s.name})]}),x&&s.children&&e.jsx("div",{children:s.children.map(g=>e.jsx(ve,{node:g,depth:t+1,expanded:a,selectedPath:r,onToggle:n,onSelect:i},g.path))})]},s.path)}const l=r===s.path,c=s.contentType||pe(s.path);return e.jsxs("div",{className:j("flex items-center gap-1 py-1.5 px-2 cursor-pointer hover:bg-accent/50 rounded transition-colors",l&&"bg-accent"),style:{paddingLeft:t*16+28},onClick:()=>i(s),children:[e.jsx(je,{contentType:c}),e.jsx("span",{className:"text-sm truncate flex-1",children:s.name}),s.size!==void 0&&e.jsx("span",{className:"text-xs text-muted-foreground ml-2",children:ge(s.size)})]},s.path)}function Fs({teamName:s}){const{formatMessage:t}=T(),[a,r]=h.useState([]),[n,i]=h.useState(new Set),[l,c]=h.useState(null),[x,g]=h.useState(""),[v,C]=h.useState(!1),[N,d]=h.useState(!0),[m,_]=h.useState(null);h.useEffect(()=>{s&&(d(!0),_(null),De(s).then(f=>{r(f.tree||[]);const b=(f.tree||[]).filter(w=>w.type==="directory").map(w=>w.path);i(new Set(b))}).catch(f=>{console.error("Failed to load artifacts:",f),_(t({id:"team.artifacts.loadError",defaultMessage:"Failed to load artifacts"}))}).finally(()=>{d(!1)}))},[s,t]);const y=h.useCallback(f=>{i(b=>{const w=new Set(b);return w.has(f)?w.delete(f):w.add(f),w})},[]),F=h.useCallback(async f=>{if(f.type!=="directory"){c(f),C(!0),g("");try{const b=await $e(s,f.path);g(b.content)}catch(b){console.error("Failed to load file content:",b),g(t({id:"team.artifacts.contentError",defaultMessage:"Failed to load file content"}))}finally{C(!1)}}},[s,t]),A=l?l.contentType||pe(l.path):"text",M=A==="json"?"json":A==="markdown"?"markdown":"text";return N?e.jsxs("div",{className:"flex items-center justify-center py-12",children:[e.jsx(H,{className:"h-8 w-8 animate-spin text-muted-foreground"}),e.jsx("span",{className:"ml-3 text-muted-foreground",children:t({id:"team.artifacts.loading",defaultMessage:"Loading artifacts..."})})]}):m?e.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[e.jsx(Q,{className:"h-12 w-12 text-destructive mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:m})]}):a.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[e.jsx(Q,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-foreground mb-2",children:t({id:"team.artifacts.noArtifacts",defaultMessage:"No artifacts yet"})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:t({id:"team.artifacts.emptyHint",defaultMessage:"Artifacts will appear here when the team generates them"})})]}):e.jsxs("div",{className:"flex h-[600px] border rounded-lg overflow-hidden",children:[e.jsxs("div",{className:"w-72 shrink-0 border-r bg-muted/30 flex flex-col",children:[e.jsx("div",{className:"p-3 border-b bg-background shrink-0",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Q,{className:"w-4 h-4 text-muted-foreground"}),e.jsx("span",{className:"text-sm font-medium",children:t({id:"team.artifacts.title",defaultMessage:"Artifacts"})})]})}),e.jsx("div",{className:"flex-1 overflow-y-auto py-2",children:a.map(f=>e.jsx(ve,{node:f,depth:0,expanded:n,selectedPath:l==null?void 0:l.path,onToggle:y,onSelect:F},f.path))})]}),e.jsx("div",{className:"flex-1 flex flex-col min-w-0",children:l?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"p-3 border-b bg-muted/30 shrink-0",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(je,{contentType:A}),e.jsx("span",{className:"text-sm font-medium truncate",children:l.name}),l.size!==void 0&&e.jsx("span",{className:"text-xs text-muted-foreground",children:ge(l.size)}),l.modifiedAt&&e.jsx("span",{className:"text-xs text-muted-foreground ml-auto",children:ks(l.modifiedAt)})]})}),e.jsx("div",{className:"flex-1 overflow-y-auto p-4",children:v?e.jsx("div",{className:"flex items-center justify-center py-12",children:e.jsx(H,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):e.jsx(Ls,{content:x,contentType:M})})]}):e.jsx("div",{className:"flex-1 flex items-center justify-center text-center p-8",children:e.jsxs("div",{children:[e.jsx(ae,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:t({id:"team.artifacts.selectFile",defaultMessage:"Select a file to preview"})})]})})})]})}function q({data:s,depth:t=0}){if(s===null)return e.jsx("span",{className:"text-red-500 font-mono text-sm",children:"null"});if(s===void 0)return e.jsx("span",{className:"text-muted-foreground font-mono text-sm",children:"undefined"});if(typeof s=="boolean")return e.jsx("span",{className:j("font-mono text-sm",s?"text-orange-500":"text-red-500"),children:s?"true":"false"});if(typeof s=="number")return e.jsx("span",{className:"text-blue-500 font-mono text-sm",children:s});if(typeof s=="string")return s.length>200?e.jsxs("span",{className:"text-green-600 dark:text-green-400 font-mono text-sm break-all",children:['"',s.slice(0,200),'..."']}):e.jsxs("span",{className:"text-green-600 dark:text-green-400 font-mono text-sm",children:['"',s,'"']});if(Array.isArray(s))return s.length===0?e.jsx("span",{className:"text-muted-foreground text-sm",children:"[]"}):e.jsx("div",{className:"space-y-2",children:s.map((a,r)=>e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(p,{variant:"outline",className:"text-xs shrink-0 mt-0.5",children:r}),e.jsx("div",{className:"flex-1 min-w-0",children:typeof a=="object"&&a!==null?e.jsx("div",{className:"bg-muted/30 rounded-lg p-2 border",children:e.jsx(q,{data:a,depth:t+1})}):e.jsx(q,{data:a,depth:t+1})})]},r))});if(typeof s=="object"){const a=Object.entries(s);return a.length===0?e.jsx("span",{className:"text-muted-foreground text-sm",children:"{}"}):e.jsx("div",{className:j("space-y-2",t>0&&"pl-2 border-l-2 border-border"),children:a.map(([r,n])=>{const i=typeof n=="object"&&n!==null,l=Array.isArray(n),c=l?n.length:i?Object.keys(n).length:0;return e.jsxs("div",{className:"group",children:[e.jsxs("div",{className:"flex items-center gap-2 py-1",children:[e.jsx("span",{className:"text-purple-600 dark:text-purple-400 font-medium text-sm shrink-0",children:r}),i&&e.jsx(p,{variant:"secondary",className:"text-[10px] h-4 px-1",children:l?`${c} items`:`${c} fields`})]}),e.jsx("div",{className:"ml-3",children:i?e.jsx("div",{className:"bg-muted/20 rounded-md p-2 border",children:e.jsx(q,{data:n,depth:t+1})}):e.jsx(q,{data:n,depth:t+1})})]},r)})})}return e.jsx("span",{className:"text-sm",children:String(s)})}function As({data:s}){const t=h.useMemo(()=>{const a={type:"",fields:0,items:0,depth:0},r=(n,i)=>{a.depth=Math.max(a.depth,i),Array.isArray(n)?(a.type="Array",a.items=n.length,n.forEach(l=>r(l,i+1))):typeof n=="object"&&n!==null&&(a.type="Object",a.fields=Object.keys(n).length,Object.values(n).forEach(l=>r(l,i+1)))};return r(s,0),a},[s]);return e.jsxs("div",{className:"flex items-center gap-4 p-3 bg-muted/50 rounded-lg mb-4 text-sm",children:[e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(p,{variant:"outline",children:t.type})}),t.type==="Object"&&e.jsxs("div",{className:"text-muted-foreground",children:[e.jsx("span",{className:"font-medium text-foreground",children:t.fields})," fields"]}),t.type==="Array"&&e.jsxs("div",{className:"text-muted-foreground",children:[e.jsx("span",{className:"font-medium text-foreground",children:t.items})," items"]}),e.jsxs("div",{className:"text-muted-foreground",children:[e.jsx("span",{className:"font-medium text-foreground",children:t.depth})," levels deep"]})]})}function Ls({content:s,contentType:t}){if(!s)return e.jsx("div",{className:"text-muted-foreground text-sm",children:"No content"});if(t==="json")try{const a=JSON.parse(s);return e.jsxs("div",{className:"space-y-2",children:[e.jsx(As,{data:a}),e.jsx("div",{className:"bg-card rounded-lg",children:e.jsx(q,{data:a})})]})}catch{return e.jsx("pre",{className:"text-xs bg-muted/50 p-4 rounded-lg overflow-auto font-mono whitespace-pre-wrap break-words border",children:s})}return t==="markdown"?e.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none",children:e.jsx("pre",{className:"whitespace-pre-wrap break-words font-sans text-sm leading-relaxed bg-transparent p-0",children:s})}):e.jsx("pre",{className:"text-xs bg-muted/50 p-4 rounded-lg overflow-auto font-mono whitespace-pre-wrap break-words border",children:s})}const Es={active:{variant:"info"},completed:{variant:"success"},archived:{variant:"secondary"}},oe={active:"team.status.active",completed:"team.status.completed",archived:"team.status.archived"};function Ps(s){if(!s)return"";try{return new Date(s).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch{return""}}function Ds({team:s,onClick:t,onArchive:a,onUnarchive:r,onDelete:n,showActions:i=!0,actionsDisabled:l=!1,className:c}){const{formatMessage:x}=T(),{variant:g}=Es[s.status]||{variant:"default"},v=oe[s.status]?x({id:oe[s.status]}):s.status,C=s.status==="archived",N=m=>{m.target.closest("[data-radix-popper-content-wrapper]")||t==null||t(s.name)},d=(m,_)=>{switch(m.stopPropagation(),_){case"view":t==null||t(s.name);break;case"archive":a==null||a(s.name);break;case"unarchive":r==null||r(s.name);break;case"delete":n==null||n(s.name);break}};return e.jsx(L,{className:j("group cursor-pointer transition-all duration-200 hover:shadow-md hover:border-primary/30",c),onClick:N,children:e.jsxs(E,{className:"p-4",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2 mb-2",children:[e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx("div",{className:"flex items-center gap-2 mb-1",children:e.jsx("h3",{className:"font-bold text-card-foreground text-sm tracking-wide truncate",children:s.name})})}),e.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[e.jsx(p,{variant:g,children:v}),s.pipeline_mode&&e.jsxs(p,{variant:"default",className:"gap-1",children:[e.jsx(se,{className:"h-3 w-3"}),s.pipeline_mode]}),i&&e.jsxs(qe,{children:[e.jsx(ze,{asChild:!0,children:e.jsx(k,{variant:"ghost",size:"icon",className:"h-8 w-8 opacity-0 group-hover:opacity-100 transition-opacity",onClick:m=>m.stopPropagation(),disabled:l,children:e.jsx(as,{className:"h-4 w-4"})})}),e.jsxs(Ve,{align:"end",children:[e.jsxs(B,{onClick:m=>d(m,"view"),children:[e.jsx(rs,{className:"mr-2 h-4 w-4"}),x({id:"team.actions.viewDetails"})]}),e.jsx(re,{}),C?e.jsxs(B,{onClick:m=>d(m,"unarchive"),children:[e.jsx(ns,{className:"mr-2 h-4 w-4"}),x({id:"team.actions.unarchive"})]}):e.jsxs(B,{onClick:m=>d(m,"archive"),children:[e.jsx(is,{className:"mr-2 h-4 w-4"}),x({id:"team.actions.archive"})]}),e.jsx(re,{}),e.jsxs(B,{onClick:m=>d(m,"delete"),className:"text-destructive focus:text-destructive",children:[e.jsx(Be,{className:"mr-2 h-4 w-4"}),x({id:"team.actions.delete"})]})]})]})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ee,{className:"h-3.5 w-3.5"}),s.messageCount," ",x({id:"team.card.messages"})]}),s.lastActivity&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Oe,{className:"h-3.5 w-3.5"}),Ps(s.lastActivity)]})]}),s.members&&s.members.length>0&&e.jsxs("div",{className:"flex items-center gap-1.5 mt-2 flex-wrap",children:[e.jsx(U,{className:"h-3.5 w-3.5 text-muted-foreground shrink-0"}),s.members.map(m=>e.jsx(p,{variant:"outline",className:"text-[10px] px-1.5 py-0 font-normal",children:m},m))]})]})})}function $s({className:s}){return e.jsx(L,{className:j("animate-pulse",s),children:e.jsxs(E,{className:"p-4",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsx("div",{className:"flex-1",children:e.jsx("div",{className:"h-5 w-32 rounded bg-muted"})}),e.jsx("div",{className:"h-5 w-16 rounded-full bg-muted"})]}),e.jsxs("div",{className:"mt-3 flex gap-4",children:[e.jsx("div",{className:"h-4 w-24 rounded bg-muted"}),e.jsx("div",{className:"h-4 w-20 rounded bg-muted"}),e.jsx("div",{className:"h-4 w-20 rounded bg-muted"})]})]})})}function Rs(){const{formatMessage:s}=T(),{locationFilter:t,setLocationFilter:a,searchQuery:r,setSearchQuery:n,selectTeamAndShowDetail:i}=z(),[l,c]=h.useState(!1),[x,g]=h.useState(null),{teams:v,isLoading:C,isFetching:N,refetch:d}=he(t),{archiveTeam:m,isArchiving:_}=ms(),{unarchiveTeam:y,isUnarchiving:F}=xs(),{deleteTeam:A,isDeleting:M}=us(),f=_||F||M,b=h.useMemo(()=>{if(!r)return v;const u=r.toLowerCase();return v.filter(P=>P.name.toLowerCase().includes(u))},[v,r]),w=async u=>{try{await m(u)}catch(P){console.error("Failed to archive team:",P)}},o=async u=>{try{await y(u)}catch(P){console.error("Failed to unarchive team:",P)}},$=u=>{g(u),c(!0)},R=async()=>{if(x)try{await A(x),c(!1),g(null)}catch(u){console.error("Failed to delete team:",u)}},V=()=>n("");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(U,{className:"w-5 h-5"}),e.jsx("h1",{className:"text-2xl font-semibold text-foreground",children:s({id:"team.title"})})]}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:s({id:"team.description"})})]}),e.jsx("div",{className:"flex items-center gap-2",children:e.jsxs(k,{variant:"outline",size:"sm",onClick:()=>d(),disabled:N,children:[e.jsx(de,{className:j("h-4 w-4 mr-2",N&&"animate-spin")}),s({id:"common.actions.refresh"})]})})]}),e.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center",children:[e.jsx(ue,{value:t,onValueChange:u=>a(u),tabs:[{value:"active",label:s({id:"team.filters.active"})},{value:"archived",label:s({id:"team.filters.archived"})},{value:"all",label:s({id:"team.filters.all"})}]}),e.jsxs("div",{className:"flex-1 max-w-sm relative",children:[e.jsx(Ke,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),e.jsx(Qe,{placeholder:s({id:"team.searchPlaceholder"}),value:r,onChange:u=>n(u.target.value),className:"pl-9 pr-9"}),r&&e.jsx("button",{onClick:V,className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:e.jsx(xe,{className:"h-4 w-4"})})]})]}),C?e.jsx("div",{className:"grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-3",children:Array.from({length:6}).map((u,P)=>e.jsx($s,{},P))}):b.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-16 px-4 border border-dashed border-border rounded-lg",children:[e.jsx(U,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-foreground mb-1",children:s(r?{id:"team.emptyState.noMatching"}:{id:"team.emptyState.noTeams"})}),e.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-sm mb-4",children:s(r?{id:"team.emptyState.noMatchingDescription"}:{id:"team.emptyState.noTeamsDescription"})}),r&&e.jsx(k,{variant:"outline",onClick:V,children:s({id:"common.actions.clearFilters"})})]}):e.jsx("div",{className:"grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-3",children:b.map(u=>e.jsx(Ds,{team:u,onClick:i,onArchive:w,onUnarchive:o,onDelete:$,actionsDisabled:f},u.name))}),e.jsx(Ue,{open:l,onOpenChange:c,children:e.jsxs(We,{children:[e.jsxs(Ie,{children:[e.jsx(Je,{children:s({id:"team.dialog.deleteTeam"})}),e.jsx(Ge,{children:s({id:"team.dialog.deleteConfirm"})})]}),e.jsxs(He,{children:[e.jsx(k,{variant:"outline",onClick:()=>{c(!1),g(null)},children:s({id:"team.dialog.cancel"})}),e.jsx(k,{variant:"destructive",onClick:R,disabled:M,children:s(M?{id:"team.dialog.deleting"}:{id:"team.actions.delete"})})]})]})})]})}const qs=["plan","impl","test","review"];function O(s){return s?s.charAt(0).toUpperCase()+s.slice(1).toLowerCase():""}function K(s,t){const a=s.toLowerCase(),r=t.filter(l=>{const c=l.from.toLowerCase();return c===a||c.startsWith(a)});if(r.length===0)return"pending";const n=r[r.length-1];return["shutdown","impl_complete","review_result","test_result"].includes(n.type)?"completed":n.type==="error"?"blocked":"in_progress"}function zs(s,t){if(s.pipeline_stages&&s.pipeline_stages.length>0)return s.pipeline_stages.map(a=>{var l;const r=a.toUpperCase(),n=a.toLowerCase(),i=(l=s.roles)==null?void 0:l.find(c=>c.toLowerCase().startsWith(n));return{id:r,label:O(a),role:i,status:K(a,t)}});if(s.roles&&s.roles.length>0){const a=s.roles.filter(r=>r.toLowerCase()!=="coordinator");if(a.length>0)return a.map(r=>({id:r.toUpperCase(),label:O(r),role:r,status:K(r,t)}))}if(t.length>0){const a=new Map;for(const r of t){const n=r.from;if(n.toLowerCase()==="coordinator")continue;const i=n.toLowerCase();a.has(i)||a.set(i,n)}if(a.size>0)return Array.from(a.entries()).map(([,r])=>({id:r.toUpperCase(),label:O(r),role:r,status:K(r,t)}))}return qs.map(a=>({id:a.toUpperCase(),label:O(a),role:void 0,status:K(a,t)}))}function Vs(s){if(!s||Object.keys(s).length===0)return null;const t=s.coordinator;return!t||typeof t.current_phase!="number"?null:{currentPhase:t.current_phase,totalPhases:typeof t.total_phases=="number"?t.total_phases:null,currentStep:typeof t.current_step=="string"?t.current_step:null,gapIteration:typeof t.gap_iteration=="number"?t.gap_iteration:0}}function et(){const{formatMessage:s}=T(),{selectedTeam:t,viewMode:a,autoRefresh:r,toggleAutoRefresh:n,messageFilter:i,setMessageFilter:l,clearMessageFilter:c,timelineExpanded:x,setTimelineExpanded:g,detailTab:v,setDetailTab:C,backToList:N,locationFilter:d}=z(),m=ne(Xe),_=ne(u=>u.toggleImmersiveMode),{teams:y,error:F,isLoading:A}=he(d),{messages:M,total:f}=os(a==="detail"?t:null,i),{members:b,totalMessages:w}=ds(a==="detail"?t:null),o=h.useMemo(()=>y.find(u=>u.name===t),[y,t]);h.useEffect(()=>{a==="detail"&&t&&!A&&y.length>0&&!o&&N()},[a,t,A,y.length,o,N]);const $=h.useMemo(()=>zs({pipeline_stages:o==null?void 0:o.pipeline_stages,role_state:o==null?void 0:o.role_state,roles:o==null?void 0:o.roles},M),[o==null?void 0:o.pipeline_stages,o==null?void 0:o.role_state,o==null?void 0:o.roles,M]),R=h.useMemo(()=>Vs(o==null?void 0:o.role_state),[o==null?void 0:o.role_state]);if(F&&a==="detail")return e.jsx("div",{className:"flex items-center justify-center min-h-[400px] p-8",children:e.jsxs("div",{className:"text-center max-w-md",children:[e.jsx("div",{className:"mb-4",children:e.jsx(Ye,{className:"w-16 h-16 mx-auto text-destructive"})}),e.jsx("h2",{className:"text-xl font-semibold mb-2",children:s({id:"team.error.loadFailed"})}),e.jsx("p",{className:"text-muted-foreground mb-6",children:F instanceof Error?F.message:String(F)}),e.jsxs("div",{className:"flex gap-3 justify-center",children:[e.jsx(k,{onClick:N,variant:"default",children:s({id:"team.detail.backToList"})}),e.jsx(k,{onClick:()=>window.location.reload(),variant:"outline",children:s({id:"common.actions.retry"})})]})]})});if(a==="list"||!t||a==="detail"&&y.length>0&&!o)return e.jsx("div",{className:"space-y-6",children:e.jsx(Rs,{})});const V=[{value:"pipeline",label:s({id:"team.tabs.pipeline"}),icon:e.jsx(se,{className:"h-4 w-4"})},{value:"artifacts",label:s({id:"team.tabs.artifacts"}),icon:e.jsx(Q,{className:"h-4 w-4"})},{value:"messages",label:s({id:"team.tabs.messages"}),icon:e.jsx(ee,{className:"h-4 w-4"})}];return e.jsxs("div",{className:j("space-y-6",m&&"h-screen overflow-hidden"),children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(hs,{selectedTeam:t,onBack:N,members:b,totalMessages:w,autoRefresh:r,onToggleAutoRefresh:n,skillType:o!=null&&o.team_name?`team-${o.team_name}`:void 0,pipelineMode:o==null?void 0:o.pipeline_mode}),e.jsx("button",{onClick:_,className:j("p-2 rounded-md transition-colors",m?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground hover:bg-muted"),title:m?"Exit Fullscreen":"Fullscreen",children:m?e.jsx(ls,{className:"w-4 h-4"}):e.jsx(cs,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[e.jsx(L,{className:"lg:col-span-2 flex flex-col",children:e.jsx(E,{className:"p-4 flex-1",children:e.jsx(gs,{stages:$,phaseInfo:R})})}),e.jsx(L,{children:e.jsx(E,{className:"p-4",children:e.jsx(le,{members:b,stages:$,roleState:o==null?void 0:o.role_state})})})]}),R&&e.jsx(_s,{phaseInfo:R}),e.jsx(ue,{value:v,onValueChange:u=>C(u),tabs:V}),v==="pipeline"&&e.jsx(L,{children:e.jsx(E,{className:"p-6",children:e.jsx(le,{members:b,stages:$,roleState:o==null?void 0:o.role_state})})}),v==="artifacts"&&e.jsx(Fs,{teamName:t}),v==="messages"&&e.jsx(Ms,{messages:M,total:f,filter:i,onFilterChange:l,onClearFilter:c,expanded:x,onExpandedChange:g})]})}export{et as TeamPage,et as default};
|
|
2
|
+
//# sourceMappingURL=TeamPage-CT-zNCrF.js.map
|