claude-code-workflow 7.2.26 → 7.2.28
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/specs/architecture-constraints.md +5 -0
- package/.claude/skills/_shared/SKILL-DESIGN-SPEC.md +140 -0
- package/.claude/skills/investigate/SKILL.md +110 -0
- package/.claude/skills/investigate/phases/01-root-cause-investigation.md +132 -0
- package/.claude/skills/investigate/phases/02-pattern-analysis.md +126 -0
- package/.claude/skills/investigate/phases/03-hypothesis-testing.md +177 -0
- package/.claude/skills/investigate/phases/04-implementation.md +139 -0
- package/.claude/skills/investigate/phases/05-verification-report.md +153 -0
- package/.claude/skills/investigate/specs/debug-report-format.md +226 -0
- package/.claude/skills/investigate/specs/iron-law.md +101 -0
- package/.claude/skills/security-audit/SKILL.md +125 -0
- package/.claude/skills/security-audit/phases/01-supply-chain-scan.md +139 -0
- package/.claude/skills/security-audit/phases/02-owasp-review.md +156 -0
- package/.claude/skills/security-audit/phases/03-threat-modeling.md +180 -0
- package/.claude/skills/security-audit/phases/04-report-tracking.md +177 -0
- package/.claude/skills/security-audit/specs/owasp-checklist.md +442 -0
- package/.claude/skills/security-audit/specs/scoring-gates.md +141 -0
- package/.claude/skills/ship/SKILL.md +105 -0
- package/.claude/skills/ship/phases/01-preflight-checks.md +121 -0
- package/.claude/skills/ship/phases/02-code-review.md +137 -0
- package/.claude/skills/ship/phases/03-version-bump.md +171 -0
- package/.claude/skills/ship/phases/04-changelog-commit.md +167 -0
- package/.claude/skills/ship/phases/05-pr-creation.md +163 -0
- package/.claude/skills/skill-generator/templates/sequential-phase.md +10 -0
- package/.claude/skills/skill-generator/templates/skill-md.md +4 -0
- package/.claude/skills/team-arch-opt/SKILL.md +1 -1
- package/.claude/skills/team-arch-opt/roles/coordinator/commands/monitor.md +3 -1
- package/.claude/skills/team-arch-opt/roles/refactorer/role.md +3 -1
- package/.claude/skills/team-arch-opt/specs/team-config.json +2 -2
- package/.claude/skills/team-coordinate/SKILL.md +4 -3
- package/.claude/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +1 -1
- package/.claude/skills/team-coordinate/roles/coordinator/commands/dispatch.md +3 -2
- package/.claude/skills/team-coordinate/roles/coordinator/commands/monitor.md +3 -2
- package/.claude/skills/team-coordinate/roles/coordinator/role.md +16 -15
- package/.claude/skills/team-coordinate/specs/pipelines.md +7 -4
- package/.claude/skills/team-coordinate/specs/role-spec-template.md +1 -0
- package/.claude/skills/team-interactive-craft/SKILL.md +127 -0
- package/.claude/skills/team-interactive-craft/roles/a11y-tester/role.md +159 -0
- package/.claude/skills/team-interactive-craft/roles/builder/role.md +216 -0
- package/.claude/skills/team-interactive-craft/roles/coordinator/commands/analyze.md +71 -0
- package/.claude/skills/team-interactive-craft/roles/coordinator/commands/dispatch.md +192 -0
- package/.claude/skills/team-interactive-craft/roles/coordinator/commands/monitor.md +183 -0
- package/.claude/skills/team-interactive-craft/roles/coordinator/role.md +166 -0
- package/.claude/skills/team-interactive-craft/roles/interaction-designer/role.md +144 -0
- package/.claude/skills/team-interactive-craft/roles/researcher/role.md +131 -0
- package/.claude/skills/team-interactive-craft/specs/interaction-patterns.md +362 -0
- package/.claude/skills/team-interactive-craft/specs/pipelines.md +85 -0
- package/.claude/skills/team-interactive-craft/specs/team-config.json +105 -0
- package/.claude/skills/team-interactive-craft/specs/vanilla-constraints.md +83 -0
- package/.claude/skills/team-lifecycle-v4/SKILL.md +1 -1
- package/.claude/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +14 -2
- package/.claude/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +24 -2
- package/.claude/skills/team-lifecycle-v4/roles/executor/role.md +3 -1
- package/.claude/skills/team-motion-design/SKILL.md +129 -0
- package/.claude/skills/team-motion-design/roles/animator/role.md +194 -0
- package/.claude/skills/team-motion-design/roles/choreographer/role.md +164 -0
- package/.claude/skills/team-motion-design/roles/coordinator/commands/analyze.md +64 -0
- package/.claude/skills/team-motion-design/roles/coordinator/commands/dispatch.md +203 -0
- package/.claude/skills/team-motion-design/roles/coordinator/commands/monitor.md +184 -0
- package/.claude/skills/team-motion-design/roles/coordinator/role.md +167 -0
- package/.claude/skills/team-motion-design/roles/motion-researcher/role.md +115 -0
- package/.claude/skills/team-motion-design/roles/motion-tester/role.md +175 -0
- package/.claude/skills/team-motion-design/specs/gpu-constraints.md +114 -0
- package/.claude/skills/team-motion-design/specs/motion-tokens.md +128 -0
- package/.claude/skills/team-motion-design/specs/pipelines.md +74 -0
- package/.claude/skills/team-motion-design/specs/reduced-motion.md +129 -0
- package/.claude/skills/team-motion-design/specs/team-config.json +99 -0
- package/.claude/skills/team-perf-opt/SKILL.md +1 -1
- package/.claude/skills/team-perf-opt/roles/optimizer/role.md +3 -1
- package/.claude/skills/team-perf-opt/specs/team-config.json +2 -2
- package/.claude/skills/team-quality-assurance/SKILL.md +1 -1
- package/.claude/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +4 -2
- package/.claude/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +4 -2
- package/.claude/skills/team-quality-assurance/roles/executor/role.md +3 -1
- package/.claude/skills/team-testing/SKILL.md +1 -1
- package/.claude/skills/team-testing/roles/coordinator/commands/dispatch.md +5 -2
- package/.claude/skills/team-testing/roles/coordinator/commands/monitor.md +4 -2
- package/.claude/skills/team-testing/roles/executor/role.md +3 -1
- package/.claude/skills/team-ui-polish/SKILL.md +127 -0
- package/.claude/skills/team-ui-polish/roles/coordinator/commands/analyze.md +77 -0
- package/.claude/skills/team-ui-polish/roles/coordinator/commands/dispatch.md +194 -0
- package/.claude/skills/team-ui-polish/roles/coordinator/commands/monitor.md +180 -0
- package/.claude/skills/team-ui-polish/roles/coordinator/role.md +170 -0
- package/.claude/skills/team-ui-polish/roles/diagnostician/role.md +160 -0
- package/.claude/skills/team-ui-polish/roles/optimizer/role.md +225 -0
- package/.claude/skills/team-ui-polish/roles/scanner/role.md +356 -0
- package/.claude/skills/team-ui-polish/roles/verifier/role.md +142 -0
- package/.claude/skills/team-ui-polish/specs/anti-patterns.md +141 -0
- package/.claude/skills/team-ui-polish/specs/design-standards.md +356 -0
- package/.claude/skills/team-ui-polish/specs/fix-strategies.md +235 -0
- package/.claude/skills/team-ui-polish/specs/pipelines.md +81 -0
- package/.claude/skills/team-ui-polish/specs/scoring-guide.md +162 -0
- package/.claude/skills/team-ui-polish/specs/team-config.json +73 -0
- package/.claude/skills/team-uidesign/SKILL.md +6 -1
- package/.claude/skills/team-uidesign/roles/designer/role.md +28 -4
- package/.claude/skills/team-uidesign/roles/implementer/role.md +25 -3
- package/.claude/skills/team-uidesign/roles/researcher/role.md +21 -2
- package/.claude/skills/team-uidesign/roles/reviewer/role.md +19 -17
- package/.claude/skills/team-uidesign/specs/anti-patterns.md +211 -0
- package/.claude/skills/team-uidesign/specs/design-standards.md +329 -0
- package/.claude/skills/team-uidesign/specs/scoring-guide.md +114 -0
- package/.claude/skills/team-uidesign/specs/team-config.json +1 -1
- package/.claude/skills/team-uidesign/specs/ux-writing.md +86 -0
- package/.claude/skills/team-ux-improve/SKILL.md +3 -0
- package/.claude/skills/team-ux-improve/roles/designer/role.md +30 -0
- package/.claude/skills/team-ux-improve/roles/diagnoser/role.md +16 -1
- package/.claude/skills/team-ux-improve/roles/scanner/role.md +43 -1
- package/.claude/skills/team-ux-improve/specs/anti-patterns.md +103 -0
- package/.claude/skills/team-ux-improve/specs/design-standards.md +54 -0
- package/.claude/skills/team-ux-improve/specs/heuristics.md +88 -0
- package/.claude/skills/team-ux-improve/wisdom/anti-patterns/common-ux-pitfalls.md +40 -8
- package/.claude/skills/team-ux-improve/wisdom/patterns/state-management.md +32 -12
- package/.claude/skills/team-ux-improve/wisdom/patterns/ui-feedback.md +35 -11
- package/.claude/skills/team-ux-improve/wisdom/principles/general-ux.md +36 -9
- package/.claude/skills/team-visual-a11y/SKILL.md +143 -0
- package/.claude/skills/team-visual-a11y/roles/color-auditor/role.md +178 -0
- package/.claude/skills/team-visual-a11y/roles/coordinator/commands/analyze.md +72 -0
- package/.claude/skills/team-visual-a11y/roles/coordinator/commands/dispatch.md +250 -0
- package/.claude/skills/team-visual-a11y/roles/coordinator/commands/monitor.md +204 -0
- package/.claude/skills/team-visual-a11y/roles/coordinator/role.md +169 -0
- package/.claude/skills/team-visual-a11y/roles/fix-implementer/role.md +246 -0
- package/.claude/skills/team-visual-a11y/roles/focus-auditor/role.md +222 -0
- package/.claude/skills/team-visual-a11y/roles/remediation-planner/role.md +206 -0
- package/.claude/skills/team-visual-a11y/roles/typo-auditor/role.md +185 -0
- package/.claude/skills/team-visual-a11y/specs/focus-patterns.md +325 -0
- package/.claude/skills/team-visual-a11y/specs/oklch-standards.md +130 -0
- package/.claude/skills/team-visual-a11y/specs/pipelines.md +98 -0
- package/.claude/skills/team-visual-a11y/specs/team-config.json +109 -0
- package/.claude/skills/team-visual-a11y/specs/typography-scale.md +165 -0
- package/.claude/skills/team-visual-a11y/specs/wcag-matrix.md +133 -0
- package/.codex/skills/investigate/agents/investigator.md +392 -0
- package/.codex/skills/investigate/orchestrator.md +362 -0
- package/.codex/skills/investigate/phases/01-root-cause-investigation.md +212 -0
- package/.codex/skills/investigate/phases/02-pattern-analysis.md +181 -0
- package/.codex/skills/investigate/phases/03-hypothesis-testing.md +214 -0
- package/.codex/skills/investigate/phases/04-implementation.md +195 -0
- package/.codex/skills/investigate/phases/05-verification-report.md +240 -0
- package/.codex/skills/security-audit/agents/security-auditor.md +341 -0
- package/.codex/skills/security-audit/orchestrator.md +384 -0
- package/.codex/skills/security-audit/phases/01-supply-chain-scan.md +226 -0
- package/.codex/skills/security-audit/phases/02-owasp-review.md +232 -0
- package/.codex/skills/security-audit/phases/03-threat-modeling.md +249 -0
- package/.codex/skills/security-audit/phases/04-report-tracking.md +300 -0
- package/.codex/skills/ship/agents/ship-operator.md +318 -0
- package/.codex/skills/ship/orchestrator.md +426 -0
- package/.codex/skills/ship/phases/01-preflight-checks.md +198 -0
- package/.codex/skills/ship/phases/02-code-review.md +228 -0
- package/.codex/skills/ship/phases/03-version-bump.md +259 -0
- package/.codex/skills/ship/phases/04-changelog-commit.md +263 -0
- package/.codex/skills/ship/phases/05-pr-creation.md +280 -0
- package/.codex/skills/team-interactive-craft/SKILL.md +220 -0
- package/.codex/skills/team-interactive-craft/roles/a11y-tester/role.md +159 -0
- package/.codex/skills/team-interactive-craft/roles/builder/role.md +216 -0
- package/.codex/skills/team-interactive-craft/roles/coordinator/commands/analyze.md +71 -0
- package/.codex/skills/team-interactive-craft/roles/coordinator/commands/dispatch.md +162 -0
- package/.codex/skills/team-interactive-craft/roles/coordinator/commands/monitor.md +233 -0
- package/.codex/skills/team-interactive-craft/roles/coordinator/role.md +209 -0
- package/.codex/skills/team-interactive-craft/roles/interaction-designer/role.md +144 -0
- package/.codex/skills/team-interactive-craft/roles/researcher/role.md +131 -0
- package/.codex/skills/team-interactive-craft/specs/interaction-patterns.md +362 -0
- package/.codex/skills/team-interactive-craft/specs/pipelines.md +85 -0
- package/.codex/skills/team-interactive-craft/specs/team-config.json +105 -0
- package/.codex/skills/team-interactive-craft/specs/vanilla-constraints.md +83 -0
- package/.codex/skills/team-motion-design/SKILL.md +222 -0
- package/.codex/skills/team-motion-design/roles/animator/role.md +194 -0
- package/.codex/skills/team-motion-design/roles/choreographer/role.md +164 -0
- package/.codex/skills/team-motion-design/roles/coordinator/commands/analyze.md +64 -0
- package/.codex/skills/team-motion-design/roles/coordinator/commands/dispatch.md +168 -0
- package/.codex/skills/team-motion-design/roles/coordinator/commands/monitor.md +242 -0
- package/.codex/skills/team-motion-design/roles/coordinator/role.md +210 -0
- package/.codex/skills/team-motion-design/roles/motion-researcher/role.md +115 -0
- package/.codex/skills/team-motion-design/roles/motion-tester/role.md +175 -0
- package/.codex/skills/team-motion-design/specs/gpu-constraints.md +114 -0
- package/.codex/skills/team-motion-design/specs/motion-tokens.md +128 -0
- package/.codex/skills/team-motion-design/specs/pipelines.md +74 -0
- package/.codex/skills/team-motion-design/specs/reduced-motion.md +129 -0
- package/.codex/skills/team-motion-design/specs/team-config.json +99 -0
- package/.codex/skills/team-ui-polish/SKILL.md +218 -0
- package/.codex/skills/team-ui-polish/roles/coordinator/commands/analyze.md +77 -0
- package/.codex/skills/team-ui-polish/roles/coordinator/commands/dispatch.md +167 -0
- package/.codex/skills/team-ui-polish/roles/coordinator/commands/monitor.md +230 -0
- package/.codex/skills/team-ui-polish/roles/coordinator/role.md +213 -0
- package/.codex/skills/team-ui-polish/roles/diagnostician/role.md +164 -0
- package/.codex/skills/team-ui-polish/roles/optimizer/role.md +229 -0
- package/.codex/skills/team-ui-polish/roles/scanner/role.md +360 -0
- package/.codex/skills/team-ui-polish/roles/verifier/role.md +142 -0
- package/.codex/skills/team-ui-polish/specs/anti-patterns.md +141 -0
- package/.codex/skills/team-ui-polish/specs/design-standards.md +356 -0
- package/.codex/skills/team-ui-polish/specs/fix-strategies.md +235 -0
- package/.codex/skills/team-ui-polish/specs/pipelines.md +81 -0
- package/.codex/skills/team-ui-polish/specs/scoring-guide.md +162 -0
- package/.codex/skills/team-ui-polish/specs/team-config.json +73 -0
- package/.codex/skills/team-visual-a11y/SKILL.md +319 -0
- package/.codex/skills/team-visual-a11y/roles/color-auditor/role.md +178 -0
- package/.codex/skills/team-visual-a11y/roles/coordinator/commands/analyze.md +72 -0
- package/.codex/skills/team-visual-a11y/roles/coordinator/commands/dispatch.md +188 -0
- package/.codex/skills/team-visual-a11y/roles/coordinator/commands/monitor.md +281 -0
- package/.codex/skills/team-visual-a11y/roles/coordinator/role.md +213 -0
- package/.codex/skills/team-visual-a11y/roles/fix-implementer/role.md +246 -0
- package/.codex/skills/team-visual-a11y/roles/focus-auditor/role.md +222 -0
- package/.codex/skills/team-visual-a11y/roles/remediation-planner/role.md +206 -0
- package/.codex/skills/team-visual-a11y/roles/typo-auditor/role.md +185 -0
- package/.codex/skills/team-visual-a11y/specs/focus-patterns.md +325 -0
- package/.codex/skills/team-visual-a11y/specs/oklch-standards.md +130 -0
- package/.codex/skills/team-visual-a11y/specs/pipelines.md +98 -0
- package/.codex/skills/team-visual-a11y/specs/team-config.json +109 -0
- package/.codex/skills/team-visual-a11y/specs/typography-scale.md +165 -0
- package/.codex/skills/team-visual-a11y/specs/wcag-matrix.md +133 -0
- package/README.md +8 -0
- package/ccw/dist/core/hooks/hook-templates.d.ts.map +1 -1
- package/ccw/dist/core/hooks/hook-templates.js +114 -1
- package/ccw/dist/core/hooks/hook-templates.js.map +1 -1
- package/ccw/dist/core/routes/cli-routes.d.ts.map +1 -1
- package/ccw/dist/core/routes/cli-routes.js +34 -0
- package/ccw/dist/core/routes/cli-routes.js.map +1 -1
- package/ccw/dist/core/routes/system-routes.js +2 -2
- package/ccw/dist/core/routes/system-routes.js.map +1 -1
- package/ccw/frontend/dist/assets/{AlertDialog-Bf1jdqax.js → AlertDialog-BjP1ydDR.js} +2 -2
- package/ccw/frontend/dist/assets/{AlertDialog-Bf1jdqax.js.map → AlertDialog-BjP1ydDR.js.map} +1 -1
- package/ccw/frontend/dist/assets/{AnalysisPage-C8niKdp4.js → AnalysisPage-CAX3xqMf.js} +2 -2
- package/ccw/frontend/dist/assets/{AnalysisPage-C8niKdp4.js.map → AnalysisPage-CAX3xqMf.js.map} +1 -1
- package/ccw/frontend/dist/assets/{ApiSettingsPage-BL2c3UNS.js → ApiSettingsPage-CtWlmztq.js} +2 -2
- package/ccw/frontend/dist/assets/{ApiSettingsPage-BL2c3UNS.js.map → ApiSettingsPage-CtWlmztq.js.map} +1 -1
- package/ccw/frontend/dist/assets/{CliModeToggle-BePBFynD.js → CliModeToggle-hR4a-eLX.js} +2 -2
- package/ccw/frontend/dist/assets/{CliModeToggle-BePBFynD.js.map → CliModeToggle-hR4a-eLX.js.map} +1 -1
- package/ccw/frontend/dist/assets/{CliSessionSharePage-7cYtX6FT.js → CliSessionSharePage-DzNPkFN9.js} +2 -2
- package/ccw/frontend/dist/assets/{CliSessionSharePage-7cYtX6FT.js.map → CliSessionSharePage-DzNPkFN9.js.map} +1 -1
- package/ccw/frontend/dist/assets/{CliViewerPage-CBwg1mPL.js → CliViewerPage-BPEGN4TT.js} +2 -2
- package/ccw/frontend/dist/assets/{CliViewerPage-CBwg1mPL.js.map → CliViewerPage-BPEGN4TT.js.map} +1 -1
- package/ccw/frontend/dist/assets/{CodexLensPage-Bt74xORP.js → CodexLensPage-Cf0r2RHY.js} +2 -2
- package/ccw/frontend/dist/assets/{CodexLensPage-Bt74xORP.js.map → CodexLensPage-Cf0r2RHY.js.map} +1 -1
- package/ccw/frontend/dist/assets/{Collapsible-Wrs87QT7.js → Collapsible-DEm1rJ4h.js} +2 -2
- package/ccw/frontend/dist/assets/{Collapsible-Wrs87QT7.js.map → Collapsible-DEm1rJ4h.js.map} +1 -1
- package/ccw/frontend/dist/assets/{CommandsManagerPage-ChQjmPWZ.js → CommandsManagerPage-BpeWw8HO.js} +2 -2
- package/ccw/frontend/dist/assets/{CommandsManagerPage-ChQjmPWZ.js.map → CommandsManagerPage-BpeWw8HO.js.map} +1 -1
- package/ccw/frontend/dist/assets/{DeepWikiPage-dEO5wi6X.js → DeepWikiPage-BEsmh2vF.js} +2 -2
- package/ccw/frontend/dist/assets/{DeepWikiPage-dEO5wi6X.js.map → DeepWikiPage-BEsmh2vF.js.map} +1 -1
- package/ccw/frontend/dist/assets/{EndpointsPage-4zq269xY.js → EndpointsPage-B30SFdtU.js} +2 -2
- package/ccw/frontend/dist/assets/{EndpointsPage-4zq269xY.js.map → EndpointsPage-B30SFdtU.js.map} +1 -1
- package/ccw/frontend/dist/assets/{ExplorerPage-B0YTENhA.js → ExplorerPage-BVvMpg1O.js} +2 -2
- package/ccw/frontend/dist/assets/{ExplorerPage-B0YTENhA.js.map → ExplorerPage-BVvMpg1O.js.map} +1 -1
- package/ccw/frontend/dist/assets/{FixSessionPage-CwGs6dhz.js → FixSessionPage-CL73dHbh.js} +2 -2
- package/ccw/frontend/dist/assets/{FixSessionPage-CwGs6dhz.js.map → FixSessionPage-CL73dHbh.js.map} +1 -1
- package/ccw/frontend/dist/assets/{FloatingFileBrowser-COZRBslc.js → FloatingFileBrowser-BL-28lMZ.js} +2 -2
- package/ccw/frontend/dist/assets/{FloatingFileBrowser-COZRBslc.js.map → FloatingFileBrowser-BL-28lMZ.js.map} +1 -1
- package/ccw/frontend/dist/assets/{FloatingPanel-DYvgQZRD.js → FloatingPanel-BzZDciHZ.js} +2 -2
- package/ccw/frontend/dist/assets/{FloatingPanel-DYvgQZRD.js.map → FloatingPanel-BzZDciHZ.js.map} +1 -1
- package/ccw/frontend/dist/assets/{GraphExplorerPage-ewMHQGem.js → GraphExplorerPage-CDp6-d8P.js} +2 -2
- package/ccw/frontend/dist/assets/{GraphExplorerPage-ewMHQGem.js.map → GraphExplorerPage-CDp6-d8P.js.map} +1 -1
- package/ccw/frontend/dist/assets/{HistoryPage-BMeR0PrK.js → HistoryPage-fZY_7O9n.js} +2 -2
- package/ccw/frontend/dist/assets/{HistoryPage-BMeR0PrK.js.map → HistoryPage-fZY_7O9n.js.map} +1 -1
- package/ccw/frontend/dist/assets/{HookManagerPage-DBW2LnRm.js → HookManagerPage-4LJeC9bq.js} +2 -2
- package/ccw/frontend/dist/assets/{HookManagerPage-DBW2LnRm.js.map → HookManagerPage-4LJeC9bq.js.map} +1 -1
- package/ccw/frontend/dist/assets/{InstallationsPage--pMj0QEH.js → InstallationsPage-Bpigrbhw.js} +2 -2
- package/ccw/frontend/dist/assets/{InstallationsPage--pMj0QEH.js.map → InstallationsPage-Bpigrbhw.js.map} +1 -1
- package/ccw/frontend/dist/assets/{IssueHubPage-C_QMpQSR.js → IssueHubPage-BP0zJc1R.js} +2 -2
- package/ccw/frontend/dist/assets/{IssueHubPage-C_QMpQSR.js.map → IssueHubPage-BP0zJc1R.js.map} +1 -1
- package/ccw/frontend/dist/assets/{LiteTasksPage-CSWFdQ2-.js → LiteTasksPage-CSt2oVKQ.js} +2 -2
- package/ccw/frontend/dist/assets/{LiteTasksPage-CSWFdQ2-.js.map → LiteTasksPage-CSt2oVKQ.js.map} +1 -1
- package/ccw/frontend/dist/assets/{McpManagerPage-Dvv8NtGy.js → McpManagerPage-B-xaMA0w.js} +2 -2
- package/ccw/frontend/dist/assets/{McpManagerPage-Dvv8NtGy.js.map → McpManagerPage-B-xaMA0w.js.map} +1 -1
- package/ccw/frontend/dist/assets/{MemoryPage-YO8WZzZO.js → MemoryPage-CJqo_7DY.js} +2 -2
- package/ccw/frontend/dist/assets/{MemoryPage-YO8WZzZO.js.map → MemoryPage-CJqo_7DY.js.map} +1 -1
- package/ccw/frontend/dist/assets/{NotFoundPage-quUJw0CD.js → NotFoundPage-ibZeQA-Y.js} +2 -2
- package/ccw/frontend/dist/assets/{NotFoundPage-quUJw0CD.js.map → NotFoundPage-ibZeQA-Y.js.map} +1 -1
- package/ccw/frontend/dist/assets/{OrchestratorPage-tuThWPID.js → OrchestratorPage-DgJ4ctPQ.js} +2 -2
- package/ccw/frontend/dist/assets/{OrchestratorPage-tuThWPID.js.map → OrchestratorPage-DgJ4ctPQ.js.map} +1 -1
- package/ccw/frontend/dist/assets/{ProjectOverviewPage-shTilwiT.js → ProjectOverviewPage-Cit0Yq0D.js} +2 -2
- package/ccw/frontend/dist/assets/{ProjectOverviewPage-shTilwiT.js.map → ProjectOverviewPage-Cit0Yq0D.js.map} +1 -1
- package/ccw/frontend/dist/assets/{PromptHistoryPage-6rQnsI8l.js → PromptHistoryPage-Ce1HDIK0.js} +2 -2
- package/ccw/frontend/dist/assets/{PromptHistoryPage-6rQnsI8l.js.map → PromptHistoryPage-Ce1HDIK0.js.map} +1 -1
- package/ccw/frontend/dist/assets/{ReviewSessionPage-JOmzjVbT.js → ReviewSessionPage-J1KikNrk.js} +2 -2
- package/ccw/frontend/dist/assets/{ReviewSessionPage-JOmzjVbT.js.map → ReviewSessionPage-J1KikNrk.js.map} +1 -1
- package/ccw/frontend/dist/assets/{RulesManagerPage-Cayfywqi.js → RulesManagerPage-CdBjTmth.js} +2 -2
- package/ccw/frontend/dist/assets/{RulesManagerPage-Cayfywqi.js.map → RulesManagerPage-CdBjTmth.js.map} +1 -1
- package/ccw/frontend/dist/assets/{SessionDetailPage-iMn0k84i.js → SessionDetailPage-B9ZK7LvX.js} +2 -2
- package/ccw/frontend/dist/assets/{SessionDetailPage-iMn0k84i.js.map → SessionDetailPage-B9ZK7LvX.js.map} +1 -1
- package/ccw/frontend/dist/assets/{SessionsPage-Ciqjy9kz.js → SessionsPage-CW_nS5UR.js} +2 -2
- package/ccw/frontend/dist/assets/{SessionsPage-Ciqjy9kz.js.map → SessionsPage-CW_nS5UR.js.map} +1 -1
- package/ccw/frontend/dist/assets/{SettingsPage-BPDbXPSM.js → SettingsPage-B2PYzSoO.js} +35 -35
- package/ccw/frontend/dist/assets/SettingsPage-B2PYzSoO.js.map +1 -0
- package/ccw/frontend/dist/assets/{SkillsManagerPage-D3LzbpJY.js → SkillsManagerPage-CTnWrrwp.js} +2 -2
- package/ccw/frontend/dist/assets/{SkillsManagerPage-D3LzbpJY.js.map → SkillsManagerPage-CTnWrrwp.js.map} +1 -1
- package/ccw/frontend/dist/assets/{SpecsSettingsPage-BpkJctzo.js → SpecsSettingsPage-DJpi9XQL.js} +2 -2
- package/ccw/frontend/dist/assets/{SpecsSettingsPage-BpkJctzo.js.map → SpecsSettingsPage-DJpi9XQL.js.map} +1 -1
- package/ccw/frontend/dist/assets/{Switch-BpB9h__9.js → Switch-Ac6Ov7uy.js} +2 -2
- package/ccw/frontend/dist/assets/{Switch-BpB9h__9.js.map → Switch-Ac6Ov7uy.js.map} +1 -1
- package/ccw/frontend/dist/assets/{TabsNavigation-BGsKy7DO.js → TabsNavigation-DZAAspqR.js} +2 -2
- package/ccw/frontend/dist/assets/{TabsNavigation-BGsKy7DO.js.map → TabsNavigation-DZAAspqR.js.map} +1 -1
- package/ccw/frontend/dist/assets/{TaskDrawer-bYIlbM0Q.js → TaskDrawer-BJkwfhIZ.js} +2 -2
- package/ccw/frontend/dist/assets/{TaskDrawer-bYIlbM0Q.js.map → TaskDrawer-BJkwfhIZ.js.map} +1 -1
- package/ccw/frontend/dist/assets/{TeamPage-CihtQ6LQ.js → TeamPage-BJgjxBgb.js} +2 -2
- package/ccw/frontend/dist/assets/{TeamPage-CihtQ6LQ.js.map → TeamPage-BJgjxBgb.js.map} +1 -1
- package/ccw/frontend/dist/assets/{TerminalDashboardPage-BDnNF_ud.js → TerminalDashboardPage-D1WekoOy.js} +2 -2
- package/ccw/frontend/dist/assets/{TerminalDashboardPage-BDnNF_ud.js.map → TerminalDashboardPage-D1WekoOy.js.map} +1 -1
- package/ccw/frontend/dist/assets/{archive-CQJ86bQp.js → archive-DxemgIhF.js} +2 -2
- package/ccw/frontend/dist/assets/{archive-CQJ86bQp.js.map → archive-DxemgIhF.js.map} +1 -1
- package/ccw/frontend/dist/assets/{archive-restore-BhTfDbPU.js → archive-restore-CjS83f1V.js} +2 -2
- package/ccw/frontend/dist/assets/{archive-restore-BhTfDbPU.js.map → archive-restore-CjS83f1V.js.map} +1 -1
- package/ccw/frontend/dist/assets/{arrow-right-eUAZnT9C.js → arrow-right-B5PUcn8I.js} +2 -2
- package/ccw/frontend/dist/assets/{arrow-right-eUAZnT9C.js.map → arrow-right-B5PUcn8I.js.map} +1 -1
- package/ccw/frontend/dist/assets/{bookmark-plus-ilF5-V-k.js → bookmark-plus-DCc9aPbb.js} +2 -2
- package/ccw/frontend/dist/assets/{bookmark-plus-ilF5-V-k.js.map → bookmark-plus-DCc9aPbb.js.map} +1 -1
- package/ccw/frontend/dist/assets/{bot-BLkaQscs.js → bot-DOwFtzak.js} +2 -2
- package/ccw/frontend/dist/assets/{bot-BLkaQscs.js.map → bot-DOwFtzak.js.map} +1 -1
- package/ccw/frontend/dist/assets/{braces-D9HdgsO6.js → braces-96qH3aFh.js} +2 -2
- package/ccw/frontend/dist/assets/{braces-D9HdgsO6.js.map → braces-96qH3aFh.js.map} +1 -1
- package/ccw/frontend/dist/assets/{circle-stop-C3ZF1okQ.js → circle-stop-CCxSuil1.js} +2 -2
- package/ccw/frontend/dist/assets/{circle-stop-C3ZF1okQ.js.map → circle-stop-CCxSuil1.js.map} +1 -1
- package/ccw/frontend/dist/assets/{cpu-B-QjaSjm.js → cpu-CZNSJFdq.js} +2 -2
- package/ccw/frontend/dist/assets/{cpu-B-QjaSjm.js.map → cpu-CZNSJFdq.js.map} +1 -1
- package/ccw/frontend/dist/assets/{ellipsis-vertical-CbNlw2gS.js → ellipsis-vertical-h8xtvw2_.js} +2 -2
- package/ccw/frontend/dist/assets/{ellipsis-vertical-CbNlw2gS.js.map → ellipsis-vertical-h8xtvw2_.js.map} +1 -1
- package/ccw/frontend/dist/assets/{eye-yAy69Cnn.js → eye-D3NY0bm6.js} +2 -2
- package/ccw/frontend/dist/assets/{eye-yAy69Cnn.js.map → eye-D3NY0bm6.js.map} +1 -1
- package/ccw/frontend/dist/assets/{eye-off-D5uzLZyP.js → eye-off-Cy2vkc8p.js} +2 -2
- package/ccw/frontend/dist/assets/{eye-off-D5uzLZyP.js.map → eye-off-Cy2vkc8p.js.map} +1 -1
- package/ccw/frontend/dist/assets/{file-json-rwo1NowL.js → file-json-Bzq3U1Mx.js} +2 -2
- package/ccw/frontend/dist/assets/{file-json-rwo1NowL.js.map → file-json-Bzq3U1Mx.js.map} +1 -1
- package/ccw/frontend/dist/assets/{file-text-DRkrjie9.js → file-text-DwuwPDPi.js} +2 -2
- package/ccw/frontend/dist/assets/{file-text-DRkrjie9.js.map → file-text-DwuwPDPi.js.map} +1 -1
- package/ccw/frontend/dist/assets/{filter-BOe-OTu1.js → filter-q9g-bknU.js} +2 -2
- package/ccw/frontend/dist/assets/{filter-BOe-OTu1.js.map → filter-q9g-bknU.js.map} +1 -1
- package/ccw/frontend/dist/assets/{folder-BaWZWn_r.js → folder-CL6vb42J.js} +2 -2
- package/ccw/frontend/dist/assets/{folder-BaWZWn_r.js.map → folder-CL6vb42J.js.map} +1 -1
- package/ccw/frontend/dist/assets/{gauge-kazFexTr.js → gauge-BkrcQBly.js} +2 -2
- package/ccw/frontend/dist/assets/{gauge-kazFexTr.js.map → gauge-BkrcQBly.js.map} +1 -1
- package/ccw/frontend/dist/assets/{globe-BuHeEjxd.js → globe-BQbwyNeV.js} +2 -2
- package/ccw/frontend/dist/assets/{globe-BuHeEjxd.js.map → globe-BQbwyNeV.js.map} +1 -1
- package/ccw/frontend/dist/assets/{grid-3x3-DbhuUu4V.js → grid-3x3-x5_7DrN7.js} +2 -2
- package/ccw/frontend/dist/assets/{grid-3x3-DbhuUu4V.js.map → grid-3x3-x5_7DrN7.js.map} +1 -1
- package/ccw/frontend/dist/assets/{hard-drive-AoLGL0z4.js → hard-drive-DTyWXwzf.js} +2 -2
- package/ccw/frontend/dist/assets/{hard-drive-AoLGL0z4.js.map → hard-drive-DTyWXwzf.js.map} +1 -1
- package/ccw/frontend/dist/assets/{hash-Dpo1exMB.js → hash-80O0kJO7.js} +2 -2
- package/ccw/frontend/dist/assets/{hash-Dpo1exMB.js.map → hash-80O0kJO7.js.map} +1 -1
- package/ccw/frontend/dist/assets/{history-ujQnmMC9.js → history-DDlN2Bwa.js} +2 -2
- package/ccw/frontend/dist/assets/{history-ujQnmMC9.js.map → history-DDlN2Bwa.js.map} +1 -1
- package/ccw/frontend/dist/assets/{index-CxzXz6o1.js → index-B9A3Hnrk.js} +2 -2
- package/ccw/frontend/dist/assets/{index-CxzXz6o1.js.map → index-B9A3Hnrk.js.map} +1 -1
- package/ccw/frontend/dist/assets/{index-B76AGix5.js → index-Bs80iCX0.js} +2 -2
- package/ccw/frontend/dist/assets/{index-B76AGix5.js.map → index-Bs80iCX0.js.map} +1 -1
- package/ccw/frontend/dist/assets/{index-C_Yf5fZ4.js → index-mbeo62f8.js} +2 -2
- package/ccw/frontend/dist/assets/{index-C_Yf5fZ4.js.map → index-mbeo62f8.js.map} +1 -1
- package/ccw/frontend/dist/assets/{index-Dff4bg3u.js → index-rLgoBCfV.js} +3 -3
- package/ccw/frontend/dist/assets/{index-Dff4bg3u.js.map → index-rLgoBCfV.js.map} +1 -1
- package/ccw/frontend/dist/assets/{layout-grid-CBdE4K8h.js → layout-grid-C1niOWJx.js} +2 -2
- package/ccw/frontend/dist/assets/{layout-grid-CBdE4K8h.js.map → layout-grid-C1niOWJx.js.map} +1 -1
- package/ccw/frontend/dist/assets/{lightbulb-B9K6ZgRp.js → lightbulb-BTmI7SUg.js} +2 -2
- package/ccw/frontend/dist/assets/{lightbulb-B9K6ZgRp.js.map → lightbulb-BTmI7SUg.js.map} +1 -1
- package/ccw/frontend/dist/assets/{link-2-Oea4xHJl.js → link-2-CB9HKeuZ.js} +2 -2
- package/ccw/frontend/dist/assets/{link-2-Oea4xHJl.js.map → link-2-CB9HKeuZ.js.map} +1 -1
- package/ccw/frontend/dist/assets/{link-5yXdZBch.js → link-koEYiemK.js} +2 -2
- package/ccw/frontend/dist/assets/{link-5yXdZBch.js.map → link-koEYiemK.js.map} +1 -1
- package/ccw/frontend/dist/assets/{list-9lHhC_U_.js → list-v2_GaLdC.js} +2 -2
- package/ccw/frontend/dist/assets/{list-9lHhC_U_.js.map → list-v2_GaLdC.js.map} +1 -1
- package/ccw/frontend/dist/assets/{map-pin-B6Io5kmB.js → map-pin-BQNfAqG_.js} +2 -2
- package/ccw/frontend/dist/assets/{map-pin-B6Io5kmB.js.map → map-pin-BQNfAqG_.js.map} +1 -1
- package/ccw/frontend/dist/assets/{messages-square-BT000aD3.js → messages-square-Dzq5LGg9.js} +2 -2
- package/ccw/frontend/dist/assets/{messages-square-BT000aD3.js.map → messages-square-Dzq5LGg9.js.map} +1 -1
- package/ccw/frontend/dist/assets/{minimize-2-DO-zbT3a.js → minimize-2-CtkoJXcz.js} +2 -2
- package/ccw/frontend/dist/assets/{minimize-2-DO-zbT3a.js.map → minimize-2-CtkoJXcz.js.map} +1 -1
- package/ccw/frontend/dist/assets/{package-BjOw1ldU.js → package-CH3smL37.js} +2 -2
- package/ccw/frontend/dist/assets/{package-BjOw1ldU.js.map → package-CH3smL37.js.map} +1 -1
- package/ccw/frontend/dist/assets/{plug-9dAARpE1.js → plug-CZ0aL_yF.js} +2 -2
- package/ccw/frontend/dist/assets/{plug-9dAARpE1.js.map → plug-CZ0aL_yF.js.map} +1 -1
- package/ccw/frontend/dist/assets/{power-K2S39x7f.js → power-F2A_J4l6.js} +2 -2
- package/ccw/frontend/dist/assets/{power-K2S39x7f.js.map → power-F2A_J4l6.js.map} +1 -1
- package/ccw/frontend/dist/assets/{save-D9-CoT3x.js → save-Byxot0YU.js} +2 -2
- package/ccw/frontend/dist/assets/{save-D9-CoT3x.js.map → save-Byxot0YU.js.map} +1 -1
- package/ccw/frontend/dist/assets/{send-Bunw9NtC.js → send-JjqhUkpw.js} +2 -2
- package/ccw/frontend/dist/assets/{send-Bunw9NtC.js.map → send-JjqhUkpw.js.map} +1 -1
- package/ccw/frontend/dist/assets/{settings-2-osl4EXFf.js → settings-2--SuN9rAt.js} +2 -2
- package/ccw/frontend/dist/assets/{settings-2-osl4EXFf.js.map → settings-2--SuN9rAt.js.map} +1 -1
- package/ccw/frontend/dist/assets/{square-check-big-Dl5gYkjR.js → square-check-big-BbngGB2h.js} +2 -2
- package/ccw/frontend/dist/assets/{square-check-big-Dl5gYkjR.js.map → square-check-big-BbngGB2h.js.map} +1 -1
- package/ccw/frontend/dist/assets/{square-pen-Bue1chJR.js → square-pen-CgrHgZSl.js} +2 -2
- package/ccw/frontend/dist/assets/{square-pen-Bue1chJR.js.map → square-pen-CgrHgZSl.js.map} +1 -1
- package/ccw/frontend/dist/assets/{star-Bk7EC7FB.js → star-BU3TQr7Z.js} +2 -2
- package/ccw/frontend/dist/assets/{star-Bk7EC7FB.js.map → star-BU3TQr7Z.js.map} +1 -1
- package/ccw/frontend/dist/assets/{style-BbREPmRj.js → style-CKs7nnn3.js} +2 -2
- package/ccw/frontend/dist/assets/{style-BbREPmRj.js.map → style-CKs7nnn3.js.map} +1 -1
- package/ccw/frontend/dist/assets/{target-CElrCVhR.js → target-DW5tsDW6.js} +2 -2
- package/ccw/frontend/dist/assets/{target-CElrCVhR.js.map → target-DW5tsDW6.js.map} +1 -1
- package/ccw/frontend/dist/assets/{test-tube-wciJaoas.js → test-tube-BHm7w3ON.js} +2 -2
- package/ccw/frontend/dist/assets/{test-tube-wciJaoas.js.map → test-tube-BHm7w3ON.js.map} +1 -1
- package/ccw/frontend/dist/assets/{upload-BD1F07wG.js → upload-DYR7PWwt.js} +2 -2
- package/ccw/frontend/dist/assets/{upload-BD1F07wG.js.map → upload-DYR7PWwt.js.map} +1 -1
- package/ccw/frontend/dist/assets/{useApiSettings-D23HVEt8.js → useApiSettings-D0TVgQD_.js} +2 -2
- package/ccw/frontend/dist/assets/{useApiSettings-D23HVEt8.js.map → useApiSettings-D0TVgQD_.js.map} +1 -1
- package/ccw/frontend/dist/assets/{useCli-BGDd_lXD.js → useCli-DfY8mAP8.js} +2 -2
- package/ccw/frontend/dist/assets/{useCli-BGDd_lXD.js.map → useCli-DfY8mAP8.js.map} +1 -1
- package/ccw/frontend/dist/assets/{useCommands-B-m_HxPB.js → useCommands-CGusDp0F.js} +2 -2
- package/ccw/frontend/dist/assets/{useCommands-B-m_HxPB.js.map → useCommands-CGusDp0F.js.map} +1 -1
- package/ccw/frontend/dist/assets/{useDebounce-Z18-PHZr.js → useDebounce-CIwh0fF1.js} +2 -2
- package/ccw/frontend/dist/assets/{useDebounce-Z18-PHZr.js.map → useDebounce-CIwh0fF1.js.map} +1 -1
- package/ccw/frontend/dist/assets/{useFileExplorer-D4gPp-LB.js → useFileExplorer-FMyFv39K.js} +2 -2
- package/ccw/frontend/dist/assets/{useFileExplorer-D4gPp-LB.js.map → useFileExplorer-FMyFv39K.js.map} +1 -1
- package/ccw/frontend/dist/assets/{useLocale-DJ62jjFa.js → useLocale-B2qhsoTb.js} +2 -2
- package/ccw/frontend/dist/assets/{useLocale-DJ62jjFa.js.map → useLocale-B2qhsoTb.js.map} +1 -1
- package/ccw/frontend/dist/assets/{useSkills-B8NPs9__.js → useSkills-cxKXMBm3.js} +3 -3
- package/ccw/frontend/dist/assets/{useSkills-B8NPs9__.js.map → useSkills-cxKXMBm3.js.map} +1 -1
- package/ccw/frontend/dist/assets/{useSystemSettings-CVi7nKGJ.js → useSystemSettings-B-xUT_z-.js} +2 -2
- package/ccw/frontend/dist/assets/{useSystemSettings-CVi7nKGJ.js.map → useSystemSettings-B-xUT_z-.js.map} +1 -1
- package/ccw/frontend/dist/assets/{wand-sparkles-CLjPiU5w.js → wand-sparkles-DZV_3lPr.js} +2 -2
- package/ccw/frontend/dist/assets/{wand-sparkles-CLjPiU5w.js.map → wand-sparkles-DZV_3lPr.js.map} +1 -1
- package/ccw/frontend/dist/index.html +1 -1
- package/package.json +105 -105
- package/ccw/frontend/dist/assets/SettingsPage-BPDbXPSM.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as u,j as t,c as a}from"./index-
|
|
2
|
-
//# sourceMappingURL=Switch-
|
|
1
|
+
import{r as u,j as t,c as a}from"./index-rLgoBCfV.js";const n=u.forwardRef(({className:l,checked:c,onCheckedChange:e,onChange:r,disabled:f=!1,...i},o)=>{const p=s=>{r==null||r(s),e==null||e(s.target.checked)};return t.jsxs("label",{className:a("relative inline-flex items-center cursor-pointer",l),children:[t.jsx("input",{type:"checkbox",ref:o,checked:c,onChange:p,disabled:f,className:"sr-only peer",...i}),t.jsx("div",{className:a("w-9 h-5 bg-input rounded-full peer peer-focus:outline-none peer-focus:ring-2 peer-focus:ring-ring peer-focus:ring-offset-2","peer-checked:bg-primary peer-checked:after:translate-x-full",'after:content-[""] after:absolute after:top-[2px] after:left-[2px] after:bg-background after:rounded-full after:h-4 after:w-4 after:transition-all',"disabled:opacity-50 disabled:cursor-not-allowed")})]})});n.displayName="Switch";export{n as S};
|
|
2
|
+
//# sourceMappingURL=Switch-Ac6Ov7uy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch-
|
|
1
|
+
{"version":3,"file":"Switch-Ac6Ov7uy.js","sources":["../../src/components/ui/Switch.tsx"],"sourcesContent":["// ========================================\r\n// Switch Component\r\n// ========================================\r\n// Toggle switch for boolean values\r\n\r\nimport * as React from 'react';\r\nimport { cn } from '@/lib/utils';\r\n\r\nexport interface SwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {\r\n /** Checked state */\r\n checked?: boolean;\r\n /** Change handler */\r\n onCheckedChange?: (checked: boolean) => void;\r\n}\r\n\r\n/**\r\n * Switch component - a stylable toggle switch\r\n */\r\nexport const Switch = React.forwardRef<HTMLInputElement, SwitchProps>(\r\n ({ className, checked, onCheckedChange, onChange, disabled = false, ...props }, ref) => {\r\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\r\n onChange?.(e);\r\n onCheckedChange?.(e.target.checked);\r\n };\r\n\r\n return (\r\n <label className={cn('relative inline-flex items-center cursor-pointer', className)}>\r\n <input\r\n type=\"checkbox\"\r\n ref={ref}\r\n checked={checked}\r\n onChange={handleChange}\r\n disabled={disabled}\r\n className=\"sr-only peer\"\r\n {...props}\r\n />\r\n <div className={cn(\r\n 'w-9 h-5 bg-input rounded-full peer peer-focus:outline-none peer-focus:ring-2 peer-focus:ring-ring peer-focus:ring-offset-2',\r\n 'peer-checked:bg-primary peer-checked:after:translate-x-full',\r\n 'after:content-[\"\"] after:absolute after:top-[2px] after:left-[2px] after:bg-background after:rounded-full after:h-4 after:w-4 after:transition-all',\r\n 'disabled:opacity-50 disabled:cursor-not-allowed'\r\n )} />\r\n </label>\r\n );\r\n }\r\n);\r\n\r\nSwitch.displayName = 'Switch';\r\n\r\nexport default Switch;\r\n"],"names":["Switch","React.forwardRef","className","checked","onCheckedChange","onChange","disabled","props","ref","handleChange","e","cn","jsx"],"mappings":"sDAkBO,MAAMA,EAASC,EAAAA,WACpB,CAAC,CAAE,UAAAC,EAAW,QAAAC,EAAS,gBAAAC,EAAiB,SAAAC,EAAU,SAAAC,EAAW,GAAO,GAAGC,CAAA,EAASC,IAAQ,CACtF,MAAMC,EAAgBC,GAA2C,CAC/DL,GAAA,MAAAA,EAAWK,GACXN,GAAA,MAAAA,EAAkBM,EAAE,OAAO,QAC7B,EAEA,cACG,QAAA,CAAM,UAAWC,EAAG,mDAAoDT,CAAS,EAChF,SAAA,CAAAU,EAAAA,IAAC,QAAA,CACC,KAAK,WACL,IAAAJ,EACA,QAAAL,EACA,SAAUM,EACV,SAAAH,EACA,UAAU,eACT,GAAGC,CAAA,CAAA,EAENK,MAAC,OAAI,UAAWD,EACd,6HACA,8DACA,qJACA,iDAAA,CACF,CAAG,CAAA,EACL,CAEJ,CACF,EAEAX,EAAO,YAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{j as e,e as i,c as o}from"./index-
|
|
2
|
-
//# sourceMappingURL=TabsNavigation-
|
|
1
|
+
import{j as e,e as i,c as o}from"./index-rLgoBCfV.js";function l({value:a,onValueChange:d,tabs:n,className:s}){return e.jsx("div",{className:o("flex gap-2 border-b border-border",s),children:n.map(r=>e.jsxs(i,{variant:"ghost",disabled:r.disabled,className:o("border-b-2 rounded-none h-11 px-4 gap-2",a===r.value?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"),onClick:()=>d(r.value),children:[r.icon,r.label,r.badge]},r.value))})}export{l as T};
|
|
2
|
+
//# sourceMappingURL=TabsNavigation-DZAAspqR.js.map
|
package/ccw/frontend/dist/assets/{TabsNavigation-BGsKy7DO.js.map → TabsNavigation-DZAAspqR.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabsNavigation-
|
|
1
|
+
{"version":3,"file":"TabsNavigation-DZAAspqR.js","sources":["../../src/components/ui/TabsNavigation.tsx"],"sourcesContent":["// ========================================\n// TabsNavigation Component\n// ========================================\n// Reusable tab navigation with underline style\n\nimport { Button } from '@/components/ui/Button';\nimport { cn } from '@/lib/utils';\n\nexport interface TabItem {\n value: string;\n label: string;\n icon?: React.ReactNode;\n badge?: React.ReactNode;\n disabled?: boolean;\n}\n\ninterface TabsNavigationProps {\n value: string;\n onValueChange: (value: string) => void;\n tabs: TabItem[];\n className?: string;\n}\n\nexport function TabsNavigation({ value, onValueChange, tabs, className }: TabsNavigationProps) {\n return (\n <div className={cn(\"flex gap-2 border-b border-border\", className)}>\n {tabs.map((tab) => (\n <Button\n key={tab.value}\n variant=\"ghost\"\n disabled={tab.disabled}\n className={cn(\n \"border-b-2 rounded-none h-11 px-4 gap-2\",\n value === tab.value\n ? \"border-primary text-primary\"\n : \"border-transparent text-muted-foreground hover:text-foreground\"\n )}\n onClick={() => onValueChange(tab.value)}\n >\n {tab.icon}\n {tab.label}\n {tab.badge}\n </Button>\n ))}\n </div>\n );\n}\n"],"names":["TabsNavigation","value","onValueChange","tabs","className","jsx","cn","tab","jsxs","Button"],"mappings":"sDAuBO,SAASA,EAAe,CAAE,MAAAC,EAAO,cAAAC,EAAe,KAAAC,EAAM,UAAAC,GAAkC,CAC7F,OACEC,EAAAA,IAAC,MAAA,CAAI,UAAWC,EAAG,oCAAqCF,CAAS,EAC9D,SAAAD,EAAK,IAAKI,GACTC,EAAAA,KAACC,EAAA,CAEC,QAAQ,QACR,SAAUF,EAAI,SACd,UAAWD,EACT,0CACAL,IAAUM,EAAI,MACV,8BACA,gEAAA,EAEN,QAAS,IAAML,EAAcK,EAAI,KAAK,EAErC,SAAA,CAAAA,EAAI,KACJA,EAAI,MACJA,EAAI,KAAA,CAAA,EAbAA,EAAI,KAAA,CAeZ,EACH,CAEJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{j as e,c as w,B as k,r as T,ap as ue,u as D,C as q,a as Q,b as re,aU as fe,ae as ge,a1 as ie,ai as oe,aj as le,a2 as ce,a3 as de,a4 as A,aR as he,a5 as E,aw as be,cU as je,m as ye,M as ee,ad as B,N as me,cV as Ne,cW as ve,K as ne,e as we,X as ke}from"./index-Dff4bg3u.js";import{C as _e,a as De,b as Ce}from"./Collapsible-Wrs87QT7.js";import{F as _}from"./file-text-DRkrjie9.js";import{L as Se}from"./link-5yXdZBch.js";import{T as xe}from"./test-tube-wciJaoas.js";import{e as $e,f as Te,i as Ae,B as Ee,C as Fe,M as Ie,H as U,P as G}from"./index-B76AGix5.js";/* empty css */import{F as J}from"./folder-BaWZWn_r.js";function F({value:s,type:t="auto",className:r}){if(s==null)return e.jsx("span",{className:"text-muted-foreground italic",children:"-"});switch(t==="auto"?Oe(s):t){case"array":return e.jsx(Pe,{value:s,className:r});case"object":return e.jsx(Le,{value:s,className:r});case"files":return e.jsx(Ve,{value:s,className:r});case"tags":return e.jsx(We,{value:s,className:r});default:return e.jsx(Me,{value:String(s),className:r})}}function Oe(s){return Array.isArray(s)?s.length>0&&typeof s[0]=="object"&&s[0]!==null&&"path"in s[0]?"files":s.length>0&&typeof s[0]=="string"?"tags":"array":typeof s=="object"&&s!==null?"object":"string"}function Me({value:s,className:t}){return e.jsx("span",{className:w("text-foreground",t),children:s})}function Pe({value:s,className:t}){return Array.isArray(s)?s.length===0?e.jsx("span",{className:"text-muted-foreground italic",children:"Empty"}):e.jsx("ul",{className:w("space-y-1",t),children:s.map((r,n)=>e.jsxs("li",{className:"text-sm text-foreground flex items-start gap-2",children:[e.jsxs("span",{className:"text-muted-foreground",children:[n+1,"."]}),e.jsx("span",{className:"flex-1",children:String(r)})]},n))}):e.jsx(F,{value:s,type:"auto",className:t})}function Le({value:s,className:t}){const r=Object.entries(s).filter(([n,i])=>i!=null);return r.length===0?e.jsx("span",{className:"text-muted-foreground italic",children:"Empty"}):e.jsx("div",{className:w("space-y-2",t),children:r.map(([n,i])=>e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsxs("span",{className:"text-sm font-medium text-muted-foreground min-w-[100px] capitalize",children:[Be(n),":"]}),e.jsx("span",{className:"text-sm text-foreground flex-1",children:typeof i=="object"?JSON.stringify(i,null,2):String(i)})]},n))})}function Ve({value:s,className:t}){return Array.isArray(s)?s.length===0?e.jsx("span",{className:"text-muted-foreground italic",children:"No files"}):e.jsx("div",{className:w("space-y-1",t),children:s.map((r,n)=>e.jsxs("div",{className:"flex items-center gap-2 p-2 bg-muted rounded text-sm font-mono text-foreground",children:[e.jsx(_,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"}),e.jsx("span",{className:"truncate",children:r.path})]},n))}):e.jsx(F,{value:s,type:"auto",className:t})}function We({value:s,className:t}){return Array.isArray(s)?s.length===0?e.jsx("span",{className:"text-muted-foreground italic",children:"No tags"}):e.jsx("div",{className:w("flex flex-wrap gap-2",t),children:s.map((r,n)=>e.jsx(k,{variant:"outline",className:"px-2 py-0.5",children:r},n))}):e.jsx(F,{value:s,type:"auto",className:t})}function Be(s){return s.replace(/_/g," ").replace(/([A-Z])/g," $1").trim().toLowerCase().replace(/^\w/,t=>t.toUpperCase())}function Re({title:s,icon:t,defaultOpen:r=!1,children:n,className:i}){const[x,l]=T.useState(r);return e.jsxs(_e,{open:x,onOpenChange:l,className:w("border rounded-lg",i),children:[e.jsxs(De,{className:"flex items-center justify-between w-full p-3 hover:bg-muted/50 transition-colors",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[t,e.jsx("span",{className:"text-sm font-medium text-foreground",children:s})]}),e.jsx(ue,{className:w("h-4 w-4 text-muted-foreground transition-transform",x&&"transform rotate-180")})]}),e.jsx(Ce,{className:"p-3 pt-0",children:e.jsx("div",{className:"mt-2 space-y-2",children:n})})]})}function ms({data:s}){const{formatMessage:t}=D();if(!s||!s.data||Object.keys(s.data).length===0)return null;const r=Object.entries(s.data);return e.jsx(q,{children:e.jsxs(Q,{className:"p-6",children:[e.jsxs("h3",{className:"text-sm font-medium text-foreground mb-4 flex items-center gap-2",children:[e.jsx(re,{className:"w-4 h-4"}),t({id:"sessionDetail.context.explorations.title"}),e.jsxs(k,{variant:"secondary",children:[s.manifest.exploration_count," ",t({id:"sessionDetail.context.explorations.angles"})]})]}),e.jsx("div",{className:"space-y-3",children:r.map(([n,i])=>e.jsx(Re,{title:Je(n),icon:e.jsx(re,{className:"w-4 h-4 text-muted-foreground"}),children:e.jsx(Ke,{data:i})},n))})]})})}function ze(s){if(typeof s=="string")return s;if(s&&typeof s=="object"){const t=s;if(typeof t.path=="string")return t.path;if(typeof t.name=="string")return t.name;if(typeof t.file=="string")return t.file;if(typeof t.title=="string")return t.title;for(const r of Object.values(t))if(typeof r=="string"&&r.length>0)return r}return String(s)}function Ue(s){if(!s||typeof s!="object")return;const t=s;if(typeof t.rationale=="string")return t.rationale;if(typeof t.reason=="string")return t.reason;if(typeof t.description=="string")return t.description}function Ge(s){return Array.isArray(s)?s.map(t=>({text:ze(t),reason:Ue(t)})):typeof s=="string"&&s.length>0?[{text:s}]:[]}const He={project_structure:{icon:"text-blue-500",border:"border-l-blue-500",bg:"bg-blue-500/5",badge:"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-300"},relevant_files:{icon:"text-violet-500",border:"border-l-violet-500",bg:"bg-violet-500/5",badge:"bg-violet-100 text-violet-700 dark:bg-violet-900/30 dark:text-violet-300"},patterns:{icon:"text-amber-500",border:"border-l-amber-500",bg:"bg-amber-500/5",badge:"bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-300"},dependencies:{icon:"text-emerald-500",border:"border-l-emerald-500",bg:"bg-emerald-500/5",badge:"bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-300"},integration_points:{icon:"text-cyan-500",border:"border-l-cyan-500",bg:"bg-cyan-500/5",badge:"bg-cyan-100 text-cyan-700 dark:bg-cyan-900/30 dark:text-cyan-300"},testing:{icon:"text-rose-500",border:"border-l-rose-500",bg:"bg-rose-500/5",badge:"bg-rose-100 text-rose-700 dark:bg-rose-900/30 dark:text-rose-300"}},Ze={icon:"text-muted-foreground",border:"border-l-border",bg:"bg-muted/30",badge:"bg-muted text-foreground"};function Ke({data:s}){const{formatMessage:t}=D(),n=[{key:"project_structure",field:s.project_structure,icon:e.jsx(fe,{className:"w-3.5 h-3.5"}),labelId:"sessionDetail.context.explorations.projectStructure",renderAs:"text"},{key:"relevant_files",field:s.relevant_files,icon:e.jsx(_,{className:"w-3.5 h-3.5"}),labelId:"sessionDetail.context.explorations.relevantFiles",renderAs:"paths"},{key:"patterns",field:s.patterns,icon:e.jsx(ge,{className:"w-3.5 h-3.5"}),labelId:"sessionDetail.context.explorations.patterns",renderAs:"text"},{key:"dependencies",field:s.dependencies,icon:e.jsx(ie,{className:"w-3.5 h-3.5"}),labelId:"sessionDetail.context.explorations.dependencies",renderAs:"text"},{key:"integration_points",field:s.integration_points,icon:e.jsx(Se,{className:"w-3.5 h-3.5"}),labelId:"sessionDetail.context.explorations.integrationPoints",renderAs:"text"},{key:"testing",field:s.testing,icon:e.jsx(xe,{className:"w-3.5 h-3.5"}),labelId:"sessionDetail.context.explorations.testing",renderAs:"text"}].map(i=>({...i,items:Ge(i.field)})).filter(i=>i.items.length>0);return n.length===0?e.jsx("p",{className:"text-xs text-muted-foreground italic",children:"No data available"}):e.jsx("div",{className:"space-y-3",children:n.map(i=>{const x=He[i.key]||Ze;return e.jsxs("div",{className:`border-l-2 ${x.border} ${x.bg} rounded-r pl-3 py-2 pr-2`,children:[e.jsxs("h4",{className:`text-xs font-medium uppercase tracking-wide mb-1.5 flex items-center gap-1.5 ${x.icon}`,children:[i.icon,t({id:i.labelId}),e.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded-full font-normal normal-case tracking-normal ${x.badge}`,children:i.items.length})]}),i.renderAs==="paths"?e.jsx("div",{className:"flex flex-wrap gap-1.5",children:i.items.map((l,m)=>e.jsxs("div",{className:"flex items-center gap-1 px-2 py-1 bg-background rounded border text-[11px] font-mono text-foreground",title:l.reason,children:[e.jsx(_,{className:`w-3 h-3 flex-shrink-0 ${x.icon}`}),l.text]},m))}):e.jsx("ul",{className:"space-y-1",children:i.items.map((l,m)=>e.jsxs("li",{className:"flex items-start gap-1.5 text-xs text-foreground",children:[e.jsx("span",{className:`mt-0.5 ${x.icon}`,children:"•"}),e.jsx("span",{className:"flex-1",children:e.jsx(Xe,{text:l.text})})]},m))})]},i.key)})})}function Xe({text:s}){const t=s.split(/(`[^`]+`)/g);if(t.length===1){const r=s.split(/(\S+\/\S+\.\w+)/g);return r.length===1?e.jsx(e.Fragment,{children:s}):e.jsx(e.Fragment,{children:r.map((n,i)=>/\S+\/\S+\.\w+/.test(n)?e.jsx("code",{className:"px-1 py-0.5 bg-muted rounded text-[10px] font-mono",children:n},i):e.jsx("span",{children:n},i))})}return e.jsx(e.Fragment,{children:t.map((r,n)=>r.startsWith("`")&&r.endsWith("`")?e.jsx("code",{className:"px-1 py-0.5 bg-muted rounded text-[10px] font-mono",children:r.slice(1,-1)},n):e.jsx("span",{children:r},n))})}function Je(s){return s.replace(/_/g," ").replace(/([A-Z])/g," $1").trim().toLowerCase().replace(/^\w/,t=>t.toUpperCase())}function xs({data:s}){var l,m,g,b,y,c;const{formatMessage:t}=D();if(!s||!((l=s.documentation)!=null&&l.length)&&!((m=s.source_code)!=null&&m.length)&&!((g=s.tests)!=null&&g.length))return null;const r=((b=s.documentation)==null?void 0:b.length)||0,n=((y=s.source_code)==null?void 0:y.length)||0,i=((c=s.tests)==null?void 0:c.length)||0,x=r+n+i;return e.jsxs(q,{children:[e.jsx(oe,{children:e.jsxs(le,{className:"flex items-center gap-2",children:[e.jsx(_,{className:"w-5 h-5"}),t({id:"sessionDetail.context.assets.title"}),e.jsx(k,{variant:"secondary",children:x})]})}),e.jsx(Q,{children:e.jsxs(ce,{defaultValue:r>0?"documentation":n>0?"source_code":"tests",children:[e.jsxs(de,{className:"grid w-full grid-cols-3",children:[e.jsxs(A,{value:"documentation",disabled:!r,children:[e.jsx(_,{className:"w-4 h-4 mr-1"}),t({id:"sessionDetail.context.categories.documentation"}),r>0&&e.jsxs("span",{className:"ml-1 text-xs",children:["(",r,")"]})]}),e.jsxs(A,{value:"source_code",disabled:!n,children:[e.jsx(he,{className:"w-4 h-4 mr-1"}),t({id:"sessionDetail.context.categories.sourceCode"}),n>0&&e.jsxs("span",{className:"ml-1 text-xs",children:["(",n,")"]})]}),e.jsxs(A,{value:"tests",disabled:!i,children:[e.jsx(xe,{className:"w-4 h-4 mr-1"}),t({id:"sessionDetail.context.categories.tests"}),i>0&&e.jsxs("span",{className:"ml-1 text-xs",children:["(",i,")"]})]})]}),e.jsx(E,{value:"documentation",className:"mt-4",children:e.jsx(Y,{items:s.documentation||[],type:"documentation"})}),e.jsx(E,{value:"source_code",className:"mt-4",children:e.jsx(Y,{items:s.source_code||[],type:"source_code"})}),e.jsx(E,{value:"tests",className:"mt-4",children:e.jsx(Y,{items:s.tests||[],type:"tests"})})]})})]})}function Y({items:s}){const{formatMessage:t}=D();return s.length===0?e.jsx("div",{className:"text-center py-8 text-muted-foreground",children:t({id:"sessionDetail.context.assets.noData"})}):e.jsx("div",{className:"grid gap-3",children:s.map((r,n)=>e.jsxs("div",{className:"p-3 border rounded-lg hover:bg-muted/50 transition-colors",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("p",{className:"text-sm font-mono text-foreground truncate",children:r.path})}),r.relevance_score!==void 0&&e.jsxs(k,{variant:r.relevance_score>.7?"success":r.relevance_score>.4?"default":"secondary",className:"flex-shrink-0",children:[Math.round(r.relevance_score*100),"%"]})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 text-xs",children:[r.scope&&e.jsxs("span",{className:"text-muted-foreground",children:[t({id:"sessionDetail.context.assets.scope"}),": ",r.scope]}),r.contains&&r.contains.length>0&&e.jsxs("span",{className:"text-muted-foreground",children:[t({id:"sessionDetail.context.assets.contains"}),": ",r.contains.join(", ")]})]})]},n))})}function ps({data:s}){const{formatMessage:t}=D();if(!s||!s.risk_level)return null;const r=qe(s.risk_level);return e.jsxs(q,{className:r.borderClass,children:[e.jsx(oe,{children:e.jsxs(le,{className:"flex items-center gap-2",children:[e.jsx(be,{className:`w-5 h-5 ${r.iconColor}`}),t({id:"sessionDetail.context.conflictDetection.title"}),e.jsx(k,{variant:r.badgeVariant,className:r.badgeClass,children:t({id:`sessionDetail.context.conflictDetection.riskLevel.${s.risk_level}`})})]})}),e.jsxs(Q,{className:"space-y-4",children:[s.mitigation_strategy&&e.jsx("div",{className:"p-3 bg-muted/50 rounded-lg",children:e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(je,{className:"w-4 h-4 text-muted-foreground mt-0.5 flex-shrink-0"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h4",{className:"text-sm font-medium text-foreground mb-1",children:t({id:"sessionDetail.context.conflictDetection.mitigation"})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s.mitigation_strategy})]})]})}),s.risk_factors&&e.jsx(Ye,{factors:s.risk_factors}),s.affected_modules&&s.affected_modules.length>0&&e.jsxs("div",{children:[e.jsx("h4",{className:"text-sm font-semibold text-muted-foreground uppercase tracking-wide mb-2",children:t({id:"sessionDetail.context.conflictDetection.affectedModules"})}),e.jsx(F,{value:s.affected_modules,type:"tags"})]})]})]})}function Ye({factors:s}){const{formatMessage:t}=D(),r=s.test_gaps&&s.test_gaps.length>0,n=s.existing_implementations&&s.existing_implementations.length>0;return!r&&!n?null:e.jsxs("div",{children:[e.jsxs("h4",{className:"text-sm font-semibold text-muted-foreground uppercase tracking-wide mb-2 flex items-center gap-2",children:[e.jsx(ye,{className:"w-4 h-4"}),t({id:"sessionDetail.context.conflictDetection.riskFactors"})]}),e.jsxs("div",{className:"space-y-2",children:[r&&e.jsxs("div",{className:"p-2 border-l-2 border-warning bg-warning/5 rounded-r",children:[e.jsx("p",{className:"text-xs font-medium text-foreground mb-1",children:t({id:"sessionDetail.context.conflictDetection.testGaps"})}),e.jsx(F,{value:s.test_gaps,type:"array"})]}),n&&e.jsxs("div",{className:"p-2 border-l-2 border-info bg-info/5 rounded-r",children:[e.jsx("p",{className:"text-xs font-medium text-foreground mb-1",children:t({id:"sessionDetail.context.conflictDetection.existingImplementations"})}),e.jsx(F,{value:s.existing_implementations,type:"array"})]})]})]})}function qe(s){switch(s){case"critical":return{borderClass:"border-destructive",iconColor:"text-destructive",badgeVariant:"destructive",badgeClass:"bg-destructive text-destructive-foreground"};case"high":return{borderClass:"border-warning",iconColor:"text-warning",badgeVariant:"warning",badgeClass:""};case"medium":return{borderClass:"border-info",iconColor:"text-info",badgeVariant:"info",badgeClass:""};default:return{borderClass:"",iconColor:"text-success",badgeVariant:"success",badgeClass:""}}}const Qe=({status:s,className:t="h-4 w-4"})=>{switch(s){case"completed":return e.jsx(ee,{className:`${t} text-green-500`});case"in_progress":return e.jsx(me,{className:`${t} text-amber-500 animate-spin`});case"blocked":return e.jsx(B,{className:`${t} text-red-500`});case"skipped":return e.jsx(B,{className:`${t} text-gray-400`});default:return e.jsx(B,{className:`${t} text-gray-300`})}},es=({data:s})=>{const t=s.type==="pre-analysis",r=s.type==="section",n=s.showStepStatus!==!1,i=n&&s.status==="completed",x=n&&s.status==="in_progress";if(r)return e.jsxs("div",{className:"px-4 py-2 bg-muted rounded border-2 border-border relative",children:[e.jsx(U,{type:"target",position:G.Top,className:"!bg-transparent !border-0 !w-0 !h-0"}),e.jsx("span",{className:"text-sm font-semibold text-foreground",children:s.label}),e.jsx(U,{type:"source",position:G.Bottom,className:"!bg-transparent !border-0 !w-0 !h-0"})]});let l=t?"#f59e0b":"#3b82f6",m=t?"bg-amber-50 border-amber-500 dark:bg-amber-950/30":"bg-blue-50 border-blue-500 dark:bg-blue-950/30",g=t?"bg-amber-500 text-white":"bg-blue-500 text-white";return i?(l="#22c55e",m="bg-green-50 border-green-500 dark:bg-green-950/30",g="bg-green-500 text-white"):x&&(l="#f59e0b",m="bg-amber-50 border-amber-500 dark:bg-amber-950/30",g="bg-amber-500 text-white"),e.jsxs("div",{className:`px-4 py-3 rounded-lg border-2 shadow-sm min-w-[280px] max-w-[400px] relative ${m}`,children:[e.jsx(U,{type:"target",position:G.Top,className:"!w-3 !h-3 !-top-1.5",style:{background:l,border:`2px solid ${l}`}}),e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx("span",{className:`flex-shrink-0 w-6 h-6 rounded-full flex items-center justify-center text-xs font-bold ${g}`,children:i&&n?e.jsx(ee,{className:"h-4 w-4"}):s.step}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:`text-sm font-semibold ${i?"text-green-700 dark:text-green-400":"text-foreground"}`,children:s.label}),n&&s.status&&s.status!=="pending"&&e.jsx(Qe,{status:s.status,className:"h-3.5 w-3.5"})]}),s.description&&e.jsx("div",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:s.description}),s.output&&e.jsxs("div",{className:"text-xs text-green-600 dark:text-green-400 mt-1",children:["->"," ",s.output]})]})]}),e.jsx(U,{type:"source",position:G.Bottom,className:"!w-3 !h-3 !-bottom-1.5",style:{background:l,border:`2px solid ${l}`}})]})},ss={custom:es};function ts({flowControl:s,className:t="",showStepStatus:r=!0}){const n=s.pre_analysis||[],i=s.implementation_approach||[],x=[],l=[];let m=0;const g=100,b=80,y=60;if(n.length>0&&(x.push({id:"pre-section",type:"custom",position:{x:0,y:m},data:{label:"Pre-Analysis Steps",type:"section"}}),m+=y,n.forEach((p,o)=>{const u=`pre-${o}`;x.push({id:u,type:"custom",position:{x:0,y:m},data:{label:p.step||p.action||`Pre-step ${o+1}`,description:p.action,step:`P${o+1}`,output:p.output_to,type:"pre-analysis",showStepStatus:r}}),o===0?l.push({id:`pre-section-${o}`,source:"pre-section",target:u,type:"smoothstep",animated:!1,style:{stroke:"#f59e0b",strokeWidth:2},markerEnd:{type:"arrowclosed",color:"#f59e0b"}}):l.push({id:`pre-${o-1}-${o}`,source:`pre-${o-1}`,target:u,type:"smoothstep",animated:!1,style:{stroke:"#f59e0b",strokeWidth:2},markerEnd:{type:"arrowclosed",color:"#f59e0b"}}),m+=g+b}),m+=y),i.length>0){const p="impl-section";x.push({id:p,type:"custom",position:{x:0,y:m},data:{label:"Implementation Steps",type:"section"}}),n.length>0&&l.push({id:"pre-impl-conn",source:`pre-${n.length-1}`,target:p,type:"smoothstep",animated:!0,style:{stroke:"#3b82f6",strokeWidth:2},markerEnd:{type:"arrowclosed",color:"#3b82f6"}}),m+=y,i.forEach((o,u)=>{var L,V;const v=`impl-${u}`,j=typeof o=="string",C=j?u+1:o.step||u+1,S=typeof C=="string"?((L=C.match(/\d+/))==null?void 0:L[0])||u+1:C;let h,P;if(j)h=o;else{if(h=o.title||o.action||o.phase||o.description||"",!h){const a=Object.keys(o).filter(d=>d!=="step"&&d!=="depends_on"&&d!=="modification_points"&&d!=="logic_flow");for(const d of a){const f=o[d];if(typeof f=="string"&&f.trim()){h=f;break}}}h||(h=`Step ${S}`),P=o.description&&o.description!==h?o.description:void 0}const Z=j||(V=o.depends_on)==null?void 0:V.map(a=>`impl-${Number(a)-1}`),z=j?void 0:o.status;x.push({id:v,type:"custom",position:{x:0,y:m},data:{label:h,description:P,step:S,type:"implementation",dependsOn:Z,status:z,showStepStatus:r}}),u===0?l.push({id:`impl-section-${u}`,source:p,target:v,type:"smoothstep",animated:!1,style:{stroke:"#3b82f6",strokeWidth:2},markerEnd:{type:"arrowclosed",color:"#3b82f6"}}):l.push({id:`impl-${u-1}-${u}`,source:`impl-${u-1}`,target:v,type:"smoothstep",animated:!1,style:{stroke:"#3b82f6",strokeWidth:2},markerEnd:{type:"arrowclosed",color:"#3b82f6"}}),!j&&o.depends_on&&o.depends_on.length>0&&o.depends_on.forEach(a=>{const d=`impl-${Number(a)-1}`;l.push({id:`dep-${a}-${u}`,source:d,target:v,type:"smoothstep",animated:!1,style:{strokeDasharray:"5,5",stroke:"#f59e0b",strokeWidth:2},markerEnd:{type:"arrowclosed",color:"#f59e0b"}})}),m+=g+b})}const[c,,I]=$e(x),[O,M,R]=Te(l),H=T.useCallback(p=>{M(o=>[...o,{...p,id:`edge-${Date.now()}`,type:"smoothstep"}])},[M]);return n.length===0&&i.length===0?e.jsx("div",{className:`flex items-center justify-center p-8 text-center ${t}`,children:e.jsx("div",{children:e.jsx("p",{className:"text-sm text-muted-foreground",children:"No flowchart data available"})})}):e.jsx("div",{className:t,style:{height:`${m+100}px`},children:e.jsxs(Ae,{nodes:c,edges:O,onNodesChange:I,onEdgesChange:R,onConnect:H,nodeTypes:ss,fitView:!0,fitViewOptions:{padding:.2},minZoom:.3,maxZoom:1.5,defaultViewport:{x:0,y:0,zoom:.8},nodesDraggable:!1,nodesConnectable:!1,elementsSelectable:!0,selectNodesOnDrag:!1,zoomOnScroll:!0,panOnScroll:!0,children:[e.jsx(Ee,{color:"var(--color-border, #e0e0e0)",style:{backgroundColor:"var(--color-background, white)"}}),e.jsx(Fe,{className:"bg-card border border-border rounded shadow-sm"}),e.jsx(Ie,{nodeColor:p=>{const o=p.data;if(o.type==="section")return"#9ca3af";if(o.showStepStatus!==!1){if(o.status==="completed")return"#22c55e";if(o.status==="in_progress")return"#f59e0b";if(o.status==="blocked")return"#ef4444"}return o.type==="pre-analysis"?"#f59e0b":"#3b82f6"},className:"!bg-card !border-border !rounded !shadow-sm"})]})})}const ae={pending:{label:"sessionDetail.taskDrawer.status.pending",variant:"secondary",icon:B},in_progress:{label:"sessionDetail.taskDrawer.status.inProgress",variant:"warning",icon:me},completed:{label:"sessionDetail.taskDrawer.status.completed",variant:"success",icon:ee},blocked:{label:"sessionDetail.taskDrawer.status.blocked",variant:"destructive",icon:ne},skipped:{label:"sessionDetail.taskDrawer.status.skipped",variant:"default",icon:B},failed:{label:"sessionDetail.taskDrawer.status.failed",variant:"destructive",icon:ne}};function us({task:s,isOpen:t,onClose:r}){var z,L,V;const{formatMessage:n}=D(),[i,x]=T.useState("overview");T.useEffect(()=>{s&&x("overview")},[s]),T.useEffect(()=>{const a=d=>{d.key==="Escape"&&t&&r()};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[t,r]);const l=T.useMemo(()=>s?Ne(s):null,[s]);if(!s||!t||!l)return null;const m=l.task_id||"N/A",g=l.title||"Untitled Task",b=l.description,y=l.status,c=ve(l),I=((z=l.convergence)==null?void 0:z.criteria)||[],O=l.focus_paths||[],M=l.depends_on||[],R=l.pre_analysis||(c==null?void 0:c.pre_analysis)||[],H=l.implementation||(c==null?void 0:c.implementation_approach)||[],p=l._raw,o=(p==null?void 0:p._raw)||p,u=o==null?void 0:o.file,v=l.files||(c==null?void 0:c.target_files)||(u?[{path:u}]:[]),j=l.scope,C=o?o.status!==void 0||o.status_history!==void 0:!1,S=ae[y]||ae.pending,h=S.icon,P=H.length>0,Z=v.length>0;return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:`fixed inset-0 bg-black/40 transition-opacity z-40 ${t?"opacity-100":"opacity-0 pointer-events-none"}`,onClick:r,"aria-hidden":"true"}),e.jsxs("div",{className:`fixed top-0 right-0 h-full w-1/2 bg-background border-l border-border shadow-2xl z-50 flex flex-col transition-transform duration-300 ease-in-out ${t?"translate-x-0":"translate-x-full"}`,role:"dialog","aria-modal":"true","aria-labelledby":"drawer-title",style:{minWidth:"400px",maxWidth:"800px"},children:[e.jsxs("div",{className:"flex items-start justify-between p-6 border-b border-border bg-card",children:[e.jsxs("div",{className:"flex-1 min-w-0 mr-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-mono font-semibold bg-primary/10 text-primary border border-primary/20",children:m}),C&&e.jsxs(k,{variant:S.variant,className:"gap-1",children:[e.jsx(h,{className:"h-3 w-3"}),n({id:S.label})]})]}),e.jsx("h2",{id:"drawer-title",className:"text-lg font-semibold text-foreground",children:g})]}),e.jsxs(we,{variant:"ghost",size:"icon",onClick:r,className:"flex-shrink-0 hover:bg-secondary",children:[e.jsx(ke,{className:"h-5 w-5"}),e.jsx("span",{className:"sr-only",children:n({id:"common.actions.close"})})]})]}),e.jsx("div",{className:"px-6 pt-4 bg-card",children:e.jsxs(ce,{value:i,onValueChange:a=>x(a),className:"w-full",children:[e.jsxs(de,{className:"w-full",children:[e.jsxs(A,{value:"overview",className:"flex-1",children:[e.jsx(_,{className:"h-4 w-4 mr-2"}),n({id:"sessionDetail.taskDrawer.tabs.overview"})]}),P&&e.jsxs(A,{value:"flowchart",className:"flex-1",children:[e.jsx(ie,{className:"h-4 w-4 mr-2"}),n({id:"sessionDetail.taskDrawer.tabs.flowchart"})]}),e.jsxs(A,{value:"files",className:"flex-1",children:[e.jsx(J,{className:"h-4 w-4 mr-2"}),n({id:"sessionDetail.taskDrawer.tabs.files"})]})]}),e.jsxs("div",{className:"overflow-y-auto pr-2",style:{height:"calc(100vh - 200px)"},children:[e.jsx(E,{value:"overview",className:"mt-4 pb-6 focus-visible:outline-none",children:e.jsxs("div",{className:"space-y-4",children:[b&&e.jsxs("div",{className:"p-4 bg-card rounded-lg border border-border",children:[e.jsxs("h3",{className:"text-sm font-semibold text-foreground mb-2 flex items-center gap-2",children:[e.jsx("span",{children:"📝"}),n({id:"sessionDetail.taskDrawer.overview.description"})]}),e.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-wrap",children:b})]}),j&&e.jsxs("div",{className:"p-4 bg-card rounded-lg border border-border",children:[e.jsxs("h3",{className:"text-sm font-semibold text-foreground mb-2 flex items-center gap-2",children:[e.jsx("span",{children:"📁"}),"Scope"]}),e.jsx("div",{className:"pl-3 border-l-2 border-primary",children:e.jsx("code",{className:"text-sm text-foreground",children:j})})]}),I.length>0&&e.jsxs("div",{className:"p-4 bg-card rounded-lg border border-border",children:[e.jsxs("h3",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[e.jsx("span",{children:"✅"}),n({id:"liteTasks.acceptanceCriteria"})]}),e.jsx("div",{className:"space-y-2",children:I.map((a,d)=>e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-muted-foreground mt-0.5",children:"○"}),e.jsx("span",{className:"text-sm text-foreground",children:a})]},d))})]}),O.length>0&&e.jsxs("div",{className:"p-4 bg-card rounded-lg border border-border",children:[e.jsxs("h3",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[e.jsx("span",{children:"📚"}),n({id:"liteTasks.focusPaths"})]}),e.jsx("div",{className:"space-y-1",children:O.map((a,d)=>e.jsx("code",{className:"block text-xs bg-muted px-3 py-1.5 rounded text-foreground font-mono",children:a},d))})]}),M.length>0&&e.jsxs("div",{className:"p-4 bg-card rounded-lg border border-border",children:[e.jsxs("h3",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[e.jsx("span",{children:"🔗"}),n({id:"liteTasks.dependsOn"})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:M.map((a,d)=>e.jsx(k,{variant:"secondary",children:a},d))})]}),R.length>0&&e.jsxs("div",{className:"p-4 bg-card rounded-lg border border-border",children:[e.jsxs("h3",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[e.jsx("span",{children:"🔍"}),n({id:"sessionDetail.taskDrawer.overview.preAnalysis"})]}),e.jsx("div",{className:"space-y-3",children:R.map((a,d)=>e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"flex-shrink-0 flex items-center justify-center w-6 h-6 rounded-full bg-primary text-primary-foreground text-xs font-medium",children:d+1}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:a.step||a.action}),a.action&&a.action!==a.step&&e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:a.action}),a.commands&&a.commands.length>0&&e.jsx("div",{className:"mt-2 flex flex-wrap gap-1",children:a.commands.map((f,W)=>e.jsx("code",{className:"text-xs bg-muted px-2 py-0.5 rounded",children:f},W))})]})]},d))})]}),(c==null?void 0:c.implementation_approach)&&c.implementation_approach.length>0&&e.jsxs("div",{className:"p-4 bg-card rounded-lg border border-border",children:[e.jsxs("h3",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[e.jsx("span",{children:"📋"}),n({id:"sessionDetail.taskDrawer.overview.implementationSteps"})]}),e.jsx("ol",{className:"space-y-3",children:c.implementation_approach.map((a,d)=>{var te;const f=typeof a=="string",W=f?d+1:a.step||d+1,se=typeof W=="string"?((te=W.match(/\d+/))==null?void 0:te[0])||d+1:W;let N,K;if(f)N=a;else{if(N=a.title||a.action||a.phase||"",!N){const pe=Object.keys(a).filter($=>$!=="step"&&$!=="depends_on"&&$!=="modification_points"&&$!=="logic_flow");for(const $ of pe){const X=a[$];if(typeof X=="string"&&X.trim()){N=X;break}}}N||(N=`Step ${se}`),K=a.description&&a.description!==N?a.description:void 0}return e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"flex-shrink-0 flex items-center justify-center w-6 h-6 rounded-full bg-primary text-primary-foreground text-xs font-medium",children:se}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:N}),K&&e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:K})]})]},d)})})]}),!b&&!j&&!I.length&&!O.length&&!((L=c==null?void 0:c.pre_analysis)!=null&&L.length)&&!((V=c==null?void 0:c.implementation_approach)!=null&&V.length)&&e.jsxs("div",{className:"text-center py-12",children:[e.jsx(_,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:n({id:"sessionDetail.taskDrawer.overview.empty"})})]})]})}),P&&e.jsx(E,{value:"flowchart",className:"mt-4 pb-6",children:e.jsx(ts,{flowControl:c,className:"min-h-[400px]",showStepStatus:C})}),e.jsx(E,{value:"files",className:"mt-4 pb-6",children:Z?e.jsx("div",{className:"space-y-3",children:v.map((a,d)=>{let f;return typeof a=="string"?f=a:a&&typeof a=="object"?f=a.path||a.name||"Unknown":f="Unknown",e.jsxs("div",{className:"flex items-center gap-2 p-3 bg-card rounded-md border border-border shadow-sm hover:shadow-md transition-shadow",children:[e.jsx(J,{className:"h-4 w-4 text-primary flex-shrink-0"}),e.jsx("span",{className:"text-sm font-mono text-foreground",children:f})]},d)})}):e.jsxs("div",{className:"text-center py-12",children:[e.jsx(J,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:n({id:"sessionDetail.taskDrawer.files.empty"})})]})})]})]})})]})]})}export{xs as A,ps as C,ms as E,F,us as T};
|
|
2
|
-
//# sourceMappingURL=TaskDrawer-
|
|
1
|
+
import{j as e,c as w,B as k,r as T,ap as ue,u as D,C as q,a as Q,b as re,aU as fe,ae as ge,a1 as ie,ai as oe,aj as le,a2 as ce,a3 as de,a4 as A,aR as he,a5 as E,aw as be,cU as je,m as ye,M as ee,ad as B,N as me,cV as Ne,cW as ve,K as ne,e as we,X as ke}from"./index-rLgoBCfV.js";import{C as _e,a as De,b as Ce}from"./Collapsible-DEm1rJ4h.js";import{F as _}from"./file-text-DwuwPDPi.js";import{L as Se}from"./link-koEYiemK.js";import{T as xe}from"./test-tube-BHm7w3ON.js";import{e as $e,f as Te,i as Ae,B as Ee,C as Fe,M as Ie,H as U,P as G}from"./index-Bs80iCX0.js";/* empty css */import{F as J}from"./folder-CL6vb42J.js";function F({value:s,type:t="auto",className:r}){if(s==null)return e.jsx("span",{className:"text-muted-foreground italic",children:"-"});switch(t==="auto"?Oe(s):t){case"array":return e.jsx(Pe,{value:s,className:r});case"object":return e.jsx(Le,{value:s,className:r});case"files":return e.jsx(Ve,{value:s,className:r});case"tags":return e.jsx(We,{value:s,className:r});default:return e.jsx(Me,{value:String(s),className:r})}}function Oe(s){return Array.isArray(s)?s.length>0&&typeof s[0]=="object"&&s[0]!==null&&"path"in s[0]?"files":s.length>0&&typeof s[0]=="string"?"tags":"array":typeof s=="object"&&s!==null?"object":"string"}function Me({value:s,className:t}){return e.jsx("span",{className:w("text-foreground",t),children:s})}function Pe({value:s,className:t}){return Array.isArray(s)?s.length===0?e.jsx("span",{className:"text-muted-foreground italic",children:"Empty"}):e.jsx("ul",{className:w("space-y-1",t),children:s.map((r,n)=>e.jsxs("li",{className:"text-sm text-foreground flex items-start gap-2",children:[e.jsxs("span",{className:"text-muted-foreground",children:[n+1,"."]}),e.jsx("span",{className:"flex-1",children:String(r)})]},n))}):e.jsx(F,{value:s,type:"auto",className:t})}function Le({value:s,className:t}){const r=Object.entries(s).filter(([n,i])=>i!=null);return r.length===0?e.jsx("span",{className:"text-muted-foreground italic",children:"Empty"}):e.jsx("div",{className:w("space-y-2",t),children:r.map(([n,i])=>e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsxs("span",{className:"text-sm font-medium text-muted-foreground min-w-[100px] capitalize",children:[Be(n),":"]}),e.jsx("span",{className:"text-sm text-foreground flex-1",children:typeof i=="object"?JSON.stringify(i,null,2):String(i)})]},n))})}function Ve({value:s,className:t}){return Array.isArray(s)?s.length===0?e.jsx("span",{className:"text-muted-foreground italic",children:"No files"}):e.jsx("div",{className:w("space-y-1",t),children:s.map((r,n)=>e.jsxs("div",{className:"flex items-center gap-2 p-2 bg-muted rounded text-sm font-mono text-foreground",children:[e.jsx(_,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"}),e.jsx("span",{className:"truncate",children:r.path})]},n))}):e.jsx(F,{value:s,type:"auto",className:t})}function We({value:s,className:t}){return Array.isArray(s)?s.length===0?e.jsx("span",{className:"text-muted-foreground italic",children:"No tags"}):e.jsx("div",{className:w("flex flex-wrap gap-2",t),children:s.map((r,n)=>e.jsx(k,{variant:"outline",className:"px-2 py-0.5",children:r},n))}):e.jsx(F,{value:s,type:"auto",className:t})}function Be(s){return s.replace(/_/g," ").replace(/([A-Z])/g," $1").trim().toLowerCase().replace(/^\w/,t=>t.toUpperCase())}function Re({title:s,icon:t,defaultOpen:r=!1,children:n,className:i}){const[x,l]=T.useState(r);return e.jsxs(_e,{open:x,onOpenChange:l,className:w("border rounded-lg",i),children:[e.jsxs(De,{className:"flex items-center justify-between w-full p-3 hover:bg-muted/50 transition-colors",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[t,e.jsx("span",{className:"text-sm font-medium text-foreground",children:s})]}),e.jsx(ue,{className:w("h-4 w-4 text-muted-foreground transition-transform",x&&"transform rotate-180")})]}),e.jsx(Ce,{className:"p-3 pt-0",children:e.jsx("div",{className:"mt-2 space-y-2",children:n})})]})}function ms({data:s}){const{formatMessage:t}=D();if(!s||!s.data||Object.keys(s.data).length===0)return null;const r=Object.entries(s.data);return e.jsx(q,{children:e.jsxs(Q,{className:"p-6",children:[e.jsxs("h3",{className:"text-sm font-medium text-foreground mb-4 flex items-center gap-2",children:[e.jsx(re,{className:"w-4 h-4"}),t({id:"sessionDetail.context.explorations.title"}),e.jsxs(k,{variant:"secondary",children:[s.manifest.exploration_count," ",t({id:"sessionDetail.context.explorations.angles"})]})]}),e.jsx("div",{className:"space-y-3",children:r.map(([n,i])=>e.jsx(Re,{title:Je(n),icon:e.jsx(re,{className:"w-4 h-4 text-muted-foreground"}),children:e.jsx(Ke,{data:i})},n))})]})})}function ze(s){if(typeof s=="string")return s;if(s&&typeof s=="object"){const t=s;if(typeof t.path=="string")return t.path;if(typeof t.name=="string")return t.name;if(typeof t.file=="string")return t.file;if(typeof t.title=="string")return t.title;for(const r of Object.values(t))if(typeof r=="string"&&r.length>0)return r}return String(s)}function Ue(s){if(!s||typeof s!="object")return;const t=s;if(typeof t.rationale=="string")return t.rationale;if(typeof t.reason=="string")return t.reason;if(typeof t.description=="string")return t.description}function Ge(s){return Array.isArray(s)?s.map(t=>({text:ze(t),reason:Ue(t)})):typeof s=="string"&&s.length>0?[{text:s}]:[]}const He={project_structure:{icon:"text-blue-500",border:"border-l-blue-500",bg:"bg-blue-500/5",badge:"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-300"},relevant_files:{icon:"text-violet-500",border:"border-l-violet-500",bg:"bg-violet-500/5",badge:"bg-violet-100 text-violet-700 dark:bg-violet-900/30 dark:text-violet-300"},patterns:{icon:"text-amber-500",border:"border-l-amber-500",bg:"bg-amber-500/5",badge:"bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-300"},dependencies:{icon:"text-emerald-500",border:"border-l-emerald-500",bg:"bg-emerald-500/5",badge:"bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-300"},integration_points:{icon:"text-cyan-500",border:"border-l-cyan-500",bg:"bg-cyan-500/5",badge:"bg-cyan-100 text-cyan-700 dark:bg-cyan-900/30 dark:text-cyan-300"},testing:{icon:"text-rose-500",border:"border-l-rose-500",bg:"bg-rose-500/5",badge:"bg-rose-100 text-rose-700 dark:bg-rose-900/30 dark:text-rose-300"}},Ze={icon:"text-muted-foreground",border:"border-l-border",bg:"bg-muted/30",badge:"bg-muted text-foreground"};function Ke({data:s}){const{formatMessage:t}=D(),n=[{key:"project_structure",field:s.project_structure,icon:e.jsx(fe,{className:"w-3.5 h-3.5"}),labelId:"sessionDetail.context.explorations.projectStructure",renderAs:"text"},{key:"relevant_files",field:s.relevant_files,icon:e.jsx(_,{className:"w-3.5 h-3.5"}),labelId:"sessionDetail.context.explorations.relevantFiles",renderAs:"paths"},{key:"patterns",field:s.patterns,icon:e.jsx(ge,{className:"w-3.5 h-3.5"}),labelId:"sessionDetail.context.explorations.patterns",renderAs:"text"},{key:"dependencies",field:s.dependencies,icon:e.jsx(ie,{className:"w-3.5 h-3.5"}),labelId:"sessionDetail.context.explorations.dependencies",renderAs:"text"},{key:"integration_points",field:s.integration_points,icon:e.jsx(Se,{className:"w-3.5 h-3.5"}),labelId:"sessionDetail.context.explorations.integrationPoints",renderAs:"text"},{key:"testing",field:s.testing,icon:e.jsx(xe,{className:"w-3.5 h-3.5"}),labelId:"sessionDetail.context.explorations.testing",renderAs:"text"}].map(i=>({...i,items:Ge(i.field)})).filter(i=>i.items.length>0);return n.length===0?e.jsx("p",{className:"text-xs text-muted-foreground italic",children:"No data available"}):e.jsx("div",{className:"space-y-3",children:n.map(i=>{const x=He[i.key]||Ze;return e.jsxs("div",{className:`border-l-2 ${x.border} ${x.bg} rounded-r pl-3 py-2 pr-2`,children:[e.jsxs("h4",{className:`text-xs font-medium uppercase tracking-wide mb-1.5 flex items-center gap-1.5 ${x.icon}`,children:[i.icon,t({id:i.labelId}),e.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded-full font-normal normal-case tracking-normal ${x.badge}`,children:i.items.length})]}),i.renderAs==="paths"?e.jsx("div",{className:"flex flex-wrap gap-1.5",children:i.items.map((l,m)=>e.jsxs("div",{className:"flex items-center gap-1 px-2 py-1 bg-background rounded border text-[11px] font-mono text-foreground",title:l.reason,children:[e.jsx(_,{className:`w-3 h-3 flex-shrink-0 ${x.icon}`}),l.text]},m))}):e.jsx("ul",{className:"space-y-1",children:i.items.map((l,m)=>e.jsxs("li",{className:"flex items-start gap-1.5 text-xs text-foreground",children:[e.jsx("span",{className:`mt-0.5 ${x.icon}`,children:"•"}),e.jsx("span",{className:"flex-1",children:e.jsx(Xe,{text:l.text})})]},m))})]},i.key)})})}function Xe({text:s}){const t=s.split(/(`[^`]+`)/g);if(t.length===1){const r=s.split(/(\S+\/\S+\.\w+)/g);return r.length===1?e.jsx(e.Fragment,{children:s}):e.jsx(e.Fragment,{children:r.map((n,i)=>/\S+\/\S+\.\w+/.test(n)?e.jsx("code",{className:"px-1 py-0.5 bg-muted rounded text-[10px] font-mono",children:n},i):e.jsx("span",{children:n},i))})}return e.jsx(e.Fragment,{children:t.map((r,n)=>r.startsWith("`")&&r.endsWith("`")?e.jsx("code",{className:"px-1 py-0.5 bg-muted rounded text-[10px] font-mono",children:r.slice(1,-1)},n):e.jsx("span",{children:r},n))})}function Je(s){return s.replace(/_/g," ").replace(/([A-Z])/g," $1").trim().toLowerCase().replace(/^\w/,t=>t.toUpperCase())}function xs({data:s}){var l,m,g,b,y,c;const{formatMessage:t}=D();if(!s||!((l=s.documentation)!=null&&l.length)&&!((m=s.source_code)!=null&&m.length)&&!((g=s.tests)!=null&&g.length))return null;const r=((b=s.documentation)==null?void 0:b.length)||0,n=((y=s.source_code)==null?void 0:y.length)||0,i=((c=s.tests)==null?void 0:c.length)||0,x=r+n+i;return e.jsxs(q,{children:[e.jsx(oe,{children:e.jsxs(le,{className:"flex items-center gap-2",children:[e.jsx(_,{className:"w-5 h-5"}),t({id:"sessionDetail.context.assets.title"}),e.jsx(k,{variant:"secondary",children:x})]})}),e.jsx(Q,{children:e.jsxs(ce,{defaultValue:r>0?"documentation":n>0?"source_code":"tests",children:[e.jsxs(de,{className:"grid w-full grid-cols-3",children:[e.jsxs(A,{value:"documentation",disabled:!r,children:[e.jsx(_,{className:"w-4 h-4 mr-1"}),t({id:"sessionDetail.context.categories.documentation"}),r>0&&e.jsxs("span",{className:"ml-1 text-xs",children:["(",r,")"]})]}),e.jsxs(A,{value:"source_code",disabled:!n,children:[e.jsx(he,{className:"w-4 h-4 mr-1"}),t({id:"sessionDetail.context.categories.sourceCode"}),n>0&&e.jsxs("span",{className:"ml-1 text-xs",children:["(",n,")"]})]}),e.jsxs(A,{value:"tests",disabled:!i,children:[e.jsx(xe,{className:"w-4 h-4 mr-1"}),t({id:"sessionDetail.context.categories.tests"}),i>0&&e.jsxs("span",{className:"ml-1 text-xs",children:["(",i,")"]})]})]}),e.jsx(E,{value:"documentation",className:"mt-4",children:e.jsx(Y,{items:s.documentation||[],type:"documentation"})}),e.jsx(E,{value:"source_code",className:"mt-4",children:e.jsx(Y,{items:s.source_code||[],type:"source_code"})}),e.jsx(E,{value:"tests",className:"mt-4",children:e.jsx(Y,{items:s.tests||[],type:"tests"})})]})})]})}function Y({items:s}){const{formatMessage:t}=D();return s.length===0?e.jsx("div",{className:"text-center py-8 text-muted-foreground",children:t({id:"sessionDetail.context.assets.noData"})}):e.jsx("div",{className:"grid gap-3",children:s.map((r,n)=>e.jsxs("div",{className:"p-3 border rounded-lg hover:bg-muted/50 transition-colors",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("p",{className:"text-sm font-mono text-foreground truncate",children:r.path})}),r.relevance_score!==void 0&&e.jsxs(k,{variant:r.relevance_score>.7?"success":r.relevance_score>.4?"default":"secondary",className:"flex-shrink-0",children:[Math.round(r.relevance_score*100),"%"]})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 text-xs",children:[r.scope&&e.jsxs("span",{className:"text-muted-foreground",children:[t({id:"sessionDetail.context.assets.scope"}),": ",r.scope]}),r.contains&&r.contains.length>0&&e.jsxs("span",{className:"text-muted-foreground",children:[t({id:"sessionDetail.context.assets.contains"}),": ",r.contains.join(", ")]})]})]},n))})}function ps({data:s}){const{formatMessage:t}=D();if(!s||!s.risk_level)return null;const r=qe(s.risk_level);return e.jsxs(q,{className:r.borderClass,children:[e.jsx(oe,{children:e.jsxs(le,{className:"flex items-center gap-2",children:[e.jsx(be,{className:`w-5 h-5 ${r.iconColor}`}),t({id:"sessionDetail.context.conflictDetection.title"}),e.jsx(k,{variant:r.badgeVariant,className:r.badgeClass,children:t({id:`sessionDetail.context.conflictDetection.riskLevel.${s.risk_level}`})})]})}),e.jsxs(Q,{className:"space-y-4",children:[s.mitigation_strategy&&e.jsx("div",{className:"p-3 bg-muted/50 rounded-lg",children:e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(je,{className:"w-4 h-4 text-muted-foreground mt-0.5 flex-shrink-0"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h4",{className:"text-sm font-medium text-foreground mb-1",children:t({id:"sessionDetail.context.conflictDetection.mitigation"})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s.mitigation_strategy})]})]})}),s.risk_factors&&e.jsx(Ye,{factors:s.risk_factors}),s.affected_modules&&s.affected_modules.length>0&&e.jsxs("div",{children:[e.jsx("h4",{className:"text-sm font-semibold text-muted-foreground uppercase tracking-wide mb-2",children:t({id:"sessionDetail.context.conflictDetection.affectedModules"})}),e.jsx(F,{value:s.affected_modules,type:"tags"})]})]})]})}function Ye({factors:s}){const{formatMessage:t}=D(),r=s.test_gaps&&s.test_gaps.length>0,n=s.existing_implementations&&s.existing_implementations.length>0;return!r&&!n?null:e.jsxs("div",{children:[e.jsxs("h4",{className:"text-sm font-semibold text-muted-foreground uppercase tracking-wide mb-2 flex items-center gap-2",children:[e.jsx(ye,{className:"w-4 h-4"}),t({id:"sessionDetail.context.conflictDetection.riskFactors"})]}),e.jsxs("div",{className:"space-y-2",children:[r&&e.jsxs("div",{className:"p-2 border-l-2 border-warning bg-warning/5 rounded-r",children:[e.jsx("p",{className:"text-xs font-medium text-foreground mb-1",children:t({id:"sessionDetail.context.conflictDetection.testGaps"})}),e.jsx(F,{value:s.test_gaps,type:"array"})]}),n&&e.jsxs("div",{className:"p-2 border-l-2 border-info bg-info/5 rounded-r",children:[e.jsx("p",{className:"text-xs font-medium text-foreground mb-1",children:t({id:"sessionDetail.context.conflictDetection.existingImplementations"})}),e.jsx(F,{value:s.existing_implementations,type:"array"})]})]})]})}function qe(s){switch(s){case"critical":return{borderClass:"border-destructive",iconColor:"text-destructive",badgeVariant:"destructive",badgeClass:"bg-destructive text-destructive-foreground"};case"high":return{borderClass:"border-warning",iconColor:"text-warning",badgeVariant:"warning",badgeClass:""};case"medium":return{borderClass:"border-info",iconColor:"text-info",badgeVariant:"info",badgeClass:""};default:return{borderClass:"",iconColor:"text-success",badgeVariant:"success",badgeClass:""}}}const Qe=({status:s,className:t="h-4 w-4"})=>{switch(s){case"completed":return e.jsx(ee,{className:`${t} text-green-500`});case"in_progress":return e.jsx(me,{className:`${t} text-amber-500 animate-spin`});case"blocked":return e.jsx(B,{className:`${t} text-red-500`});case"skipped":return e.jsx(B,{className:`${t} text-gray-400`});default:return e.jsx(B,{className:`${t} text-gray-300`})}},es=({data:s})=>{const t=s.type==="pre-analysis",r=s.type==="section",n=s.showStepStatus!==!1,i=n&&s.status==="completed",x=n&&s.status==="in_progress";if(r)return e.jsxs("div",{className:"px-4 py-2 bg-muted rounded border-2 border-border relative",children:[e.jsx(U,{type:"target",position:G.Top,className:"!bg-transparent !border-0 !w-0 !h-0"}),e.jsx("span",{className:"text-sm font-semibold text-foreground",children:s.label}),e.jsx(U,{type:"source",position:G.Bottom,className:"!bg-transparent !border-0 !w-0 !h-0"})]});let l=t?"#f59e0b":"#3b82f6",m=t?"bg-amber-50 border-amber-500 dark:bg-amber-950/30":"bg-blue-50 border-blue-500 dark:bg-blue-950/30",g=t?"bg-amber-500 text-white":"bg-blue-500 text-white";return i?(l="#22c55e",m="bg-green-50 border-green-500 dark:bg-green-950/30",g="bg-green-500 text-white"):x&&(l="#f59e0b",m="bg-amber-50 border-amber-500 dark:bg-amber-950/30",g="bg-amber-500 text-white"),e.jsxs("div",{className:`px-4 py-3 rounded-lg border-2 shadow-sm min-w-[280px] max-w-[400px] relative ${m}`,children:[e.jsx(U,{type:"target",position:G.Top,className:"!w-3 !h-3 !-top-1.5",style:{background:l,border:`2px solid ${l}`}}),e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx("span",{className:`flex-shrink-0 w-6 h-6 rounded-full flex items-center justify-center text-xs font-bold ${g}`,children:i&&n?e.jsx(ee,{className:"h-4 w-4"}):s.step}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:`text-sm font-semibold ${i?"text-green-700 dark:text-green-400":"text-foreground"}`,children:s.label}),n&&s.status&&s.status!=="pending"&&e.jsx(Qe,{status:s.status,className:"h-3.5 w-3.5"})]}),s.description&&e.jsx("div",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:s.description}),s.output&&e.jsxs("div",{className:"text-xs text-green-600 dark:text-green-400 mt-1",children:["->"," ",s.output]})]})]}),e.jsx(U,{type:"source",position:G.Bottom,className:"!w-3 !h-3 !-bottom-1.5",style:{background:l,border:`2px solid ${l}`}})]})},ss={custom:es};function ts({flowControl:s,className:t="",showStepStatus:r=!0}){const n=s.pre_analysis||[],i=s.implementation_approach||[],x=[],l=[];let m=0;const g=100,b=80,y=60;if(n.length>0&&(x.push({id:"pre-section",type:"custom",position:{x:0,y:m},data:{label:"Pre-Analysis Steps",type:"section"}}),m+=y,n.forEach((p,o)=>{const u=`pre-${o}`;x.push({id:u,type:"custom",position:{x:0,y:m},data:{label:p.step||p.action||`Pre-step ${o+1}`,description:p.action,step:`P${o+1}`,output:p.output_to,type:"pre-analysis",showStepStatus:r}}),o===0?l.push({id:`pre-section-${o}`,source:"pre-section",target:u,type:"smoothstep",animated:!1,style:{stroke:"#f59e0b",strokeWidth:2},markerEnd:{type:"arrowclosed",color:"#f59e0b"}}):l.push({id:`pre-${o-1}-${o}`,source:`pre-${o-1}`,target:u,type:"smoothstep",animated:!1,style:{stroke:"#f59e0b",strokeWidth:2},markerEnd:{type:"arrowclosed",color:"#f59e0b"}}),m+=g+b}),m+=y),i.length>0){const p="impl-section";x.push({id:p,type:"custom",position:{x:0,y:m},data:{label:"Implementation Steps",type:"section"}}),n.length>0&&l.push({id:"pre-impl-conn",source:`pre-${n.length-1}`,target:p,type:"smoothstep",animated:!0,style:{stroke:"#3b82f6",strokeWidth:2},markerEnd:{type:"arrowclosed",color:"#3b82f6"}}),m+=y,i.forEach((o,u)=>{var L,V;const v=`impl-${u}`,j=typeof o=="string",C=j?u+1:o.step||u+1,S=typeof C=="string"?((L=C.match(/\d+/))==null?void 0:L[0])||u+1:C;let h,P;if(j)h=o;else{if(h=o.title||o.action||o.phase||o.description||"",!h){const a=Object.keys(o).filter(d=>d!=="step"&&d!=="depends_on"&&d!=="modification_points"&&d!=="logic_flow");for(const d of a){const f=o[d];if(typeof f=="string"&&f.trim()){h=f;break}}}h||(h=`Step ${S}`),P=o.description&&o.description!==h?o.description:void 0}const Z=j||(V=o.depends_on)==null?void 0:V.map(a=>`impl-${Number(a)-1}`),z=j?void 0:o.status;x.push({id:v,type:"custom",position:{x:0,y:m},data:{label:h,description:P,step:S,type:"implementation",dependsOn:Z,status:z,showStepStatus:r}}),u===0?l.push({id:`impl-section-${u}`,source:p,target:v,type:"smoothstep",animated:!1,style:{stroke:"#3b82f6",strokeWidth:2},markerEnd:{type:"arrowclosed",color:"#3b82f6"}}):l.push({id:`impl-${u-1}-${u}`,source:`impl-${u-1}`,target:v,type:"smoothstep",animated:!1,style:{stroke:"#3b82f6",strokeWidth:2},markerEnd:{type:"arrowclosed",color:"#3b82f6"}}),!j&&o.depends_on&&o.depends_on.length>0&&o.depends_on.forEach(a=>{const d=`impl-${Number(a)-1}`;l.push({id:`dep-${a}-${u}`,source:d,target:v,type:"smoothstep",animated:!1,style:{strokeDasharray:"5,5",stroke:"#f59e0b",strokeWidth:2},markerEnd:{type:"arrowclosed",color:"#f59e0b"}})}),m+=g+b})}const[c,,I]=$e(x),[O,M,R]=Te(l),H=T.useCallback(p=>{M(o=>[...o,{...p,id:`edge-${Date.now()}`,type:"smoothstep"}])},[M]);return n.length===0&&i.length===0?e.jsx("div",{className:`flex items-center justify-center p-8 text-center ${t}`,children:e.jsx("div",{children:e.jsx("p",{className:"text-sm text-muted-foreground",children:"No flowchart data available"})})}):e.jsx("div",{className:t,style:{height:`${m+100}px`},children:e.jsxs(Ae,{nodes:c,edges:O,onNodesChange:I,onEdgesChange:R,onConnect:H,nodeTypes:ss,fitView:!0,fitViewOptions:{padding:.2},minZoom:.3,maxZoom:1.5,defaultViewport:{x:0,y:0,zoom:.8},nodesDraggable:!1,nodesConnectable:!1,elementsSelectable:!0,selectNodesOnDrag:!1,zoomOnScroll:!0,panOnScroll:!0,children:[e.jsx(Ee,{color:"var(--color-border, #e0e0e0)",style:{backgroundColor:"var(--color-background, white)"}}),e.jsx(Fe,{className:"bg-card border border-border rounded shadow-sm"}),e.jsx(Ie,{nodeColor:p=>{const o=p.data;if(o.type==="section")return"#9ca3af";if(o.showStepStatus!==!1){if(o.status==="completed")return"#22c55e";if(o.status==="in_progress")return"#f59e0b";if(o.status==="blocked")return"#ef4444"}return o.type==="pre-analysis"?"#f59e0b":"#3b82f6"},className:"!bg-card !border-border !rounded !shadow-sm"})]})})}const ae={pending:{label:"sessionDetail.taskDrawer.status.pending",variant:"secondary",icon:B},in_progress:{label:"sessionDetail.taskDrawer.status.inProgress",variant:"warning",icon:me},completed:{label:"sessionDetail.taskDrawer.status.completed",variant:"success",icon:ee},blocked:{label:"sessionDetail.taskDrawer.status.blocked",variant:"destructive",icon:ne},skipped:{label:"sessionDetail.taskDrawer.status.skipped",variant:"default",icon:B},failed:{label:"sessionDetail.taskDrawer.status.failed",variant:"destructive",icon:ne}};function us({task:s,isOpen:t,onClose:r}){var z,L,V;const{formatMessage:n}=D(),[i,x]=T.useState("overview");T.useEffect(()=>{s&&x("overview")},[s]),T.useEffect(()=>{const a=d=>{d.key==="Escape"&&t&&r()};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[t,r]);const l=T.useMemo(()=>s?Ne(s):null,[s]);if(!s||!t||!l)return null;const m=l.task_id||"N/A",g=l.title||"Untitled Task",b=l.description,y=l.status,c=ve(l),I=((z=l.convergence)==null?void 0:z.criteria)||[],O=l.focus_paths||[],M=l.depends_on||[],R=l.pre_analysis||(c==null?void 0:c.pre_analysis)||[],H=l.implementation||(c==null?void 0:c.implementation_approach)||[],p=l._raw,o=(p==null?void 0:p._raw)||p,u=o==null?void 0:o.file,v=l.files||(c==null?void 0:c.target_files)||(u?[{path:u}]:[]),j=l.scope,C=o?o.status!==void 0||o.status_history!==void 0:!1,S=ae[y]||ae.pending,h=S.icon,P=H.length>0,Z=v.length>0;return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:`fixed inset-0 bg-black/40 transition-opacity z-40 ${t?"opacity-100":"opacity-0 pointer-events-none"}`,onClick:r,"aria-hidden":"true"}),e.jsxs("div",{className:`fixed top-0 right-0 h-full w-1/2 bg-background border-l border-border shadow-2xl z-50 flex flex-col transition-transform duration-300 ease-in-out ${t?"translate-x-0":"translate-x-full"}`,role:"dialog","aria-modal":"true","aria-labelledby":"drawer-title",style:{minWidth:"400px",maxWidth:"800px"},children:[e.jsxs("div",{className:"flex items-start justify-between p-6 border-b border-border bg-card",children:[e.jsxs("div",{className:"flex-1 min-w-0 mr-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-mono font-semibold bg-primary/10 text-primary border border-primary/20",children:m}),C&&e.jsxs(k,{variant:S.variant,className:"gap-1",children:[e.jsx(h,{className:"h-3 w-3"}),n({id:S.label})]})]}),e.jsx("h2",{id:"drawer-title",className:"text-lg font-semibold text-foreground",children:g})]}),e.jsxs(we,{variant:"ghost",size:"icon",onClick:r,className:"flex-shrink-0 hover:bg-secondary",children:[e.jsx(ke,{className:"h-5 w-5"}),e.jsx("span",{className:"sr-only",children:n({id:"common.actions.close"})})]})]}),e.jsx("div",{className:"px-6 pt-4 bg-card",children:e.jsxs(ce,{value:i,onValueChange:a=>x(a),className:"w-full",children:[e.jsxs(de,{className:"w-full",children:[e.jsxs(A,{value:"overview",className:"flex-1",children:[e.jsx(_,{className:"h-4 w-4 mr-2"}),n({id:"sessionDetail.taskDrawer.tabs.overview"})]}),P&&e.jsxs(A,{value:"flowchart",className:"flex-1",children:[e.jsx(ie,{className:"h-4 w-4 mr-2"}),n({id:"sessionDetail.taskDrawer.tabs.flowchart"})]}),e.jsxs(A,{value:"files",className:"flex-1",children:[e.jsx(J,{className:"h-4 w-4 mr-2"}),n({id:"sessionDetail.taskDrawer.tabs.files"})]})]}),e.jsxs("div",{className:"overflow-y-auto pr-2",style:{height:"calc(100vh - 200px)"},children:[e.jsx(E,{value:"overview",className:"mt-4 pb-6 focus-visible:outline-none",children:e.jsxs("div",{className:"space-y-4",children:[b&&e.jsxs("div",{className:"p-4 bg-card rounded-lg border border-border",children:[e.jsxs("h3",{className:"text-sm font-semibold text-foreground mb-2 flex items-center gap-2",children:[e.jsx("span",{children:"📝"}),n({id:"sessionDetail.taskDrawer.overview.description"})]}),e.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-wrap",children:b})]}),j&&e.jsxs("div",{className:"p-4 bg-card rounded-lg border border-border",children:[e.jsxs("h3",{className:"text-sm font-semibold text-foreground mb-2 flex items-center gap-2",children:[e.jsx("span",{children:"📁"}),"Scope"]}),e.jsx("div",{className:"pl-3 border-l-2 border-primary",children:e.jsx("code",{className:"text-sm text-foreground",children:j})})]}),I.length>0&&e.jsxs("div",{className:"p-4 bg-card rounded-lg border border-border",children:[e.jsxs("h3",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[e.jsx("span",{children:"✅"}),n({id:"liteTasks.acceptanceCriteria"})]}),e.jsx("div",{className:"space-y-2",children:I.map((a,d)=>e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"text-muted-foreground mt-0.5",children:"○"}),e.jsx("span",{className:"text-sm text-foreground",children:a})]},d))})]}),O.length>0&&e.jsxs("div",{className:"p-4 bg-card rounded-lg border border-border",children:[e.jsxs("h3",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[e.jsx("span",{children:"📚"}),n({id:"liteTasks.focusPaths"})]}),e.jsx("div",{className:"space-y-1",children:O.map((a,d)=>e.jsx("code",{className:"block text-xs bg-muted px-3 py-1.5 rounded text-foreground font-mono",children:a},d))})]}),M.length>0&&e.jsxs("div",{className:"p-4 bg-card rounded-lg border border-border",children:[e.jsxs("h3",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[e.jsx("span",{children:"🔗"}),n({id:"liteTasks.dependsOn"})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:M.map((a,d)=>e.jsx(k,{variant:"secondary",children:a},d))})]}),R.length>0&&e.jsxs("div",{className:"p-4 bg-card rounded-lg border border-border",children:[e.jsxs("h3",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[e.jsx("span",{children:"🔍"}),n({id:"sessionDetail.taskDrawer.overview.preAnalysis"})]}),e.jsx("div",{className:"space-y-3",children:R.map((a,d)=>e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"flex-shrink-0 flex items-center justify-center w-6 h-6 rounded-full bg-primary text-primary-foreground text-xs font-medium",children:d+1}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:a.step||a.action}),a.action&&a.action!==a.step&&e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:a.action}),a.commands&&a.commands.length>0&&e.jsx("div",{className:"mt-2 flex flex-wrap gap-1",children:a.commands.map((f,W)=>e.jsx("code",{className:"text-xs bg-muted px-2 py-0.5 rounded",children:f},W))})]})]},d))})]}),(c==null?void 0:c.implementation_approach)&&c.implementation_approach.length>0&&e.jsxs("div",{className:"p-4 bg-card rounded-lg border border-border",children:[e.jsxs("h3",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[e.jsx("span",{children:"📋"}),n({id:"sessionDetail.taskDrawer.overview.implementationSteps"})]}),e.jsx("ol",{className:"space-y-3",children:c.implementation_approach.map((a,d)=>{var te;const f=typeof a=="string",W=f?d+1:a.step||d+1,se=typeof W=="string"?((te=W.match(/\d+/))==null?void 0:te[0])||d+1:W;let N,K;if(f)N=a;else{if(N=a.title||a.action||a.phase||"",!N){const pe=Object.keys(a).filter($=>$!=="step"&&$!=="depends_on"&&$!=="modification_points"&&$!=="logic_flow");for(const $ of pe){const X=a[$];if(typeof X=="string"&&X.trim()){N=X;break}}}N||(N=`Step ${se}`),K=a.description&&a.description!==N?a.description:void 0}return e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"flex-shrink-0 flex items-center justify-center w-6 h-6 rounded-full bg-primary text-primary-foreground text-xs font-medium",children:se}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:N}),K&&e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:K})]})]},d)})})]}),!b&&!j&&!I.length&&!O.length&&!((L=c==null?void 0:c.pre_analysis)!=null&&L.length)&&!((V=c==null?void 0:c.implementation_approach)!=null&&V.length)&&e.jsxs("div",{className:"text-center py-12",children:[e.jsx(_,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:n({id:"sessionDetail.taskDrawer.overview.empty"})})]})]})}),P&&e.jsx(E,{value:"flowchart",className:"mt-4 pb-6",children:e.jsx(ts,{flowControl:c,className:"min-h-[400px]",showStepStatus:C})}),e.jsx(E,{value:"files",className:"mt-4 pb-6",children:Z?e.jsx("div",{className:"space-y-3",children:v.map((a,d)=>{let f;return typeof a=="string"?f=a:a&&typeof a=="object"?f=a.path||a.name||"Unknown":f="Unknown",e.jsxs("div",{className:"flex items-center gap-2 p-3 bg-card rounded-md border border-border shadow-sm hover:shadow-md transition-shadow",children:[e.jsx(J,{className:"h-4 w-4 text-primary flex-shrink-0"}),e.jsx("span",{className:"text-sm font-mono text-foreground",children:f})]},d)})}):e.jsxs("div",{className:"text-center py-12",children:[e.jsx(J,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:n({id:"sessionDetail.taskDrawer.files.empty"})})]})})]})]})})]})]})}export{xs as A,ps as C,ms as E,F,us as T};
|
|
2
|
+
//# sourceMappingURL=TaskDrawer-BJkwfhIZ.js.map
|