@mrpatronz/nexusflow 0.1.1 → 0.1.2
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/.github/dependabot.yml +25 -0
- package/.github/workflows/release.yml +28 -0
- package/dist/gui/assets/{index-WSrLVVHX.js → index-s4nRkpqY.js} +1 -1
- package/dist/gui/index.html +1 -1
- package/gui/src/App.tsx +2 -2
- package/gui/src/features/onboarding/OnboardingWizard.tsx +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
# 1. Root npm dependencies
|
|
4
|
+
- package-ecosystem: "npm"
|
|
5
|
+
directory: "/"
|
|
6
|
+
schedule:
|
|
7
|
+
interval: "daily"
|
|
8
|
+
time: "03:00"
|
|
9
|
+
open-pull-requests-limit: 10
|
|
10
|
+
|
|
11
|
+
# 2. GUI npm dependencies
|
|
12
|
+
- package-ecosystem: "npm"
|
|
13
|
+
directory: "/gui"
|
|
14
|
+
schedule:
|
|
15
|
+
interval: "daily"
|
|
16
|
+
time: "03:00"
|
|
17
|
+
open-pull-requests-limit: 10
|
|
18
|
+
|
|
19
|
+
# 3. VS Code Extension npm dependencies
|
|
20
|
+
- package-ecosystem: "npm"
|
|
21
|
+
directory: "/extension"
|
|
22
|
+
schedule:
|
|
23
|
+
interval: "daily"
|
|
24
|
+
time: "03:00"
|
|
25
|
+
open-pull-requests-limit: 10
|
|
@@ -4,6 +4,9 @@ on:
|
|
|
4
4
|
push:
|
|
5
5
|
branches: [main]
|
|
6
6
|
|
|
7
|
+
permissions:
|
|
8
|
+
contents: write
|
|
9
|
+
|
|
7
10
|
jobs:
|
|
8
11
|
build-and-test:
|
|
9
12
|
runs-on: ubuntu-latest
|
|
@@ -56,7 +59,32 @@ jobs:
|
|
|
56
59
|
- name: Build Project
|
|
57
60
|
run: npm run build
|
|
58
61
|
|
|
62
|
+
- name: Check version and NPM
|
|
63
|
+
id: check-version
|
|
64
|
+
run: |
|
|
65
|
+
CURRENT_VERSION=$(node -e "console.log(JSON.parse(require('fs').readFileSync('./package.json', 'utf8')).version)")
|
|
66
|
+
echo "version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
|
|
67
|
+
if npm info @mrpatronz/nexusflow@$CURRENT_VERSION --json >/dev/null 2>&1; then
|
|
68
|
+
echo "is_new=false" >> $GITHUB_OUTPUT
|
|
69
|
+
echo "Version $CURRENT_VERSION is already published on NPM. Skipping publish."
|
|
70
|
+
else
|
|
71
|
+
echo "is_new=true" >> $GITHUB_OUTPUT
|
|
72
|
+
echo "Version $CURRENT_VERSION is new."
|
|
73
|
+
fi
|
|
74
|
+
env:
|
|
75
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
76
|
+
|
|
59
77
|
- name: Publish to NPM
|
|
78
|
+
if: steps.check-version.outputs.is_new == 'true'
|
|
60
79
|
run: npm publish --access public
|
|
61
80
|
env:
|
|
62
81
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
82
|
+
|
|
83
|
+
- name: Create GitHub Release
|
|
84
|
+
if: steps.check-version.outputs.is_new == 'true'
|
|
85
|
+
uses: softprops/action-gh-release@v2
|
|
86
|
+
with:
|
|
87
|
+
tag_name: v${{ steps.check-version.outputs.version }}
|
|
88
|
+
name: Release v${{ steps.check-version.outputs.version }}
|
|
89
|
+
generate_release_notes: true
|
|
90
|
+
target_commitish: ${{ github.sha }}
|
|
@@ -18,4 +18,4 @@ Core Instructions:
|
|
|
18
18
|
1. Always inspect and update "session.md" (session state handover memo) and "plan.md" (tasks checklist) at the workspace root as you progress.
|
|
19
19
|
2. Read "WORKSPACE.md" at the root for a detailed index of repository relationships, tech stacks, and listening ports.
|
|
20
20
|
3. Follow all project-specific rules in "CLAUDE.md", ".cursorrules", or "AGENTS.md" in sub-repositories.
|
|
21
|
-
`;navigator.clipboard.writeText(n),alert(`Universal AI briefing prompt copied to clipboard!`)},_n=p.filter(e=>e.name.toLowerCase().includes(_.toLowerCase()));if(!o&&n){let e=n.devDir.trim()!==``&&n.workspacesDir.trim()!==``;return(0,D.jsx)(`div`,{className:`flex min-h-screen bg-[#070913] text-gray-100 font-sans items-center justify-center p-6 bg-gradient-to-br from-[#0c0f24] via-[#070913] to-[#04050b]`,children:(0,D.jsxs)(`div`,{className:`max-w-6xl w-full bg-[#111827]/40 border border-gray-800/80 rounded-2xl p-8 backdrop-blur-md shadow-2xl grid grid-cols-1 lg:grid-cols-12 gap-10`,children:[(0,D.jsxs)(`div`,{className:`lg:col-span-7 flex flex-col justify-between`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsxs)(`div`,{className:`inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-indigo-500/10 text-indigo-400 border border-indigo-500/20 text-xs font-semibold uppercase tracking-wider mb-4`,children:[(0,D.jsx)(fe,{size:12,className:`text-cyan-400 animate-pulse`}),` Onboarding Guide`]}),(0,D.jsx)(`h1`,{className:`text-3xl font-extrabold tracking-tight text-white mb-2 bg-gradient-to-r from-white via-gray-200 to-indigo-300 bg-clip-text text-transparent`,children:`Welcome to NexusFlow`}),(0,D.jsx)(`p`,{className:`text-sm text-gray-400 mb-8 max-w-xl`,children:`NexusFlow orchestrates multi-repository developer environments. It combines isolated Git worktrees, automatic code analyzer sweeps, and background process running into a single dashboard.`}),(0,D.jsxs)(`div`,{className:`space-y-6`,children:[(0,D.jsxs)(`div`,{className:`flex gap-4`,children:[(0,D.jsx)(`div`,{className:`w-8 h-8 rounded-full bg-indigo-500/10 border border-indigo-500/20 text-indigo-400 flex items-center justify-center font-bold text-sm shrink-0`,children:`1`}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`h3`,{className:`text-sm font-semibold text-white`,children:`Configure Development Folders`}),(0,D.jsx)(`p`,{className:`text-xs text-gray-400 mt-1`,children:`Specify your local code path and target workspaces path. For the first setup, these paths start empty so you can explicitly configure them.`})]})]}),(0,D.jsxs)(`div`,{className:`flex gap-4`,children:[(0,D.jsx)(`div`,{className:`w-8 h-8 rounded-full bg-indigo-500/10 border border-indigo-500/20 text-indigo-400 flex items-center justify-center font-bold text-sm shrink-0`,children:`2`}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`h3`,{className:`text-sm font-semibold text-white`,children:`Build Isolated Branch Workspaces`}),(0,D.jsxs)(`p`,{className:`text-xs text-gray-400 mt-1`,children:[`Choose repositories and input your feature branch. NexusFlow runs `,(0,D.jsx)(`code`,{children:`git worktree`}),` to checkout dependencies under a unified folder structure, leaving your primary repository directories clean.`]})]})]}),(0,D.jsxs)(`div`,{className:`flex gap-4`,children:[(0,D.jsx)(`div`,{className:`w-8 h-8 rounded-full bg-indigo-500/10 border border-indigo-500/20 text-indigo-400 flex items-center justify-center font-bold text-sm shrink-0`,children:`3`}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`h3`,{className:`text-sm font-semibold text-white`,children:`Align AI Coding Contexts`}),(0,D.jsxs)(`p`,{className:`text-xs text-gray-400 mt-1`,children:[`NexusFlow automatically generates configuration files (`,(0,D.jsx)(`code`,{children:`CLAUDE.md`}),`, `,(0,D.jsx)(`code`,{children:`.cursorrules`}),`, `,(0,D.jsx)(`code`,{children:`AGENTS.md`}),`) that instruct the AI assistant to analyze project inter-dependencies, document its assumptions in `,(0,D.jsx)(`code`,{children:`nexusflow-overview.md`}),`, and highlight clarifying questions.`]})]})]}),(0,D.jsxs)(`div`,{className:`flex gap-4`,children:[(0,D.jsx)(`div`,{className:`w-8 h-8 rounded-full bg-indigo-500/10 border border-indigo-500/20 text-indigo-400 flex items-center justify-center font-bold text-sm shrink-0`,children:`4`}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`h3`,{className:`text-sm font-semibold text-white`,children:`Orchestrate Background Services`}),(0,D.jsx)(`p`,{className:`text-xs text-gray-400 mt-1`,children:`Run APIs, database scripts, and frontend watch tasks concurrently from the web portal. Monitor real-time logs inside a unified terminal pane.`})]})]})]})]}),(0,D.jsxs)(`div`,{className:`mt-8 pt-6 border-t border-gray-800/80`,children:[(0,D.jsx)(`h4`,{className:`text-xs font-semibold uppercase tracking-wider text-gray-500 mb-3`,children:`Industry Comparison`}),(0,D.jsx)(`div`,{className:`overflow-x-auto font-sans`,children:(0,D.jsxs)(`table`,{className:`w-full text-[10px] text-gray-400 text-left border-collapse`,children:[(0,D.jsx)(`thead`,{children:(0,D.jsxs)(`tr`,{className:`border-b border-gray-800 text-gray-500`,children:[(0,D.jsx)(`th`,{className:`py-2 pr-4 font-semibold`,children:`Orchestrator`}),(0,D.jsx)(`th`,{className:`py-2 px-4 font-semibold`,children:`Multi-Repo`}),(0,D.jsx)(`th`,{className:`py-2 px-4 font-semibold`,children:`AI Rules Integration`}),(0,D.jsx)(`th`,{className:`py-2 pl-4 font-semibold`,children:`Weight`})]})}),(0,D.jsxs)(`tbody`,{children:[(0,D.jsxs)(`tr`,{className:`border-b border-gray-800/40`,children:[(0,D.jsx)(`td`,{className:`py-2 pr-4 font-semibold text-white`,children:`Docker Compose`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`Yes (Containers only)`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`No`}),(0,D.jsx)(`td`,{className:`py-2 pl-4`,children:`Medium (VM overhead)`})]}),(0,D.jsxs)(`tr`,{className:`border-b border-gray-800/40`,children:[(0,D.jsx)(`td`,{className:`py-2 pr-4 font-semibold text-white`,children:`Lerna / Turborepo`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`Monorepo only`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`No`}),(0,D.jsx)(`td`,{className:`py-2 pl-4`,children:`Light`})]}),(0,D.jsxs)(`tr`,{className:`border-b border-gray-800/40`,children:[(0,D.jsx)(`td`,{className:`py-2 pr-4 font-semibold text-white`,children:`DevPod / Gitpod`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`Yes (Complex config)`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`No`}),(0,D.jsx)(`td`,{className:`py-2 pl-4`,children:`Heavy (Full virtual VM)`})]}),(0,D.jsxs)(`tr`,{children:[(0,D.jsx)(`td`,{className:`py-2 pr-4 font-semibold text-indigo-400`,children:`NexusFlow`}),(0,D.jsx)(`td`,{className:`py-2 px-4 text-indigo-300`,children:`Yes (Native Worktrees)`}),(0,D.jsx)(`td`,{className:`py-2 px-4 text-indigo-300`,children:`Yes (CLAUDE.md/MDC rules)`}),(0,D.jsx)(`td`,{className:`py-2 pl-4 text-indigo-300`,children:`Extremely Light (Native processes)`})]})]})]})})]})]}),(0,D.jsx)(`div`,{className:`lg:col-span-5 flex flex-col justify-center`,children:(0,D.jsxs)(`div`,{className:`bg-gray-950/40 border border-gray-800/80 rounded-2xl p-6 shadow-lg`,children:[(0,D.jsxs)(`h2`,{className:`text-xl font-bold text-white mb-1 flex items-center gap-2`,children:[(0,D.jsx)(T,{className:`text-indigo-400 animate-spin-slow`,size:20}),` Initialize Config`]}),(0,D.jsx)(`p`,{className:`text-xs text-gray-500 mb-6`,children:`Define the directories on your machine. The fields are empty so you can provide your paths.`}),(0,D.jsxs)(`div`,{className:`space-y-5`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`label`,{className:`block text-[11px] font-semibold text-gray-400 uppercase tracking-wider mb-2`,children:`Development Directory`}),(0,D.jsx)(`input`,{type:`text`,className:`w-full bg-[#111827] border border-gray-800 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 rounded-lg px-4 py-3 text-white placeholder-gray-600 transition-all outline-none text-xs shadow-inner`,placeholder:`e.g. C:\\Users\\patro\\dev`,value:n.devDir,onChange:e=>r({...n,devDir:e.target.value})}),d&&(0,D.jsx)(`div`,{className:`text-[10px] text-gray-500 mt-1.5 flex justify-between items-center`,children:(0,D.jsxs)(`span`,{children:[`Suggested: `,(0,D.jsx)(`code`,{children:d.devDir})]})})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`label`,{className:`block text-[11px] font-semibold text-gray-400 uppercase tracking-wider mb-2`,children:`Workspaces Directory`}),(0,D.jsx)(`input`,{type:`text`,className:`w-full bg-[#111827] border border-gray-800 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 rounded-lg px-4 py-3 text-white placeholder-gray-600 transition-all outline-none text-xs shadow-inner`,placeholder:`e.g. C:\\Users\\patro\\dev\\workspaces`,value:n.workspacesDir,onChange:e=>r({...n,workspacesDir:e.target.value})}),d&&(0,D.jsx)(`div`,{className:`text-[10px] text-gray-500 mt-1.5 flex justify-between items-center`,children:(0,D.jsxs)(`span`,{children:[`Suggested: `,(0,D.jsx)(`code`,{children:d.workspacesDir})]})})]}),(0,D.jsxs)(`div`,{className:`flex gap-2 pt-2`,children:[(0,D.jsx)(`button`,{type:`button`,className:`flex-1 inline-flex items-center justify-center gap-1.5 px-3 py-2 bg-gray-900 border border-gray-800 hover:bg-gray-800 hover:border-gray-700 rounded-lg text-xs font-semibold transition-all cursor-pointer`,onClick:()=>{d&&r({...n,devDir:d.devDir,workspacesDir:d.workspacesDir})},children:`Suggest Defaults`}),(0,D.jsx)(`button`,{type:`button`,className:`px-3 py-2 bg-gray-900 border border-gray-800 hover:bg-gray-800 hover:border-rose-900/60 hover:text-rose-400 rounded-lg text-xs font-semibold transition-all cursor-pointer`,onClick:()=>{r({...n,devDir:``,workspacesDir:``})},children:`Clear`})]}),(0,D.jsx)(`div`,{className:`pt-4`,children:(0,D.jsxs)(`button`,{type:`button`,className:`w-full inline-flex items-center justify-center gap-2 px-5 py-3 rounded-lg text-sm font-semibold bg-gradient-to-r from-indigo-500 to-indigo-600 hover:from-indigo-600 hover:to-indigo-700 text-white shadow-lg shadow-indigo-500/20 hover:-translate-y-0.5 active:translate-y-0 disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:translate-y-0 transition-all cursor-pointer`,disabled:!e,onClick:()=>qt(n),children:[`Save & Get Started `,(0,D.jsx)(ee,{size:16})]})})]})]})})]})})}return(0,D.jsxs)(`div`,{className:`flex min-h-screen bg-[#060813] bg-gradient-to-br from-[#0c0f24] via-[#060813] to-[#04050a] text-gray-100 font-sans`,children:[(0,D.jsxs)(`aside`,{className:`w-64 bg-[#090d1a]/85 border-r border-gray-800/80 flex flex-col p-6 shrink-0 shadow-2xl backdrop-blur-md`,children:[(0,D.jsxs)(`div`,{className:`flex items-center gap-3 mb-10 px-2`,children:[(0,D.jsx)(`div`,{className:`w-9 h-9 bg-gradient-to-tr from-cyan-400 via-indigo-500 to-purple-600 rounded-lg flex items-center justify-center font-bold text-white shadow-lg shadow-indigo-500/25 text-lg`,children:`N`}),(0,D.jsx)(`span`,{className:`text-xl font-bold tracking-tight bg-gradient-to-r from-white via-gray-200 to-gray-400 bg-clip-text text-transparent`,children:`NexusFlow`})]}),(0,D.jsx)(`nav`,{className:`flex-1`,children:(0,D.jsxs)(`ul`,{className:`flex flex-col gap-2`,children:[(0,D.jsx)(`li`,{children:(0,D.jsxs)(`button`,{className:`w-full flex items-center gap-3 p-3 rounded-lg text-sm font-semibold transition-all cursor-pointer border ${e===`guide`?`text-white bg-indigo-500/10 border-indigo-500/20 shadow-sm`:`text-gray-400 border-transparent hover:text-white hover:bg-gray-800/40`}`,onClick:()=>{t(`guide`)},children:[(0,D.jsx)(fe,{size:18,className:`text-indigo-400`}),`Getting Started`]})}),(0,D.jsx)(`li`,{children:(0,D.jsxs)(`button`,{className:`w-full flex items-center gap-3 p-3 rounded-lg text-sm font-semibold transition-all cursor-pointer border ${e===`create`?`text-white bg-indigo-500/10 border-indigo-500/20 shadow-sm`:`text-gray-400 border-transparent hover:text-white hover:bg-gray-800/40`}`,onClick:()=>{t(`create`),be(0),Pe(null),Se(``),we(``),Ee([])},children:[(0,D.jsx)(ne,{size:18,className:`text-indigo-400`}),`New Workspace`]})}),(0,D.jsx)(`li`,{children:(0,D.jsxs)(`button`,{className:`w-full flex items-center gap-3 p-3 rounded-lg text-sm font-semibold transition-all cursor-pointer border ${e===`workspaces`?`text-white bg-indigo-500/10 border-indigo-500/20 shadow-sm`:`text-gray-400 border-transparent hover:text-white hover:bg-gray-800/40`}`,onClick:()=>{t(`workspaces`),Zt()},children:[(0,D.jsx)(ae,{size:18,className:`text-indigo-400`}),`Active Workspaces`]})}),(0,D.jsx)(`li`,{children:(0,D.jsxs)(`button`,{className:`w-full flex items-center gap-3 p-3 rounded-lg text-sm font-semibold transition-all cursor-pointer border ${e===`settings`?`text-white bg-indigo-500/10 border-indigo-500/20 shadow-sm`:`text-gray-400 border-transparent hover:text-white hover:bg-gray-800/40`}`,onClick:()=>{t(`settings`),Kt()},children:[(0,D.jsx)(T,{size:18,className:`text-indigo-400`}),`Settings`]})})]})}),(0,D.jsx)(`div`,{className:`pt-6 border-t border-gray-800/60 text-[11px] text-gray-500 text-center`,children:`NexusFlow Engine v0.1.0`})]}),(0,D.jsx)(`main`,{className:`flex-1 p-10 overflow-y-auto max-w-7xl w-full mx-auto`,children:i?(0,D.jsxs)(`div`,{className:`flex flex-col items-center justify-center py-40 gap-4 text-gray-400`,children:[(0,D.jsx)(C,{className:`animate-spin text-indigo-400`,size:32}),(0,D.jsx)(`span`,{className:`text-sm font-medium`,children:`Loading config settings...`})]}):(0,D.jsxs)(D.Fragment,{children:[e===`guide`&&n&&(0,D.jsxs)(`div`,{className:`max-w-4xl mx-auto`,children:[(0,D.jsxs)(`header`,{className:`mb-10`,children:[(0,D.jsxs)(`div`,{className:`inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-indigo-500/10 text-indigo-400 border border-indigo-500/20 text-xs font-semibold uppercase tracking-wider mb-4`,children:[(0,D.jsx)(fe,{size:12,className:`text-cyan-400`}),` Getting Started Guide`]}),(0,D.jsx)(`h1`,{className:`text-3xl font-extrabold tracking-tight text-white mb-2 bg-gradient-to-r from-white via-gray-200 to-indigo-300 bg-clip-text text-transparent`,children:`Welcome to NexusFlow`}),(0,D.jsx)(`p`,{className:`text-sm text-gray-400`,children:`NexusFlow orchestrates multi-repository developer environments. It combines isolated Git worktrees, automatic code analyzer sweeps, and background process running into a single dashboard.`})]}),(0,D.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-8 mb-10`,children:[(0,D.jsxs)(`div`,{className:`bg-[#111827]/40 border border-gray-800/80 rounded-xl p-6 shadow-xl backdrop-blur-sm space-y-6`,children:[(0,D.jsx)(`h2`,{className:`text-lg font-bold text-white mb-4`,children:`NexusFlow Workflows`}),(0,D.jsxs)(`div`,{className:`flex gap-4`,children:[(0,D.jsx)(`div`,{className:`w-8 h-8 rounded-full bg-indigo-500/10 border border-indigo-500/20 text-indigo-400 flex items-center justify-center font-bold text-sm shrink-0`,children:`1`}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`h3`,{className:`text-sm font-semibold text-white`,children:`Configure Folders`}),(0,D.jsxs)(`p`,{className:`text-xs text-gray-400 mt-1`,children:[`Specify your Development folder (where repositories live) and Workspaces folder. These are currently set to:`,(0,D.jsx)(`code`,{className:`block mt-1 text-[10px] text-indigo-300 break-all`,children:n.devDir||`Not Configured`})]})]})]}),(0,D.jsxs)(`div`,{className:`flex gap-4`,children:[(0,D.jsx)(`div`,{className:`w-8 h-8 rounded-full bg-indigo-500/10 border border-indigo-500/20 text-indigo-400 flex items-center justify-center font-bold text-sm shrink-0`,children:`2`}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`h3`,{className:`text-sm font-semibold text-white`,children:`Build Workspaces`}),(0,D.jsx)(`p`,{className:`text-xs text-gray-400 mt-1`,children:`Choose repositories and feature branch. NexusFlow checks out dependencies under a unified workspace directory using Git Worktrees, keeping original projects clean.`})]})]}),(0,D.jsxs)(`div`,{className:`flex gap-4`,children:[(0,D.jsx)(`div`,{className:`w-8 h-8 rounded-full bg-indigo-500/10 border border-indigo-500/20 text-indigo-400 flex items-center justify-center font-bold text-sm shrink-0`,children:`3`}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`h3`,{className:`text-sm font-semibold text-white`,children:`Align AI Context`}),(0,D.jsxs)(`p`,{className:`text-xs text-gray-400 mt-1`,children:[`NexusFlow writes files like `,(0,D.jsx)(`code`,{children:`CLAUDE.md`}),`, `,(0,D.jsx)(`code`,{children:`.cursorrules`}),`, `,(0,D.jsx)(`code`,{children:`AGENTS.md`}),` prompting the LLM to inspect project relations and list key assumptions and questions before coding.`]})]})]})]}),(0,D.jsxs)(`div`,{className:`bg-[#111827]/40 border border-gray-800/80 rounded-xl p-6 shadow-xl backdrop-blur-sm flex flex-col justify-between`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`h2`,{className:`text-lg font-bold text-white mb-4`,children:`Current Configuration`}),(0,D.jsxs)(`div`,{className:`space-y-3 text-xs`,children:[(0,D.jsxs)(`div`,{className:`flex justify-between py-1.5 border-b border-gray-800/60`,children:[(0,D.jsx)(`span`,{className:`text-gray-500`,children:`Dev Folder:`}),(0,D.jsx)(`span`,{className:`text-gray-300 font-mono text-[10px] truncate max-w-[200px]`,children:n.devDir})]}),(0,D.jsxs)(`div`,{className:`flex justify-between py-1.5 border-b border-gray-800/60`,children:[(0,D.jsx)(`span`,{className:`text-gray-500`,children:`Workspaces Folder:`}),(0,D.jsx)(`span`,{className:`text-gray-300 font-mono text-[10px] truncate max-w-[200px]`,children:n.workspacesDir})]}),(0,D.jsxs)(`div`,{className:`flex justify-between py-1.5 border-b border-gray-800/60`,children:[(0,D.jsx)(`span`,{className:`text-gray-500`,children:`Preferred AI:`}),(0,D.jsx)(`span`,{className:`text-indigo-400 font-semibold uppercase`,children:n.defaultAssistant||`None`})]}),(0,D.jsxs)(`div`,{className:`flex justify-between py-1.5`,children:[(0,D.jsx)(`span`,{className:`text-gray-500`,children:`Scan Depth:`}),(0,D.jsxs)(`span`,{className:`text-gray-300 font-semibold`,children:[n.scanDepth,` levels`]})]})]})]}),(0,D.jsxs)(`div`,{className:`pt-6 border-t border-gray-800/60 flex flex-col gap-2`,children:[(0,D.jsxs)(`button`,{className:`w-full inline-flex items-center justify-center gap-2 px-4 py-2.5 rounded-lg text-xs font-semibold bg-gradient-to-r from-indigo-500 to-indigo-600 hover:from-indigo-600 hover:to-indigo-700 text-white shadow-md shadow-indigo-500/10 hover:-translate-y-0.5 active:translate-y-0 transition-all cursor-pointer`,onClick:()=>t(`create`),children:[(0,D.jsx)(ne,{size:14}),` Create a Workspace`]}),(0,D.jsxs)(`button`,{className:`w-full inline-flex items-center justify-center gap-2 px-4 py-2.5 rounded-lg text-xs font-semibold bg-gray-900 border border-gray-800 hover:bg-gray-800 hover:border-gray-700 text-white transition-all cursor-pointer`,onClick:()=>t(`settings`),children:[(0,D.jsx)(T,{size:14,className:`text-gray-500`}),` Modify Settings`]})]})]})]}),(0,D.jsxs)(`div`,{className:`bg-[#111827]/20 border border-gray-800/80 rounded-xl p-6 shadow-md`,children:[(0,D.jsx)(`h4`,{className:`text-xs font-semibold uppercase tracking-wider text-gray-500 mb-3`,children:`Industry Comparison`}),(0,D.jsx)(`div`,{className:`overflow-x-auto`,children:(0,D.jsxs)(`table`,{className:`w-full text-[10px] text-gray-400 text-left border-collapse`,children:[(0,D.jsx)(`thead`,{children:(0,D.jsxs)(`tr`,{className:`border-b border-gray-800 text-gray-500`,children:[(0,D.jsx)(`th`,{className:`py-2 pr-4 font-semibold`,children:`Orchestrator`}),(0,D.jsx)(`th`,{className:`py-2 px-4 font-semibold`,children:`Multi-Repo`}),(0,D.jsx)(`th`,{className:`py-2 px-4 font-semibold`,children:`AI Rules Integration`}),(0,D.jsx)(`th`,{className:`py-2 pl-4 font-semibold`,children:`Weight`})]})}),(0,D.jsxs)(`tbody`,{children:[(0,D.jsxs)(`tr`,{className:`border-b border-gray-800/40`,children:[(0,D.jsx)(`td`,{className:`py-2 pr-4 font-semibold text-white`,children:`Docker Compose`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`Yes (Containers only)`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`No`}),(0,D.jsx)(`td`,{className:`py-2 pl-4`,children:`Medium (VM overhead)`})]}),(0,D.jsxs)(`tr`,{className:`border-b border-gray-800/40`,children:[(0,D.jsx)(`td`,{className:`py-2 pr-4 font-semibold text-white`,children:`Lerna / Turborepo`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`Monorepo only`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`No`}),(0,D.jsx)(`td`,{className:`py-2 pl-4`,children:`Light`})]}),(0,D.jsxs)(`tr`,{className:`border-b border-gray-800/40`,children:[(0,D.jsx)(`td`,{className:`py-2 pr-4 font-semibold text-white`,children:`DevPod / Gitpod`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`Yes (Complex config)`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`No`}),(0,D.jsx)(`td`,{className:`py-2 pl-4`,children:`Heavy (Full virtual VM)`})]}),(0,D.jsxs)(`tr`,{children:[(0,D.jsx)(`td`,{className:`py-2 pr-4 font-semibold text-indigo-400`,children:`NexusFlow`}),(0,D.jsx)(`td`,{className:`py-2 px-4 text-indigo-300`,children:`Yes (Native Worktrees)`}),(0,D.jsx)(`td`,{className:`py-2 px-4 text-indigo-300`,children:`Yes (CLAUDE.md/MDC rules)`}),(0,D.jsx)(`td`,{className:`py-2 pl-4 text-indigo-300`,children:`Extremely Light (Native processes)`})]})]})]})})]})]}),e===`create`&&(0,D.jsxs)(`div`,{className:`max-w-4xl mx-auto`,children:[(0,D.jsxs)(`header`,{className:`mb-10`,children:[(0,D.jsx)(`h1`,{className:`text-3xl font-extrabold tracking-tight text-white mb-2`,children:`New Feature Workspace`}),(0,D.jsx)(`p`,{className:`text-sm text-gray-400`,children:`Set up unified git worktrees, scan tech stacks, and write contextual configurations for your AI assistant.`})]}),(0,D.jsxs)(`div`,{className:`flex justify-between items-center max-w-xl mx-auto mb-14 relative px-4`,children:[(0,D.jsx)(`div`,{className:`absolute top-4 left-6 right-6 h-[2px] bg-gray-800 -z-10`}),(0,D.jsx)(`div`,{className:`absolute top-4 left-6 h-[2px] bg-gradient-to-r from-cyan-400 to-indigo-500 -z-10 transition-all duration-300`,style:{width:`${k/3*92}%`}}),(0,D.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,D.jsx)(`div`,{className:`w-8 h-8 rounded-full border-2 flex items-center justify-center font-bold text-xs transition-all ${k>0?`bg-emerald-500 border-emerald-500 text-white`:k===0?`border-indigo-500 bg-[#0b0f19] text-white shadow-lg shadow-indigo-500/20`:`border-gray-800 bg-gray-900 text-gray-500`}`,children:k>0?(0,D.jsx)(S,{size:14}):`1`}),(0,D.jsx)(`span`,{className:`text-[11px] font-semibold tracking-wide uppercase ${k===0?`text-white`:`text-gray-500`}`,children:`Details`})]}),(0,D.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,D.jsx)(`div`,{className:`w-8 h-8 rounded-full border-2 flex items-center justify-center font-bold text-xs transition-all ${k>1?`bg-emerald-500 border-emerald-500 text-white`:k===1?`border-indigo-500 bg-[#0b0f19] text-white shadow-lg shadow-indigo-500/20`:`border-gray-800 bg-gray-900 text-gray-500`}`,children:k>1?(0,D.jsx)(S,{size:14}):`2`}),(0,D.jsx)(`span`,{className:`text-[11px] font-semibold tracking-wide uppercase ${k===1?`text-white`:`text-gray-500`}`,children:`Repos`})]}),(0,D.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,D.jsx)(`div`,{className:`w-8 h-8 rounded-full border-2 flex items-center justify-center font-bold text-xs transition-all ${k>2?`bg-emerald-500 border-emerald-500 text-white`:k===2?`border-indigo-500 bg-[#0b0f19] text-white shadow-lg shadow-indigo-500/20`:`border-gray-800 bg-gray-900 text-gray-500`}`,children:k>2?(0,D.jsx)(S,{size:14}):`3`}),(0,D.jsx)(`span`,{className:`text-[11px] font-semibold tracking-wide uppercase ${k===2?`text-white`:`text-gray-500`}`,children:`Assistant`})]}),(0,D.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,D.jsx)(`div`,{className:`w-8 h-8 rounded-full border-2 flex items-center justify-center font-bold text-xs transition-all ${k===3?`border-emerald-500 bg-[#0b0f19] text-emerald-400 shadow-lg shadow-emerald-500/20`:`border-gray-800 bg-gray-900 text-gray-500`}`,children:`4`}),(0,D.jsx)(`span`,{className:`text-[11px] font-semibold tracking-wide uppercase ${k===3?`text-emerald-400`:`text-gray-500`}`,children:`Complete`})]})]}),k===0&&(0,D.jsxs)(`div`,{className:`bg-[#111827]/40 border border-gray-800/80 rounded-xl p-8 shadow-xl backdrop-blur-sm`,children:[(0,D.jsxs)(`div`,{className:`mb-6`,children:[(0,D.jsx)(`label`,{className:`block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2`,children:`Feature Branch Name`}),(0,D.jsx)(`input`,{type:`text`,className:`w-full bg-[#111827] border border-gray-800 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 rounded-lg px-4 py-3 text-white placeholder-gray-600 transition-all outline-none text-sm shadow-inner`,placeholder:`e.g., feature/oauth-authentication-flow`,value:xe,onChange:e=>Se(e.target.value)})]}),(0,D.jsxs)(`div`,{className:`mb-8`,children:[(0,D.jsx)(`label`,{className:`block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2`,children:`Feature Purpose & Context`}),(0,D.jsx)(`textarea`,{className:`w-full bg-[#111827] border border-gray-800 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 rounded-lg px-4 py-3 text-white placeholder-gray-600 transition-all outline-none text-sm min-h-[140px] resize-y shadow-inner`,placeholder:`Describe what you want to build. This helps AI assistants analyze context and produce matching plans.`,value:Ce,onChange:e=>we(e.target.value)})]}),(0,D.jsx)(`div`,{className:`flex justify-end`,children:(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-2 px-5 py-3 rounded-lg text-sm font-semibold bg-gradient-to-r from-indigo-500 to-indigo-600 hover:from-indigo-600 hover:to-indigo-700 text-white shadow-md shadow-indigo-500/10 transition-all cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed hover:-translate-y-0.5 active:translate-y-0`,disabled:!xe||!Ce,onClick:()=>be(1),children:[`Next Step `,(0,D.jsx)(ee,{size:16})]})})]}),k===1&&(0,D.jsxs)(`div`,{className:`bg-[#111827]/40 border border-gray-800/80 rounded-xl p-8 shadow-xl backdrop-blur-sm`,children:[(0,D.jsxs)(`div`,{className:`flex justify-between items-center mb-6`,children:[(0,D.jsx)(`label`,{className:`block text-xs font-semibold text-gray-400 uppercase tracking-wider`,children:`Select Repositories`}),(0,D.jsxs)(`div`,{className:`relative w-64`,children:[(0,D.jsx)(w,{size:14,className:`absolute left-3 top-3 text-gray-500`}),(0,D.jsx)(`input`,{type:`text`,className:`w-full bg-[#111827] border border-gray-800 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 rounded-lg pl-9 pr-4 py-2 text-white placeholder-gray-600 transition-all outline-none text-xs`,placeholder:`Search repo name...`,value:_,onChange:e=>v(e.target.value)})]})]}),h?(0,D.jsxs)(`div`,{className:`flex flex-col items-center py-20 gap-3 text-gray-500`,children:[(0,D.jsx)(C,{className:`animate-spin text-indigo-400`,size:24}),(0,D.jsx)(`span`,{className:`text-xs`,children:`Scanning local projects directory...`})]}):(0,D.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-4 max-h-[380px] overflow-y-auto p-2 border border-gray-800/60 rounded-lg bg-gray-950/20 mb-8`,children:_n.map(e=>{let t=Te.some(t=>t.path===e.path);return(0,D.jsxs)(`div`,{className:`bg-[#111827]/60 border rounded-xl p-4 flex items-start gap-3 cursor-pointer hover:bg-gray-800/20 hover:border-gray-700 transition-all ${t?`border-indigo-500 bg-indigo-500/5`:`border-gray-800/80`}`,onClick:()=>ln(e),children:[(0,D.jsx)(`input`,{type:`checkbox`,className:`mt-1 h-4 w-4 accent-indigo-500 rounded cursor-pointer`,checked:t,readOnly:!0}),(0,D.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,D.jsx)(`div`,{className:`text-sm font-semibold text-white truncate`,children:e.name}),(0,D.jsx)(`div`,{className:`text-[10px] text-gray-500 truncate mt-1`,children:e.path})]}),(0,D.jsx)(`span`,{className:`text-[9px] px-2 py-0.5 rounded bg-gray-800 text-gray-400 font-semibold uppercase`,children:e.defaultBranch})]},e.path)})}),(0,D.jsxs)(`div`,{className:`flex justify-between`,children:[(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-2 px-5 py-3 rounded-lg text-sm font-semibold bg-gray-900 border border-gray-800 hover:bg-gray-800 hover:border-gray-700 text-white transition-all cursor-pointer`,onClick:()=>be(0),children:[(0,D.jsx)(x,{size:16}),` Back`]}),(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-2 px-5 py-3 rounded-lg text-sm font-semibold bg-gradient-to-r from-indigo-500 to-indigo-600 hover:from-indigo-600 hover:to-indigo-700 text-white shadow-md shadow-indigo-500/10 transition-all cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed hover:-translate-y-0.5 active:translate-y-0`,disabled:Te.length===0,onClick:()=>be(2),children:[`Next Step `,(0,D.jsx)(ee,{size:16})]})]})]}),k===2&&(0,D.jsxs)(`div`,{className:`bg-[#111827]/40 border border-gray-800/80 rounded-xl p-8 shadow-xl backdrop-blur-sm`,children:[(0,D.jsxs)(`div`,{className:`mb-8`,children:[(0,D.jsx)(`label`,{className:`block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2`,children:`Target AI Assistant(s)`}),(0,D.jsx)(`p`,{className:`text-xs text-gray-500 mb-4`,children:`We generate context configurations matching the specifications of each checked assistant.`}),(0,D.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-4`,children:y.map(e=>(0,D.jsxs)(`div`,{className:`bg-[#111827]/60 border rounded-xl p-4 flex flex-col gap-3 cursor-pointer hover:border-gray-700 transition-all ${De.includes(e.name)?`border-indigo-500 bg-indigo-500/5`:`border-gray-800/80`}`,onClick:()=>un(e.name),children:[(0,D.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,D.jsx)(`span`,{className:`text-sm font-bold text-white`,children:e.displayName}),(0,D.jsx)(`span`,{className:`text-[9px] px-2 py-0.5 rounded font-semibold uppercase ${e.detected?`bg-emerald-500/10 text-emerald-400`:`bg-gray-800 text-gray-500`}`,children:e.detected?`Installed`:`Missing`})]}),(0,D.jsxs)(`p`,{className:`text-[11px] text-gray-500`,children:[e.name===`claude`&&`CLAUDE.md guidelines`,e.name===`antigravity`&&`CLAUDE.md guidelines (harness)`,e.name===`codex`&&`AGENTS.md config structure`,e.name===`copilot`&&`GitHub Copilot Workspace configs`,e.name===`cursor`&&`Cursor MDC rules and instructions`]})]},e.name))})]}),(0,D.jsxs)(`div`,{className:`mb-8`,children:[(0,D.jsx)(`label`,{className:`block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2`,children:`Open Workspace In`}),(0,D.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4`,children:[_e.map(e=>(0,D.jsxs)(`div`,{className:`bg-[#111827]/60 border rounded-xl p-4 flex flex-col cursor-pointer hover:border-gray-700 transition-all ${ke?.command===e.command?`border-indigo-500 bg-indigo-500/5`:`border-gray-800/80`}`,onClick:()=>Ae(e),children:[(0,D.jsx)(`span`,{className:`text-sm font-bold text-white`,children:e.name}),(0,D.jsx)(`span`,{className:`text-[9px] mt-2 w-max px-2 py-0.5 rounded font-semibold uppercase ${e.detected?`bg-emerald-500/10 text-emerald-400`:`bg-gray-800 text-gray-500`}`,children:e.detected?`Detected`:`Missing`})]},e.command)),(0,D.jsxs)(`div`,{className:`bg-[#111827]/60 border rounded-xl p-4 flex flex-col cursor-pointer hover:border-gray-700 transition-all ${ke===null?`border-indigo-500 bg-indigo-500/5`:`border-gray-800/80`}`,onClick:()=>Ae(null),children:[(0,D.jsx)(`span`,{className:`text-sm font-bold text-white`,children:`None`}),(0,D.jsx)(`span`,{className:`text-[9px] mt-2 w-max px-2 py-0.5 rounded font-semibold uppercase bg-gray-800 text-gray-500`,children:`Skip opening`})]})]})]}),(0,D.jsxs)(`div`,{className:`mb-8 border border-gray-800/80 rounded-xl p-5 bg-gray-950/20`,children:[(0,D.jsxs)(`h4`,{className:`text-xs font-bold text-gray-400 uppercase tracking-wider mb-4 flex items-center gap-2`,children:[(0,D.jsx)(he,{size:14,className:`text-indigo-400`}),` Advanced Session Resumption Settings`]}),(0,D.jsx)(`p`,{className:`text-[11px] text-gray-500 mb-4`,children:`Configure setup and verification test commands. AI assistants and the dashboard use these to resume your sessions green.`}),(0,D.jsxs)(`div`,{className:`space-y-4`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`label`,{className:`block text-[11px] font-semibold text-gray-400 mb-1.5`,children:`Verification / Test Command`}),(0,D.jsx)(`input`,{type:`text`,className:`w-full bg-[#030408] border border-gray-800 focus:border-indigo-500 rounded-lg px-3 py-2 text-xs font-mono text-white outline-none transition-all`,placeholder:`e.g., npm run test or vitest run`,value:Fe,onChange:e=>Ie(e.target.value)})]}),(0,D.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-4`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`label`,{className:`block text-[11px] font-semibold text-gray-400 mb-1.5`,children:`Mock / Database Command (Optional)`}),(0,D.jsx)(`input`,{type:`text`,className:`w-full bg-[#030408] border border-gray-800 focus:border-indigo-500 rounded-lg px-3 py-2 text-xs font-mono text-white outline-none transition-all`,placeholder:`e.g., docker compose up -d redis`,value:Le,onChange:e=>Re(e.target.value)})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`label`,{className:`block text-[11px] font-semibold text-gray-400 mb-1.5`,children:`Start / Run Command (Optional)`}),(0,D.jsx)(`input`,{type:`text`,className:`w-full bg-[#030408] border border-gray-800 focus:border-indigo-500 rounded-lg px-3 py-2 text-xs font-mono text-white outline-none transition-all`,placeholder:`e.g., npm run start:dev`,value:ze,onChange:e=>Be(e.target.value)})]})]})]})]}),(0,D.jsxs)(`div`,{className:`flex justify-between`,children:[(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-2 px-5 py-3 rounded-lg text-sm font-semibold bg-gray-900 border border-gray-800 hover:bg-gray-800 hover:border-gray-700 text-white transition-all cursor-pointer`,onClick:()=>be(1),children:[(0,D.jsx)(x,{size:16}),` Back`]}),(0,D.jsx)(`button`,{className:`inline-flex items-center justify-center gap-2 px-6 py-3 rounded-lg text-sm font-semibold bg-gradient-to-r from-indigo-500 to-indigo-600 hover:from-indigo-600 hover:to-indigo-700 text-white shadow-lg shadow-indigo-500/20 transition-all cursor-pointer hover:-translate-y-0.5 active:translate-y-0 disabled:opacity-40 disabled:cursor-not-allowed`,disabled:je,onClick:dn,children:je?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(C,{className:`animate-spin`,size:14}),` Building...`]}):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(fe,{size:14}),` Build Workspace`]})})]})]}),k===3&&Ne&&(0,D.jsxs)(`div`,{className:`bg-[#111827]/40 border border-gray-800/80 rounded-xl p-10 text-center shadow-xl backdrop-blur-sm`,children:[(0,D.jsx)(`div`,{className:`inline-flex items-center justify-center p-3 rounded-full bg-emerald-500/10 border border-emerald-500/20 text-emerald-400 mb-6`,children:(0,D.jsx)(S,{size:36})}),(0,D.jsx)(`h2`,{className:`text-2xl font-bold text-white mb-2`,children:`Workspace Generated!`}),(0,D.jsxs)(`p`,{className:`text-gray-400 text-sm max-w-lg mx-auto mb-8`,children:[`We spun up git worktrees for your branch `,(0,D.jsx)(`code`,{children:xe}),`, analyzed the code architectures, and generated your AI assistant instructions.`]}),(0,D.jsxs)(`div`,{className:`flex flex-col gap-3 bg-gray-950/40 border border-gray-800/60 rounded-xl p-5 w-fit min-w-[360px] mx-auto text-left text-xs mb-8`,children:[(0,D.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,D.jsx)(`span`,{className:`text-gray-500 font-medium`,children:`Branch name:`}),(0,D.jsx)(`code`,{className:`text-indigo-400 font-bold`,children:xe})]}),(0,D.jsxs)(`div`,{className:`flex justify-between items-center gap-4`,children:[(0,D.jsx)(`span`,{className:`text-gray-500 font-medium`,children:`Location:`}),(0,D.jsx)(`code`,{className:`text-gray-400 font-mono text-[10px] break-all`,children:Ne.path})]})]}),(0,D.jsxs)(`div`,{className:`flex justify-center gap-4`,children:[(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-2 px-5 py-3 rounded-lg text-sm font-semibold bg-gray-900 border border-gray-800 hover:bg-gray-800 hover:border-gray-700 text-white transition-all cursor-pointer`,onClick:()=>{t(`workspaces`),Zt(),qe(xe)},children:[(0,D.jsx)(he,{size:14,className:`text-cyan-400`}),` Manage Services`]}),(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-2 px-5 py-3 rounded-lg text-sm font-semibold bg-gradient-to-r from-indigo-500 to-indigo-600 hover:from-indigo-600 hover:to-indigo-700 text-white shadow-md shadow-indigo-500/10 transition-all cursor-pointer hover:-translate-y-0.5 active:translate-y-0`,onClick:()=>hn(Ne.path),children:[(0,D.jsx)(oe,{size:14}),` Open Editor`]})]})]})]}),e===`workspaces`&&(0,D.jsxs)(`div`,{className:`max-w-5xl mx-auto`,children:[(0,D.jsxs)(`header`,{className:`flex justify-between items-center mb-8`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`h1`,{className:`text-3xl font-extrabold tracking-tight text-white mb-2`,children:`Active Workspaces`}),(0,D.jsx)(`p`,{className:`text-sm text-gray-400`,children:`Monitor running servers, libraries, and processes on your development branches.`})]}),(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-2 px-4 py-2 bg-gray-900 border border-gray-800 hover:bg-gray-800 hover:border-gray-700 rounded-lg text-xs font-semibold transition-all cursor-pointer`,onClick:Zt,disabled:Ge,children:[(0,D.jsx)(C,{size:14,className:Ge?`animate-spin text-indigo-400`:``}),` Refresh`]})]}),Ge?(0,D.jsxs)(`div`,{className:`flex flex-col items-center py-40 gap-4 text-gray-400`,children:[(0,D.jsx)(C,{className:`animate-spin text-indigo-400`,size:32}),(0,D.jsx)(`span`,{className:`text-sm`,children:`Fetching workspace details...`})]}):Ue.length===0?(0,D.jsxs)(`div`,{className:`flex flex-col items-center justify-center py-24 bg-[#111827]/20 border border-gray-800/80 rounded-xl text-center`,children:[(0,D.jsx)(ae,{size:44,className:`text-gray-600 mb-4`}),(0,D.jsx)(`h3`,{className:`text-lg font-bold text-white`,children:`No Active Workspaces`}),(0,D.jsx)(`p`,{className:`text-xs text-gray-500 max-w-sm mt-1`,children:`No feature workspaces were detected in your development folder. Create a workspace to start.`})]}):(0,D.jsx)(`div`,{className:`flex flex-col gap-6`,children:Ue.map(e=>{let t=A===e.branchName;return(0,D.jsxs)(`div`,{className:`bg-[#111827]/40 border border-gray-800/80 rounded-xl p-6 shadow-md`,children:[(0,D.jsxs)(`div`,{className:`flex justify-between items-start gap-4 mb-4`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`h3`,{className:`text-lg font-bold text-white hover:text-indigo-400 transition-colors`,children:e.branchName}),(0,D.jsxs)(`div`,{className:`flex items-center gap-3 text-xs text-gray-500 mt-1`,children:[(0,D.jsxs)(`span`,{children:[`Created: `,new Date(e.createdAt).toLocaleDateString()]}),(0,D.jsx)(`span`,{className:`h-1 w-1 rounded-full bg-gray-700`}),(0,D.jsxs)(`span`,{children:[e.repos.length,` repos`]})]})]}),(0,D.jsxs)(`div`,{className:`flex gap-2`,children:[(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-3.5 py-2 bg-emerald-600 hover:bg-emerald-700 text-white rounded-lg text-xs font-semibold transition-all cursor-pointer shadow-md shadow-emerald-600/10 disabled:opacity-40 disabled:cursor-not-allowed`,onClick:()=>mn(e),disabled:Ve===e.branchName,children:[(0,D.jsx)(ue,{size:12,className:Ve===e.branchName?`animate-spin`:``}),Ve===e.branchName?`Resuming...`:`Resume Session`]}),(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-3.5 py-2 bg-gray-900 border border-gray-800 hover:bg-gray-800 hover:border-gray-700 rounded-lg text-xs font-semibold transition-all cursor-pointer`,onClick:()=>gn(e),children:[(0,D.jsx)(fe,{size:12,className:`text-cyan-400`}),` Copy Prompt`]}),(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-3.5 py-2 bg-gray-900 border border-gray-800 hover:bg-gray-800 hover:border-gray-700 rounded-lg text-xs font-semibold transition-all cursor-pointer`,onClick:()=>hn(e.workspacePath),children:[(0,D.jsx)(ie,{size:12}),` Open`]}),(0,D.jsx)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-3.5 py-2 bg-indigo-500 hover:bg-indigo-600 text-white rounded-lg text-xs font-semibold transition-all cursor-pointer shadow-md shadow-indigo-500/10`,onClick:()=>{qe(t?null:e.branchName)},children:t?`Hide Runner`:`Orchestrate`})]})]}),(0,D.jsx)(`p`,{className:`text-xs text-gray-400 bg-gray-950/40 border-l-2 border-indigo-500 rounded-r-lg px-4 py-3 mb-4 font-medium italic`,children:e.description}),(0,D.jsx)(`div`,{className:`flex flex-wrap gap-2 mb-4`,children:e.repos.map(e=>(0,D.jsx)(`span`,{className:`text-[10px] px-2.5 py-1 bg-gray-900 border border-gray-800 text-gray-300 rounded-md font-semibold`,children:e.split(/[\\/]/).pop()},e))}),t&&(0,D.jsxs)(`div`,{className:`mt-6 pt-6 border-t border-gray-800/80`,children:[(0,D.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-6 mb-6`,children:[(0,D.jsxs)(`div`,{className:`bg-gray-950/40 border border-gray-800/60 rounded-xl p-4 flex flex-col justify-between`,children:[(0,D.jsxs)(`div`,{className:`flex justify-between items-center text-xs font-semibold text-gray-400 mb-2`,children:[(0,D.jsx)(`span`,{children:`Simulated CPU Load`}),(0,D.jsx)(`span`,{className:j.length>0?`text-emerald-400`:`text-gray-500`,children:j.length>0?`4.8%`:`0%`})]}),(0,D.jsx)(`div`,{className:`w-full bg-gray-800 rounded-full h-1.5 mb-2 overflow-hidden`,children:(0,D.jsx)(`div`,{className:`h-1.5 rounded-full transition-all duration-500 ${j.length>0?`bg-gradient-to-r from-emerald-500 to-teal-400 animate-pulse`:`bg-gray-700`}`,style:{width:j.length>0?`48%`:`0%`}})}),(0,D.jsx)(`span`,{className:`text-[10px] text-gray-500`,children:`Fluctuating active worker processes`})]}),(0,D.jsxs)(`div`,{className:`bg-gray-950/40 border border-gray-800/60 rounded-xl p-4 flex flex-col justify-between`,children:[(0,D.jsxs)(`div`,{className:`flex justify-between items-center text-xs font-semibold text-gray-400 mb-2`,children:[(0,D.jsx)(`span`,{children:`Simulated Memory Allocation`}),(0,D.jsx)(`span`,{className:j.length>0?`text-cyan-400`:`text-gray-500`,children:j.length>0?`192 MB`:`0 MB`})]}),(0,D.jsx)(`div`,{className:`w-full bg-gray-800 rounded-full h-1.5 mb-2 overflow-hidden`,children:(0,D.jsx)(`div`,{className:`h-1.5 rounded-full transition-all duration-500 ${j.length>0?`bg-gradient-to-r from-cyan-500 to-indigo-400`:`bg-gray-700`}`,style:{width:j.length>0?`65%`:`0%`}})}),(0,D.jsx)(`span`,{className:`text-[10px] text-gray-500`,children:`Working set size for spawned servers`})]}),(0,D.jsxs)(`div`,{className:`bg-gray-950/40 border border-gray-800/60 rounded-xl p-4 flex flex-col justify-between`,children:[(0,D.jsxs)(`div`,{className:`flex justify-between items-center text-xs font-semibold text-gray-400 mb-2`,children:[(0,D.jsx)(`span`,{children:`Active Workspace Status`}),(0,D.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-[10px] uppercase font-bold tracking-wider ${j.length>0?`text-emerald-400`:`text-gray-500`}`,children:[(0,D.jsx)(`span`,{className:`w-1.5 h-1.5 rounded-full ${j.length>0?`bg-emerald-500 animate-ping`:`bg-gray-600`}`}),j.length>0?`Online`:`Idle`]})]}),(0,D.jsx)(`div`,{className:`text-xs text-white font-medium truncate`,children:j.length>0?`${j.length} processes active`:`All processes offline`}),(0,D.jsx)(`span`,{className:`text-[10px] text-gray-500`,children:`Service state mapping`})]})]}),(0,D.jsxs)(`div`,{className:`flex border-b border-gray-800/80 mb-6 gap-2`,children:[(0,D.jsx)(`button`,{className:`px-4 py-2 border-b-2 text-xs font-bold transition-all cursor-pointer ${tt===`sessions`?`border-indigo-500 text-white`:`border-transparent text-gray-500 hover:text-gray-300`}`,onClick:()=>nt(`sessions`),children:`AI Session History`}),(0,D.jsx)(`button`,{className:`px-4 py-2 border-b-2 text-xs font-bold transition-all cursor-pointer ${tt===`services`?`border-indigo-500 text-white`:`border-transparent text-gray-500 hover:text-gray-300`}`,onClick:()=>nt(`services`),children:`Orchestrated Services`}),(0,D.jsx)(`button`,{className:`px-4 py-2 border-b-2 text-xs font-bold transition-all cursor-pointer ${tt===`changes`?`border-indigo-500 text-white`:`border-transparent text-gray-500 hover:text-gray-300`}`,onClick:()=>nt(`changes`),children:`Active Changes (AI Diffs)`}),(0,D.jsx)(`button`,{className:`px-4 py-2 border-b-2 text-xs font-bold transition-all cursor-pointer ${tt===`knowledge`?`border-indigo-500 text-white`:`border-transparent text-gray-500 hover:text-gray-300`}`,onClick:()=>nt(`knowledge`),children:`Knowledge Base`}),(0,D.jsx)(`button`,{className:`px-4 py-2 border-b-2 text-xs font-bold transition-all cursor-pointer ${tt===`plan`?`border-indigo-500 text-white`:`border-transparent text-gray-500 hover:text-gray-300`}`,onClick:()=>nt(`plan`),children:`Implementation Plan`})]}),tt===`sessions`&&(at?(0,D.jsx)(`div`,{className:`flex justify-center py-10`,children:(0,D.jsx)(C,{className:`animate-spin text-indigo-400`,size:20})}):rt.length===0?(0,D.jsxs)(`div`,{className:`text-center py-10 bg-gray-950/20 border border-gray-800/60 rounded-xl p-6`,children:[(0,D.jsx)(ce,{size:36,className:`text-gray-650 mx-auto mb-3`}),(0,D.jsx)(`h4`,{className:`text-sm font-bold text-gray-400 mb-1`,children:`No Past AI Sessions Found`}),(0,D.jsxs)(`p`,{className:`text-xs text-gray-505 max-w-md mx-auto leading-relaxed`,children:[`Start a conversation with your AI assistant (e.g. running `,(0,D.jsx)(`code`,{children:`claude`}),`, `,(0,D.jsx)(`code`,{children:`agy`}),`, `,(0,D.jsx)(`code`,{children:`codex`}),`, or `,(0,D.jsx)(`code`,{children:`copilot`}),` inside this directory) to track session history here.`]})]}):(0,D.jsx)(`div`,{className:`space-y-3 mb-6`,children:rt.map(t=>(0,D.jsxs)(`div`,{className:`flex flex-col md:flex-row md:items-center justify-between gap-4 bg-gray-950/20 border border-gray-800/60 rounded-xl p-4 hover:border-gray-700/80 transition-all`,children:[(0,D.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,D.jsxs)(`div`,{className:`flex items-center gap-2.5 mb-1.5`,children:[(0,D.jsx)(`span`,{className:`px-2 py-0.5 rounded text-[10px] font-bold uppercase tracking-wider ${t.assistant===`antigravity`?`bg-indigo-500/20 text-indigo-300 border border-indigo-500/30`:t.assistant===`claude`?`bg-amber-500/20 text-amber-300 border border-amber-500/30`:t.assistant===`codex`?`bg-emerald-500/20 text-emerald-300 border border-emerald-500/30`:`bg-sky-500/20 text-sky-300 border border-sky-500/30`}`,children:t.assistant===`antigravity`?`Antigravity`:t.assistant===`claude`?`Claude Code`:t.assistant===`codex`?`OpenAI Codex`:`GitHub Copilot`}),(0,D.jsxs)(`span`,{className:`text-[10px] text-gray-500`,children:[`Updated: `,new Date(t.updatedAt).toLocaleString()]}),(0,D.jsx)(`span`,{className:`text-[10px] text-gray-500`,children:`•`}),(0,D.jsxs)(`span`,{className:`text-[10px] text-gray-550 font-medium`,children:[t.messageCount,` messages`]})]}),(0,D.jsx)(`h4`,{className:`text-xs font-semibold text-white truncate pr-4`,title:t.title,children:t.title})]}),(0,D.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-3 py-1.5 bg-indigo-500/10 border border-indigo-500/20 hover:bg-indigo-500/20 text-indigo-300 rounded-lg text-xs font-bold transition-all cursor-pointer`,onClick:()=>{st(t),lt([]),nn(t.assistant,t.id)},children:[(0,D.jsx)(le,{size:13}),` View Chat Log`]}),(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-3 py-1.5 bg-emerald-600 hover:bg-emerald-700 text-white rounded-lg text-xs font-bold transition-all cursor-pointer`,onClick:()=>mn(e,t.id,t.assistant),children:[(0,D.jsx)(ue,{size:11}),` Resume`]})]})]},t.id))})),tt===`services`&&($e?(0,D.jsx)(`div`,{className:`flex justify-center py-10`,children:(0,D.jsx)(C,{className:`animate-spin text-indigo-400`,size:20})}):(0,D.jsxs)(`div`,{children:[Xe.length>0&&(0,D.jsxs)(`div`,{className:`flex items-center gap-3 bg-indigo-500/5 border border-indigo-500/20 rounded-xl p-4 mb-4 text-xs text-indigo-300`,children:[(0,D.jsx)(ge,{size:16,className:`text-indigo-400 shrink-0`}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`strong`,{children:`Orchestration manifest detected:`}),` `,Xe.map(e=>e.tool).join(`, `),`. You can start them inside sub-repos.`]})]}),(0,D.jsx)(`div`,{className:`flex flex-col gap-2 mb-4`,children:Je.map(e=>(0,D.jsxs)(`div`,{className:`flex justify-between items-center bg-gray-950/20 border border-gray-800/60 rounded-xl px-4 py-3 text-xs`,children:[(0,D.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,D.jsx)(`span`,{className:`w-2.5 h-2.5 rounded-full ${j.some(t=>t.name===e.name)?`bg-emerald-500 shadow-[0_0_8px_#10b981]`:`bg-gray-700`}`}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`span`,{className:`font-bold text-white`,children:e.name}),(0,D.jsxs)(`span`,{className:`text-[10px] text-gray-500 ml-3`,children:[e.command,` `,e.args.join(` `),` `,e.port?`• port ${e.port}`:``]})]})]}),(0,D.jsx)(`span`,{className:`text-[9px] px-2 py-0.5 rounded bg-gray-800 text-gray-500 font-bold uppercase`,children:e.source})]},e.name))}),(0,D.jsxs)(`div`,{className:`flex gap-2 mb-6`,children:[(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-4 py-2.5 bg-emerald-500 hover:bg-emerald-600 text-white rounded-lg text-xs font-semibold transition-all cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed shadow-md shadow-emerald-500/10 hover:-translate-y-0.5 active:translate-y-0`,onClick:()=>fn(e.branchName),disabled:j.length>0,children:[(0,D.jsx)(ue,{size:14}),` Start All Services`]}),(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-4 py-2.5 bg-rose-600 hover:bg-rose-700 text-white rounded-lg text-xs font-semibold transition-all cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed shadow-md shadow-rose-600/10 hover:-translate-y-0.5 active:translate-y-0`,onClick:()=>pn(e.branchName),disabled:j.length===0,children:[(0,D.jsx)(me,{size:14}),` Stop All`]})]}),Je.length>0&&(0,D.jsxs)(`div`,{className:`border border-gray-800/80 rounded-xl overflow-hidden shadow-2xl bg-gray-950/60`,children:[(0,D.jsxs)(`div`,{className:`flex items-center justify-between bg-gray-900/80 px-4 py-3 border-b border-gray-800/60`,children:[(0,D.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,D.jsxs)(`div`,{className:`flex gap-1.5`,children:[(0,D.jsx)(`span`,{className:`w-3 h-3 rounded-full bg-rose-500/20 border border-rose-500/30`}),(0,D.jsx)(`span`,{className:`w-3 h-3 rounded-full bg-amber-500/20 border border-amber-500/30`}),(0,D.jsx)(`span`,{className:`w-3 h-3 rounded-full bg-emerald-500/20 border border-emerald-500/30`})]}),(0,D.jsxs)(`span`,{className:`text-[11px] font-mono text-gray-400 font-semibold ml-2`,children:[`nexusflow-terminal: `,Vt]})]}),(0,D.jsx)(`div`,{className:`flex gap-1 bg-gray-950/40 p-1 rounded-lg border border-gray-800/60`,children:Je.map(e=>(0,D.jsx)(`button`,{className:`px-3 py-1 rounded-md text-[10px] font-mono font-bold transition-all cursor-pointer ${Vt===e.name?`bg-slate-800 text-white shadow-sm`:`text-gray-500 hover:text-gray-300`}`,onClick:()=>Ht(e.name),children:e.name},e.name))})]}),(0,D.jsxs)(`div`,{className:`bg-[#030408] p-5 font-mono text-[11px] text-cyan-400/90 h-80 overflow-y-auto whitespace-pre-wrap shadow-inner relative scrollbar-thin scrollbar-thumb-gray-800`,children:[(0,D.jsx)(`div`,{className:`absolute top-3 right-3 text-[9px] bg-slate-900/60 border border-gray-800 text-cyan-500/60 px-2 py-0.5 rounded font-mono select-none uppercase tracking-wider`,children:`LIVE LOGS`}),Ut,(0,D.jsx)(`div`,{ref:Gt})]})]})]})),tt===`changes`&&(0,D.jsxs)(`div`,{children:[(0,D.jsxs)(`header`,{className:`flex justify-between items-center mb-4 flex-wrap gap-2`,children:[(0,D.jsxs)(`h4`,{className:`text-sm font-bold text-white flex items-center gap-2`,children:[(0,D.jsx)(ae,{size:16,className:`text-cyan-400`}),` Active Workspace Git Diffs`]}),(0,D.jsxs)(`div`,{className:`flex gap-2`,children:[(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-3 py-1.5 bg-gray-900 border border-gray-800 hover:bg-gray-800 hover:border-gray-700 rounded-lg text-[10px] font-semibold transition-all cursor-pointer text-gray-300`,onClick:()=>en(e.branchName),disabled:pt,children:[(0,D.jsx)(C,{size:11,className:pt?`animate-spin text-indigo-400`:``}),` Refresh Changes`]}),(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-3 py-1.5 bg-indigo-600 hover:bg-indigo-700 text-white rounded-lg text-[10px] font-semibold transition-all cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed`,onClick:()=>sn(e.branchName),disabled:kt,children:[kt?(0,D.jsx)(C,{size:11,className:`animate-spin text-indigo-300`}):(0,D.jsx)(C,{size:11}),` Sync All`]}),(0,D.jsx)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-3 py-1.5 bg-emerald-600 hover:bg-emerald-700 text-white rounded-lg text-[10px] font-semibold transition-all cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed`,onClick:()=>It(!0),disabled:N.every(e=>e.files.length===0)||Lt,children:`Commit & Push All`})]})]}),jt&&(0,D.jsxs)(`div`,{className:`bg-[#090d1a]/60 border border-gray-800 rounded-xl p-4 mb-4 text-xs`,children:[(0,D.jsxs)(`div`,{className:`flex justify-between items-center mb-2 border-b border-gray-800/80 pb-2`,children:[(0,D.jsx)(`h5`,{className:`font-bold text-white font-mono text-[11px]`,children:`Rebase/Sync Results`}),(0,D.jsx)(`button`,{className:`text-gray-500 hover:text-gray-300 text-[10px] cursor-pointer`,onClick:()=>Mt(null),children:`Dismiss`})]}),(0,D.jsx)(`div`,{className:`space-y-1.5`,children:jt.map(e=>(0,D.jsxs)(`div`,{className:`flex justify-between items-center font-mono text-[10px]`,children:[(0,D.jsx)(`span`,{className:`text-gray-300`,children:e.repoName}),(0,D.jsx)(`span`,{className:e.success?`text-emerald-400`:`text-rose-400`,children:e.success?`✅ Synced (${e.message})`:`⚠️ Conflict: ${e.message}`})]},e.repoName))})]}),zt&&(0,D.jsxs)(`div`,{className:`bg-[#090d1a]/60 border border-gray-800 rounded-xl p-4 mb-4 text-xs`,children:[(0,D.jsxs)(`div`,{className:`flex justify-between items-center mb-2 border-b border-gray-800/80 pb-2`,children:[(0,D.jsx)(`h5`,{className:`font-bold text-white font-mono text-[11px]`,children:`Commit/Push Results`}),(0,D.jsx)(`button`,{className:`text-gray-500 hover:text-gray-300 text-[10px] cursor-pointer`,onClick:()=>Bt(null),children:`Dismiss`})]}),(0,D.jsx)(`div`,{className:`space-y-1.5`,children:zt.map(e=>(0,D.jsxs)(`div`,{className:`flex justify-between items-center font-mono text-[10px]`,children:[(0,D.jsx)(`span`,{className:`text-gray-300`,children:e.repoName}),(0,D.jsx)(`span`,{className:e.success?`text-emerald-400`:`text-rose-400`,children:e.success?`✅ Committed ${e.filesChanged} file(s) (${e.commitHash||`no hash`})`:`⚠️ Error: ${e.message}`})]},e.repoName))})]}),Ft&&(0,D.jsxs)(`div`,{className:`bg-[#0b0f19] border border-gray-800 rounded-xl p-4 mb-4`,children:[(0,D.jsx)(`h5`,{className:`text-xs font-bold text-white mb-2`,children:`Enter Commit Message`}),(0,D.jsx)(`input`,{type:`text`,className:`w-full bg-gray-950 border border-gray-800 rounded-lg px-3 py-2 text-xs font-mono text-gray-350 focus:outline-none focus:border-indigo-500 mb-3`,placeholder:`feat: implement logic...`,value:Nt,onChange:e=>Pt(e.target.value),onKeyDown:t=>{t.key===`Enter`&&cn(e.branchName)}}),(0,D.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,D.jsx)(`button`,{className:`px-3 py-1.5 bg-gray-900 border border-gray-800 hover:bg-gray-850 rounded-lg text-[10px] font-semibold transition-all cursor-pointer text-gray-400`,onClick:()=>{It(!1),Pt(``)},disabled:Lt,children:`Cancel`}),(0,D.jsx)(`button`,{className:`px-3 py-1.5 bg-emerald-600 hover:bg-emerald-500 rounded-lg text-[10px] font-semibold text-white transition-all cursor-pointer`,onClick:()=>cn(e.branchName),disabled:Lt||!Nt.trim(),children:Lt?`Committing...`:`Commit & Push`})]})]}),pt?(0,D.jsx)(`div`,{className:`flex justify-center py-10`,children:(0,D.jsx)(C,{className:`animate-spin text-indigo-400`,size:20})}):(0,D.jsx)(`div`,{className:`space-y-4`,children:N.every(e=>e.files.length===0)?(0,D.jsxs)(`div`,{className:`flex flex-col items-center justify-center py-12 bg-gray-950/20 border border-gray-800/40 rounded-xl text-center`,children:[(0,D.jsx)(S,{size:28,className:`text-emerald-500 mb-2`}),(0,D.jsx)(`h5`,{className:`text-xs font-bold text-white`,children:`No Uncommitted Changes`}),(0,D.jsx)(`p`,{className:`text-[10px] text-gray-500 mt-0.5`,children:`Workspace is completely synced with Git feature branches.`})]}):N.map(e=>{if(e.files.length===0)return null;let t=e.files.length,n=e.files.reduce((e,t)=>e+(t.additions||0),0),r=e.files.reduce((e,t)=>e+(t.deletions||0),0);return(0,D.jsxs)(`div`,{className:`bg-gray-950/20 border border-gray-800/60 rounded-xl p-4`,children:[(0,D.jsxs)(`div`,{className:`flex justify-between items-center mb-3`,children:[(0,D.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,D.jsx)(`h5`,{className:`text-xs font-bold text-white font-mono`,children:e.repoName}),(0,D.jsxs)(`span`,{className:`text-[9px] px-1.5 py-0.5 rounded bg-gray-900 border border-gray-800 text-gray-400 font-mono`,children:[t,` file`,t===1?``:`s`,` changed`]}),(n>0||r>0)&&(0,D.jsxs)(`span`,{className:`text-[9px] font-mono`,children:[(0,D.jsxs)(`span`,{className:`text-emerald-400 font-bold`,children:[`+`,n]}),` `,(0,D.jsxs)(`span`,{className:`text-rose-400 font-bold`,children:[`-`,r]})]})]}),(0,D.jsx)(`span`,{className:`text-[9px] text-gray-500 font-mono truncate max-w-[280px]`,children:e.repoPath})]}),(0,D.jsx)(`div`,{className:`space-y-1.5`,children:e.files.map(e=>(0,D.jsxs)(`div`,{className:`flex justify-between items-center bg-[#090d1a]/40 px-3 py-2 rounded-lg border border-gray-800/30 text-xs`,children:[(0,D.jsxs)(`div`,{className:`flex flex-col min-w-0`,children:[(0,D.jsx)(`span`,{className:`font-mono text-gray-300 text-[11px] truncate max-w-[320px]`,children:e.file}),(e.additions>0||e.deletions>0)&&(0,D.jsxs)(`span`,{className:`text-[9px] font-mono mt-0.5`,children:[(0,D.jsxs)(`span`,{className:`text-emerald-500`,children:[`+`,e.additions]}),` `,(0,D.jsxs)(`span`,{className:`text-rose-500`,children:[`-`,e.deletions]})]})]}),(0,D.jsx)(`span`,{className:`text-[9px] px-2 py-0.5 rounded font-bold uppercase ${e.type===`added`?`bg-emerald-500/10 text-emerald-400 border border-emerald-500/20`:e.type===`deleted`?`bg-rose-500/10 text-rose-400 border border-rose-500/20`:`bg-amber-500/10 text-amber-400 border border-amber-500/20`}`,children:e.type})]},e.file))})]},e.repoName)})})]}),tt===`knowledge`&&(0,D.jsxs)(`div`,{className:`bg-[#090d1a]/20 border border-gray-800/60 rounded-xl p-4`,children:[(0,D.jsxs)(`header`,{className:`flex justify-between items-center mb-4`,children:[(0,D.jsxs)(`h4`,{className:`text-sm font-bold text-white flex items-center gap-2`,children:[(0,D.jsx)(te,{size:16,className:`text-cyan-400`}),` Persistent Knowledge Memory (nexusflow-knowledge.md)`]}),(0,D.jsx)(`div`,{className:`flex gap-2`,children:yt?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(`button`,{className:`px-2.5 py-1.5 bg-gray-900 border border-gray-800 hover:bg-gray-850 rounded-lg text-[10px] font-semibold transition-all cursor-pointer text-gray-400`,onClick:()=>{St(ht),bt(!1)},disabled:Ct,children:`Cancel`}),(0,D.jsxs)(`button`,{className:`inline-flex items-center gap-1.5 px-2.5 py-1.5 bg-indigo-600 hover:bg-indigo-500 text-white rounded-lg text-[10px] font-semibold transition-all cursor-pointer`,onClick:()=>an(e.branchName),disabled:Ct,children:[Ct?(0,D.jsx)(C,{className:`animate-spin`,size:10}):(0,D.jsx)(de,{size:10}),` Save`]})]}):(0,D.jsxs)(`button`,{className:`inline-flex items-center gap-1.5 px-2.5 py-1.5 bg-gray-900 border border-gray-800 hover:bg-gray-800 hover:border-gray-700 rounded-lg text-[10px] font-semibold transition-all cursor-pointer text-gray-350`,onClick:()=>bt(!0),disabled:_t,children:[(0,D.jsx)(pe,{size:10}),` Edit Knowledge`]})})]}),_t?(0,D.jsx)(`div`,{className:`flex justify-center py-10`,children:(0,D.jsx)(C,{className:`animate-spin text-indigo-400`,size:20})}):yt?(0,D.jsx)(`textarea`,{className:`w-full h-96 bg-gray-950/60 border border-gray-800/80 rounded-xl p-4 text-xs font-mono text-gray-305 focus:outline-none focus:border-indigo-500/80 resize-y`,value:xt,onChange:e=>St(e.target.value)}):(0,D.jsx)(`div`,{className:`bg-gray-950/40 border border-gray-800/30 rounded-xl p-4 text-gray-350 text-xs leading-relaxed overflow-auto font-mono whitespace-pre-wrap max-h-96`,children:ht||`No knowledge file generated yet.`})]}),tt===`plan`&&(0,D.jsxs)(`div`,{className:`bg-[#090d1a]/20 border border-gray-800/60 rounded-xl p-4`,children:[(0,D.jsx)(`header`,{className:`flex justify-between items-center mb-4`,children:(0,D.jsxs)(`h4`,{className:`text-sm font-bold text-white flex items-center gap-2`,children:[(0,D.jsx)(se,{size:16,className:`text-cyan-400`}),` Inter-Repo Implementation Plan (nexusflow-plan.md)`]})}),Dt?(0,D.jsx)(`div`,{className:`flex justify-center py-10`,children:(0,D.jsx)(C,{className:`animate-spin text-indigo-400`,size:20})}):(0,D.jsx)(`div`,{className:`bg-gray-950/40 border border-gray-800/30 rounded-xl p-4 text-gray-350 text-xs leading-relaxed overflow-auto font-mono whitespace-pre-wrap max-h-96`,children:Tt||`No implementation plan generated yet.`})]})]})]},e.id)})})]}),e===`settings`&&n&&(0,D.jsxs)(`div`,{className:`max-w-4xl mx-auto`,children:[(0,D.jsxs)(`header`,{className:`mb-8`,children:[(0,D.jsx)(`h1`,{className:`text-3xl font-extrabold tracking-tight text-white mb-2`,children:`Global Settings`}),(0,D.jsx)(`p`,{className:`text-sm text-gray-400`,children:`Configure your local directories, search parameters, and editor defaults.`})]}),c===`success`&&(0,D.jsxs)(`div`,{className:`flex items-center gap-3 bg-emerald-500/10 border border-emerald-500/20 text-emerald-400 rounded-xl p-4 mb-6 text-sm`,children:[(0,D.jsx)(S,{size:18}),` Settings successfully saved and updated!`]}),c===`error`&&(0,D.jsxs)(`div`,{className:`flex items-center gap-3 bg-rose-500/10 border border-rose-500/20 text-rose-400 rounded-xl p-4 mb-6 text-sm`,children:[(0,D.jsx)(ge,{size:18}),` Error: Could not save configuration details to disk.`]}),(0,D.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-6 bg-[#111827]/40 border border-gray-800/80 rounded-xl p-8 shadow-xl backdrop-blur-sm mb-6`,children:[(0,D.jsxs)(`div`,{className:`flex flex-col`,children:[(0,D.jsx)(`label`,{className:`block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2`,children:`Development Directory`}),(0,D.jsx)(`input`,{type:`text`,className:`w-full bg-[#111827] border border-gray-800 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 rounded-lg px-4 py-3 text-white placeholder-gray-600 transition-all outline-none text-sm shadow-inner`,value:n.devDir,onChange:e=>r({...n,devDir:e.target.value})}),(0,D.jsx)(`span`,{className:`text-[10px] text-gray-500 mt-1`,children:`Directory where your git projects are scanned.`})]}),(0,D.jsxs)(`div`,{className:`flex flex-col`,children:[(0,D.jsx)(`label`,{className:`block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2`,children:`Workspaces Directory`}),(0,D.jsx)(`input`,{type:`text`,className:`w-full bg-[#111827] border border-gray-800 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 rounded-lg px-4 py-3 text-white placeholder-gray-600 transition-all outline-none text-sm shadow-inner`,value:n.workspacesDir,onChange:e=>r({...n,workspacesDir:e.target.value})}),(0,D.jsx)(`span`,{className:`text-[10px] text-gray-500 mt-1`,children:`Directory where unified worktree environments are spun up.`})]}),(0,D.jsxs)(`div`,{className:`flex flex-col`,children:[(0,D.jsx)(`label`,{className:`block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2`,children:`Repo Search Depth`}),(0,D.jsx)(`input`,{type:`number`,className:`w-full bg-[#111827] border border-gray-800 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 rounded-lg px-4 py-3 text-white placeholder-gray-600 transition-all outline-none text-sm shadow-inner`,min:1,max:5,value:n.scanDepth,onChange:e=>r({...n,scanDepth:parseInt(e.target.value,10)})}),(0,D.jsx)(`span`,{className:`text-[10px] text-gray-500 mt-1`,children:`Max directory levels deep the system will traverse for git repos.`})]}),(0,D.jsxs)(`div`,{className:`flex flex-col`,children:[(0,D.jsx)(`label`,{className:`block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2`,children:`Default Assistant`}),(0,D.jsxs)(`select`,{className:`w-full bg-[#111827] border border-gray-800 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 rounded-lg px-4 py-3 text-white transition-all outline-none text-sm shadow-inner cursor-pointer`,value:n.defaultAssistant||``,onChange:e=>r({...n,defaultAssistant:e.target.value||null}),children:[(0,D.jsx)(`option`,{value:``,children:`None (Prompt me)`}),(0,D.jsx)(`option`,{value:`claude`,children:`Claude Code`}),(0,D.jsx)(`option`,{value:`antigravity`,children:`Antigravity`}),(0,D.jsx)(`option`,{value:`codex`,children:`Codex`}),(0,D.jsx)(`option`,{value:`copilot`,children:`GitHub Copilot`}),(0,D.jsx)(`option`,{value:`cursor`,children:`Cursor`})]}),(0,D.jsx)(`span`,{className:`text-[10px] text-gray-500 mt-1`,children:`Your preferred workspace context manager.`})]})]}),(0,D.jsx)(`div`,{className:`flex justify-end`,children:(0,D.jsx)(`button`,{className:`inline-flex items-center justify-center gap-2 px-5 py-3 rounded-lg text-sm font-semibold bg-gradient-to-r from-indigo-500 to-indigo-600 hover:from-indigo-600 hover:to-indigo-700 text-white shadow-lg shadow-indigo-500/20 transition-all cursor-pointer hover:-translate-y-0.5 active:translate-y-0`,onClick:()=>qt(n),children:`Save Configuration`})})]})]})}),M&&(0,D.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center bg-black/75 backdrop-blur-sm p-4`,children:(0,D.jsxs)(`div`,{className:`bg-[#0b0f19] border border-gray-800 rounded-2xl w-full max-w-4xl h-[80vh] flex flex-col shadow-2xl overflow-hidden animate-fadeIn`,children:[(0,D.jsxs)(`div`,{className:`flex items-center justify-between px-6 py-4 border-b border-gray-800 bg-gray-950/40`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsxs)(`div`,{className:`flex items-center gap-2 mb-1`,children:[(0,D.jsx)(`span`,{className:`px-2 py-0.5 rounded text-[10px] font-bold uppercase tracking-wider ${M.assistant===`antigravity`?`bg-indigo-500/20 text-indigo-300 border border-indigo-500/30`:M.assistant===`claude`?`bg-amber-500/20 text-amber-300 border border-amber-500/30`:M.assistant===`codex`?`bg-emerald-500/20 text-emerald-300 border border-emerald-500/30`:`bg-sky-500/20 text-sky-300 border border-sky-500/30`}`,children:M.assistant===`antigravity`?`Antigravity`:M.assistant===`claude`?`Claude Code`:M.assistant===`codex`?`OpenAI Codex`:`GitHub Copilot`}),(0,D.jsxs)(`span`,{className:`text-[10px] text-gray-500`,children:[`Session: `,M.id]})]}),(0,D.jsx)(`h3`,{className:`text-sm font-bold text-white truncate max-w-xl`,title:M.title,children:M.title})]}),(0,D.jsx)(`button`,{className:`text-gray-400 hover:text-white p-2 hover:bg-gray-800/80 rounded-lg transition-colors cursor-pointer`,onClick:()=>st(null),children:(0,D.jsx)(E,{size:18})})]}),(0,D.jsx)(`div`,{className:`flex-1 overflow-y-auto p-6 space-y-4 bg-gray-950/10`,children:ut?(0,D.jsxs)(`div`,{className:`flex flex-col items-center justify-center h-full gap-2`,children:[(0,D.jsx)(C,{className:`animate-spin text-indigo-400`,size:24}),(0,D.jsx)(`span`,{className:`text-xs text-gray-500 font-medium`,children:`Loading conversation history...`})]}):ct.length===0?(0,D.jsx)(`div`,{className:`flex items-center justify-center h-full text-xs text-gray-500`,children:`No messages found in this transcript.`}):ct.map((e,t)=>(0,D.jsxs)(`div`,{className:`flex flex-col ${e.role===`user`?`items-end`:`items-start`}`,children:[(0,D.jsxs)(`div`,{className:`text-[10px] text-gray-500 mb-1 px-1`,children:[e.role===`user`?`Developer`:M.assistant===`antigravity`?`Antigravity`:M.assistant===`claude`?`Claude`:M.assistant===`codex`?`Codex`:`Copilot`,e.timestamp&&` • ${new Date(e.timestamp).toLocaleTimeString()}`]}),(0,D.jsx)(`div`,{className:`max-w-[85%] rounded-2xl px-4 py-3 text-xs leading-relaxed whitespace-pre-wrap ${e.role===`user`?`bg-indigo-650 text-white rounded-tr-none shadow-md border border-indigo-500/10`:`bg-gray-900 border border-gray-800 text-gray-200 rounded-tl-none shadow-sm font-sans`}`,children:e.content})]},t))}),(0,D.jsxs)(`div`,{className:`px-6 py-4 border-t border-gray-800 bg-gray-950/40 flex justify-between items-center`,children:[(0,D.jsx)(`span`,{className:`text-[11px] text-gray-550`,children:`Resuming will copy the shell command and open your code editor.`}),(0,D.jsxs)(`div`,{className:`flex gap-2`,children:[(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-4 py-2 bg-gray-900 border border-gray-800 hover:bg-gray-800 rounded-lg text-xs font-bold text-white transition-all cursor-pointer`,onClick:()=>{let e=M.assistant===`antigravity`?`agy --conversation ${M.id}`:M.assistant===`claude`?`claude --resume ${M.id}`:M.assistant===`codex`?`codex resume ${M.id}`:`copilot --resume ${M.id}`;navigator.clipboard.writeText(e),alert(`Copied run command to clipboard:\n\n${e}`)},children:[(0,D.jsx)(re,{size:13}),` Copy Resume Command`]}),(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-4 py-2 bg-emerald-600 hover:bg-emerald-700 text-white rounded-lg text-xs font-bold transition-all cursor-pointer`,onClick:()=>{mn(Ue.find(e=>e.branchName===M.workspacePath.split(/[\\/]/).pop())||Ue[0],M.id,M.assistant),st(null)},children:[(0,D.jsx)(ue,{size:12}),` Resume Conversation`]})]})]})]})})]})}(0,u.createRoot)(document.getElementById(`root`)).render((0,D.jsx)(l.StrictMode,{children:(0,D.jsx)(ye,{})}));
|
|
21
|
+
`;navigator.clipboard.writeText(n),alert(`Universal AI briefing prompt copied to clipboard!`)},_n=p.filter(e=>e.name.toLowerCase().includes(_.toLowerCase()));if(!o&&n){let e=n.devDir.trim()!==``&&n.workspacesDir.trim()!==``;return(0,D.jsx)(`div`,{className:`flex min-h-screen bg-[#070913] text-gray-100 font-sans items-center justify-center p-6 bg-gradient-to-br from-[#0c0f24] via-[#070913] to-[#04050b]`,children:(0,D.jsxs)(`div`,{className:`max-w-6xl w-full bg-[#111827]/40 border border-gray-800/80 rounded-2xl p-8 backdrop-blur-md shadow-2xl grid grid-cols-1 lg:grid-cols-12 gap-10`,children:[(0,D.jsxs)(`div`,{className:`lg:col-span-7 flex flex-col justify-between`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsxs)(`div`,{className:`inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-indigo-500/10 text-indigo-400 border border-indigo-500/20 text-xs font-semibold uppercase tracking-wider mb-4`,children:[(0,D.jsx)(fe,{size:12,className:`text-cyan-400 animate-pulse`}),` Onboarding Guide`]}),(0,D.jsx)(`h1`,{className:`text-3xl font-extrabold tracking-tight text-white mb-2 bg-gradient-to-r from-white via-gray-200 to-indigo-300 bg-clip-text text-transparent`,children:`Welcome to NexusFlow`}),(0,D.jsx)(`p`,{className:`text-sm text-gray-400 mb-8 max-w-xl`,children:`NexusFlow orchestrates multi-repository developer environments. It combines isolated Git worktrees, automatic code analyzer sweeps, and background process running into a single dashboard.`}),(0,D.jsxs)(`div`,{className:`space-y-6`,children:[(0,D.jsxs)(`div`,{className:`flex gap-4`,children:[(0,D.jsx)(`div`,{className:`w-8 h-8 rounded-full bg-indigo-500/10 border border-indigo-500/20 text-indigo-400 flex items-center justify-center font-bold text-sm shrink-0`,children:`1`}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`h3`,{className:`text-sm font-semibold text-white`,children:`Configure Development Folders`}),(0,D.jsx)(`p`,{className:`text-xs text-gray-400 mt-1`,children:`Specify your local code path and target workspaces path. For the first setup, these paths start empty so you can explicitly configure them.`})]})]}),(0,D.jsxs)(`div`,{className:`flex gap-4`,children:[(0,D.jsx)(`div`,{className:`w-8 h-8 rounded-full bg-indigo-500/10 border border-indigo-500/20 text-indigo-400 flex items-center justify-center font-bold text-sm shrink-0`,children:`2`}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`h3`,{className:`text-sm font-semibold text-white`,children:`Build Isolated Branch Workspaces`}),(0,D.jsxs)(`p`,{className:`text-xs text-gray-400 mt-1`,children:[`Choose repositories and input your feature branch. NexusFlow runs `,(0,D.jsx)(`code`,{children:`git worktree`}),` to checkout dependencies under a unified folder structure, leaving your primary repository directories clean.`]})]})]}),(0,D.jsxs)(`div`,{className:`flex gap-4`,children:[(0,D.jsx)(`div`,{className:`w-8 h-8 rounded-full bg-indigo-500/10 border border-indigo-500/20 text-indigo-400 flex items-center justify-center font-bold text-sm shrink-0`,children:`3`}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`h3`,{className:`text-sm font-semibold text-white`,children:`Align AI Coding Contexts`}),(0,D.jsxs)(`p`,{className:`text-xs text-gray-400 mt-1`,children:[`NexusFlow automatically generates configuration files (`,(0,D.jsx)(`code`,{children:`CLAUDE.md`}),`, `,(0,D.jsx)(`code`,{children:`.cursorrules`}),`, `,(0,D.jsx)(`code`,{children:`AGENTS.md`}),`) that instruct the AI assistant to analyze project inter-dependencies, document its assumptions in `,(0,D.jsx)(`code`,{children:`nexusflow-overview.md`}),`, and highlight clarifying questions.`]})]})]}),(0,D.jsxs)(`div`,{className:`flex gap-4`,children:[(0,D.jsx)(`div`,{className:`w-8 h-8 rounded-full bg-indigo-500/10 border border-indigo-500/20 text-indigo-400 flex items-center justify-center font-bold text-sm shrink-0`,children:`4`}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`h3`,{className:`text-sm font-semibold text-white`,children:`Orchestrate Background Services`}),(0,D.jsx)(`p`,{className:`text-xs text-gray-400 mt-1`,children:`Run APIs, database scripts, and frontend watch tasks concurrently from the web portal. Monitor real-time logs inside a unified terminal pane.`})]})]})]})]}),(0,D.jsxs)(`div`,{className:`mt-8 pt-6 border-t border-gray-800/80`,children:[(0,D.jsx)(`h4`,{className:`text-xs font-semibold uppercase tracking-wider text-gray-500 mb-3`,children:`Industry Comparison`}),(0,D.jsx)(`div`,{className:`overflow-x-auto font-sans`,children:(0,D.jsxs)(`table`,{className:`w-full text-[10px] text-gray-400 text-left border-collapse`,children:[(0,D.jsx)(`thead`,{children:(0,D.jsxs)(`tr`,{className:`border-b border-gray-800 text-gray-500`,children:[(0,D.jsx)(`th`,{className:`py-2 pr-4 font-semibold`,children:`Orchestrator`}),(0,D.jsx)(`th`,{className:`py-2 px-4 font-semibold`,children:`Multi-Repo`}),(0,D.jsx)(`th`,{className:`py-2 px-4 font-semibold`,children:`AI Rules Integration`}),(0,D.jsx)(`th`,{className:`py-2 pl-4 font-semibold`,children:`Weight`})]})}),(0,D.jsxs)(`tbody`,{children:[(0,D.jsxs)(`tr`,{className:`border-b border-gray-800/40`,children:[(0,D.jsx)(`td`,{className:`py-2 pr-4 font-semibold text-white`,children:`Docker Compose`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`Yes (Containers only)`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`No`}),(0,D.jsx)(`td`,{className:`py-2 pl-4`,children:`Medium (VM overhead)`})]}),(0,D.jsxs)(`tr`,{className:`border-b border-gray-800/40`,children:[(0,D.jsx)(`td`,{className:`py-2 pr-4 font-semibold text-white`,children:`Lerna / Turborepo`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`Monorepo only`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`No`}),(0,D.jsx)(`td`,{className:`py-2 pl-4`,children:`Light`})]}),(0,D.jsxs)(`tr`,{className:`border-b border-gray-800/40`,children:[(0,D.jsx)(`td`,{className:`py-2 pr-4 font-semibold text-white`,children:`DevPod / Gitpod`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`Yes (Complex config)`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`No`}),(0,D.jsx)(`td`,{className:`py-2 pl-4`,children:`Heavy (Full virtual VM)`})]}),(0,D.jsxs)(`tr`,{children:[(0,D.jsx)(`td`,{className:`py-2 pr-4 font-semibold text-indigo-400`,children:`NexusFlow`}),(0,D.jsx)(`td`,{className:`py-2 px-4 text-indigo-300`,children:`Yes (Native Worktrees)`}),(0,D.jsx)(`td`,{className:`py-2 px-4 text-indigo-300`,children:`Yes (CLAUDE.md/MDC rules)`}),(0,D.jsx)(`td`,{className:`py-2 pl-4 text-indigo-300`,children:`Extremely Light (Native processes)`})]})]})]})})]})]}),(0,D.jsx)(`div`,{className:`lg:col-span-5 flex flex-col justify-center`,children:(0,D.jsxs)(`div`,{className:`bg-gray-950/40 border border-gray-800/80 rounded-2xl p-6 shadow-lg`,children:[(0,D.jsxs)(`h2`,{className:`text-xl font-bold text-white mb-1 flex items-center gap-2`,children:[(0,D.jsx)(T,{className:`text-indigo-400 animate-spin-slow`,size:20}),` Initialize Config`]}),(0,D.jsx)(`p`,{className:`text-xs text-gray-500 mb-6`,children:`Define the directories on your machine. The fields are empty so you can provide your paths.`}),(0,D.jsxs)(`div`,{className:`space-y-5`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`label`,{className:`block text-[11px] font-semibold text-gray-400 uppercase tracking-wider mb-2`,children:`Development Directory`}),(0,D.jsx)(`input`,{type:`text`,className:`w-full bg-[#111827] border border-gray-800 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 rounded-lg px-4 py-3 text-white placeholder-gray-600 transition-all outline-none text-xs shadow-inner`,placeholder:`e.g. C:\\Users\\username\\dev`,value:n.devDir,onChange:e=>r({...n,devDir:e.target.value})}),d&&(0,D.jsx)(`div`,{className:`text-[10px] text-gray-500 mt-1.5 flex justify-between items-center`,children:(0,D.jsxs)(`span`,{children:[`Suggested: `,(0,D.jsx)(`code`,{children:d.devDir})]})})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`label`,{className:`block text-[11px] font-semibold text-gray-400 uppercase tracking-wider mb-2`,children:`Workspaces Directory`}),(0,D.jsx)(`input`,{type:`text`,className:`w-full bg-[#111827] border border-gray-800 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 rounded-lg px-4 py-3 text-white placeholder-gray-600 transition-all outline-none text-xs shadow-inner`,placeholder:`e.g. C:\\Users\\username\\dev\\workspaces`,value:n.workspacesDir,onChange:e=>r({...n,workspacesDir:e.target.value})}),d&&(0,D.jsx)(`div`,{className:`text-[10px] text-gray-500 mt-1.5 flex justify-between items-center`,children:(0,D.jsxs)(`span`,{children:[`Suggested: `,(0,D.jsx)(`code`,{children:d.workspacesDir})]})})]}),(0,D.jsxs)(`div`,{className:`flex gap-2 pt-2`,children:[(0,D.jsx)(`button`,{type:`button`,className:`flex-1 inline-flex items-center justify-center gap-1.5 px-3 py-2 bg-gray-900 border border-gray-800 hover:bg-gray-800 hover:border-gray-700 rounded-lg text-xs font-semibold transition-all cursor-pointer`,onClick:()=>{d&&r({...n,devDir:d.devDir,workspacesDir:d.workspacesDir})},children:`Suggest Defaults`}),(0,D.jsx)(`button`,{type:`button`,className:`px-3 py-2 bg-gray-900 border border-gray-800 hover:bg-gray-800 hover:border-rose-900/60 hover:text-rose-400 rounded-lg text-xs font-semibold transition-all cursor-pointer`,onClick:()=>{r({...n,devDir:``,workspacesDir:``})},children:`Clear`})]}),(0,D.jsx)(`div`,{className:`pt-4`,children:(0,D.jsxs)(`button`,{type:`button`,className:`w-full inline-flex items-center justify-center gap-2 px-5 py-3 rounded-lg text-sm font-semibold bg-gradient-to-r from-indigo-500 to-indigo-600 hover:from-indigo-600 hover:to-indigo-700 text-white shadow-lg shadow-indigo-500/20 hover:-translate-y-0.5 active:translate-y-0 disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:translate-y-0 transition-all cursor-pointer`,disabled:!e,onClick:()=>qt(n),children:[`Save & Get Started `,(0,D.jsx)(ee,{size:16})]})})]})]})})]})})}return(0,D.jsxs)(`div`,{className:`flex min-h-screen bg-[#060813] bg-gradient-to-br from-[#0c0f24] via-[#060813] to-[#04050a] text-gray-100 font-sans`,children:[(0,D.jsxs)(`aside`,{className:`w-64 bg-[#090d1a]/85 border-r border-gray-800/80 flex flex-col p-6 shrink-0 shadow-2xl backdrop-blur-md`,children:[(0,D.jsxs)(`div`,{className:`flex items-center gap-3 mb-10 px-2`,children:[(0,D.jsx)(`div`,{className:`w-9 h-9 bg-gradient-to-tr from-cyan-400 via-indigo-500 to-purple-600 rounded-lg flex items-center justify-center font-bold text-white shadow-lg shadow-indigo-500/25 text-lg`,children:`N`}),(0,D.jsx)(`span`,{className:`text-xl font-bold tracking-tight bg-gradient-to-r from-white via-gray-200 to-gray-400 bg-clip-text text-transparent`,children:`NexusFlow`})]}),(0,D.jsx)(`nav`,{className:`flex-1`,children:(0,D.jsxs)(`ul`,{className:`flex flex-col gap-2`,children:[(0,D.jsx)(`li`,{children:(0,D.jsxs)(`button`,{className:`w-full flex items-center gap-3 p-3 rounded-lg text-sm font-semibold transition-all cursor-pointer border ${e===`guide`?`text-white bg-indigo-500/10 border-indigo-500/20 shadow-sm`:`text-gray-400 border-transparent hover:text-white hover:bg-gray-800/40`}`,onClick:()=>{t(`guide`)},children:[(0,D.jsx)(fe,{size:18,className:`text-indigo-400`}),`Getting Started`]})}),(0,D.jsx)(`li`,{children:(0,D.jsxs)(`button`,{className:`w-full flex items-center gap-3 p-3 rounded-lg text-sm font-semibold transition-all cursor-pointer border ${e===`create`?`text-white bg-indigo-500/10 border-indigo-500/20 shadow-sm`:`text-gray-400 border-transparent hover:text-white hover:bg-gray-800/40`}`,onClick:()=>{t(`create`),be(0),Pe(null),Se(``),we(``),Ee([])},children:[(0,D.jsx)(ne,{size:18,className:`text-indigo-400`}),`New Workspace`]})}),(0,D.jsx)(`li`,{children:(0,D.jsxs)(`button`,{className:`w-full flex items-center gap-3 p-3 rounded-lg text-sm font-semibold transition-all cursor-pointer border ${e===`workspaces`?`text-white bg-indigo-500/10 border-indigo-500/20 shadow-sm`:`text-gray-400 border-transparent hover:text-white hover:bg-gray-800/40`}`,onClick:()=>{t(`workspaces`),Zt()},children:[(0,D.jsx)(ae,{size:18,className:`text-indigo-400`}),`Active Workspaces`]})}),(0,D.jsx)(`li`,{children:(0,D.jsxs)(`button`,{className:`w-full flex items-center gap-3 p-3 rounded-lg text-sm font-semibold transition-all cursor-pointer border ${e===`settings`?`text-white bg-indigo-500/10 border-indigo-500/20 shadow-sm`:`text-gray-400 border-transparent hover:text-white hover:bg-gray-800/40`}`,onClick:()=>{t(`settings`),Kt()},children:[(0,D.jsx)(T,{size:18,className:`text-indigo-400`}),`Settings`]})})]})}),(0,D.jsx)(`div`,{className:`pt-6 border-t border-gray-800/60 text-[11px] text-gray-500 text-center`,children:`NexusFlow Engine v0.1.0`})]}),(0,D.jsx)(`main`,{className:`flex-1 p-10 overflow-y-auto max-w-7xl w-full mx-auto`,children:i?(0,D.jsxs)(`div`,{className:`flex flex-col items-center justify-center py-40 gap-4 text-gray-400`,children:[(0,D.jsx)(C,{className:`animate-spin text-indigo-400`,size:32}),(0,D.jsx)(`span`,{className:`text-sm font-medium`,children:`Loading config settings...`})]}):(0,D.jsxs)(D.Fragment,{children:[e===`guide`&&n&&(0,D.jsxs)(`div`,{className:`max-w-4xl mx-auto`,children:[(0,D.jsxs)(`header`,{className:`mb-10`,children:[(0,D.jsxs)(`div`,{className:`inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-indigo-500/10 text-indigo-400 border border-indigo-500/20 text-xs font-semibold uppercase tracking-wider mb-4`,children:[(0,D.jsx)(fe,{size:12,className:`text-cyan-400`}),` Getting Started Guide`]}),(0,D.jsx)(`h1`,{className:`text-3xl font-extrabold tracking-tight text-white mb-2 bg-gradient-to-r from-white via-gray-200 to-indigo-300 bg-clip-text text-transparent`,children:`Welcome to NexusFlow`}),(0,D.jsx)(`p`,{className:`text-sm text-gray-400`,children:`NexusFlow orchestrates multi-repository developer environments. It combines isolated Git worktrees, automatic code analyzer sweeps, and background process running into a single dashboard.`})]}),(0,D.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-8 mb-10`,children:[(0,D.jsxs)(`div`,{className:`bg-[#111827]/40 border border-gray-800/80 rounded-xl p-6 shadow-xl backdrop-blur-sm space-y-6`,children:[(0,D.jsx)(`h2`,{className:`text-lg font-bold text-white mb-4`,children:`NexusFlow Workflows`}),(0,D.jsxs)(`div`,{className:`flex gap-4`,children:[(0,D.jsx)(`div`,{className:`w-8 h-8 rounded-full bg-indigo-500/10 border border-indigo-500/20 text-indigo-400 flex items-center justify-center font-bold text-sm shrink-0`,children:`1`}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`h3`,{className:`text-sm font-semibold text-white`,children:`Configure Folders`}),(0,D.jsxs)(`p`,{className:`text-xs text-gray-400 mt-1`,children:[`Specify your Development folder (where repositories live) and Workspaces folder. These are currently set to:`,(0,D.jsx)(`code`,{className:`block mt-1 text-[10px] text-indigo-300 break-all`,children:n.devDir||`Not Configured`})]})]})]}),(0,D.jsxs)(`div`,{className:`flex gap-4`,children:[(0,D.jsx)(`div`,{className:`w-8 h-8 rounded-full bg-indigo-500/10 border border-indigo-500/20 text-indigo-400 flex items-center justify-center font-bold text-sm shrink-0`,children:`2`}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`h3`,{className:`text-sm font-semibold text-white`,children:`Build Workspaces`}),(0,D.jsx)(`p`,{className:`text-xs text-gray-400 mt-1`,children:`Choose repositories and feature branch. NexusFlow checks out dependencies under a unified workspace directory using Git Worktrees, keeping original projects clean.`})]})]}),(0,D.jsxs)(`div`,{className:`flex gap-4`,children:[(0,D.jsx)(`div`,{className:`w-8 h-8 rounded-full bg-indigo-500/10 border border-indigo-500/20 text-indigo-400 flex items-center justify-center font-bold text-sm shrink-0`,children:`3`}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`h3`,{className:`text-sm font-semibold text-white`,children:`Align AI Context`}),(0,D.jsxs)(`p`,{className:`text-xs text-gray-400 mt-1`,children:[`NexusFlow writes files like `,(0,D.jsx)(`code`,{children:`CLAUDE.md`}),`, `,(0,D.jsx)(`code`,{children:`.cursorrules`}),`, `,(0,D.jsx)(`code`,{children:`AGENTS.md`}),` prompting the LLM to inspect project relations and list key assumptions and questions before coding.`]})]})]})]}),(0,D.jsxs)(`div`,{className:`bg-[#111827]/40 border border-gray-800/80 rounded-xl p-6 shadow-xl backdrop-blur-sm flex flex-col justify-between`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`h2`,{className:`text-lg font-bold text-white mb-4`,children:`Current Configuration`}),(0,D.jsxs)(`div`,{className:`space-y-3 text-xs`,children:[(0,D.jsxs)(`div`,{className:`flex justify-between py-1.5 border-b border-gray-800/60`,children:[(0,D.jsx)(`span`,{className:`text-gray-500`,children:`Dev Folder:`}),(0,D.jsx)(`span`,{className:`text-gray-300 font-mono text-[10px] truncate max-w-[200px]`,children:n.devDir})]}),(0,D.jsxs)(`div`,{className:`flex justify-between py-1.5 border-b border-gray-800/60`,children:[(0,D.jsx)(`span`,{className:`text-gray-500`,children:`Workspaces Folder:`}),(0,D.jsx)(`span`,{className:`text-gray-300 font-mono text-[10px] truncate max-w-[200px]`,children:n.workspacesDir})]}),(0,D.jsxs)(`div`,{className:`flex justify-between py-1.5 border-b border-gray-800/60`,children:[(0,D.jsx)(`span`,{className:`text-gray-500`,children:`Preferred AI:`}),(0,D.jsx)(`span`,{className:`text-indigo-400 font-semibold uppercase`,children:n.defaultAssistant||`None`})]}),(0,D.jsxs)(`div`,{className:`flex justify-between py-1.5`,children:[(0,D.jsx)(`span`,{className:`text-gray-500`,children:`Scan Depth:`}),(0,D.jsxs)(`span`,{className:`text-gray-300 font-semibold`,children:[n.scanDepth,` levels`]})]})]})]}),(0,D.jsxs)(`div`,{className:`pt-6 border-t border-gray-800/60 flex flex-col gap-2`,children:[(0,D.jsxs)(`button`,{className:`w-full inline-flex items-center justify-center gap-2 px-4 py-2.5 rounded-lg text-xs font-semibold bg-gradient-to-r from-indigo-500 to-indigo-600 hover:from-indigo-600 hover:to-indigo-700 text-white shadow-md shadow-indigo-500/10 hover:-translate-y-0.5 active:translate-y-0 transition-all cursor-pointer`,onClick:()=>t(`create`),children:[(0,D.jsx)(ne,{size:14}),` Create a Workspace`]}),(0,D.jsxs)(`button`,{className:`w-full inline-flex items-center justify-center gap-2 px-4 py-2.5 rounded-lg text-xs font-semibold bg-gray-900 border border-gray-800 hover:bg-gray-800 hover:border-gray-700 text-white transition-all cursor-pointer`,onClick:()=>t(`settings`),children:[(0,D.jsx)(T,{size:14,className:`text-gray-500`}),` Modify Settings`]})]})]})]}),(0,D.jsxs)(`div`,{className:`bg-[#111827]/20 border border-gray-800/80 rounded-xl p-6 shadow-md`,children:[(0,D.jsx)(`h4`,{className:`text-xs font-semibold uppercase tracking-wider text-gray-500 mb-3`,children:`Industry Comparison`}),(0,D.jsx)(`div`,{className:`overflow-x-auto`,children:(0,D.jsxs)(`table`,{className:`w-full text-[10px] text-gray-400 text-left border-collapse`,children:[(0,D.jsx)(`thead`,{children:(0,D.jsxs)(`tr`,{className:`border-b border-gray-800 text-gray-500`,children:[(0,D.jsx)(`th`,{className:`py-2 pr-4 font-semibold`,children:`Orchestrator`}),(0,D.jsx)(`th`,{className:`py-2 px-4 font-semibold`,children:`Multi-Repo`}),(0,D.jsx)(`th`,{className:`py-2 px-4 font-semibold`,children:`AI Rules Integration`}),(0,D.jsx)(`th`,{className:`py-2 pl-4 font-semibold`,children:`Weight`})]})}),(0,D.jsxs)(`tbody`,{children:[(0,D.jsxs)(`tr`,{className:`border-b border-gray-800/40`,children:[(0,D.jsx)(`td`,{className:`py-2 pr-4 font-semibold text-white`,children:`Docker Compose`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`Yes (Containers only)`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`No`}),(0,D.jsx)(`td`,{className:`py-2 pl-4`,children:`Medium (VM overhead)`})]}),(0,D.jsxs)(`tr`,{className:`border-b border-gray-800/40`,children:[(0,D.jsx)(`td`,{className:`py-2 pr-4 font-semibold text-white`,children:`Lerna / Turborepo`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`Monorepo only`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`No`}),(0,D.jsx)(`td`,{className:`py-2 pl-4`,children:`Light`})]}),(0,D.jsxs)(`tr`,{className:`border-b border-gray-800/40`,children:[(0,D.jsx)(`td`,{className:`py-2 pr-4 font-semibold text-white`,children:`DevPod / Gitpod`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`Yes (Complex config)`}),(0,D.jsx)(`td`,{className:`py-2 px-4`,children:`No`}),(0,D.jsx)(`td`,{className:`py-2 pl-4`,children:`Heavy (Full virtual VM)`})]}),(0,D.jsxs)(`tr`,{children:[(0,D.jsx)(`td`,{className:`py-2 pr-4 font-semibold text-indigo-400`,children:`NexusFlow`}),(0,D.jsx)(`td`,{className:`py-2 px-4 text-indigo-300`,children:`Yes (Native Worktrees)`}),(0,D.jsx)(`td`,{className:`py-2 px-4 text-indigo-300`,children:`Yes (CLAUDE.md/MDC rules)`}),(0,D.jsx)(`td`,{className:`py-2 pl-4 text-indigo-300`,children:`Extremely Light (Native processes)`})]})]})]})})]})]}),e===`create`&&(0,D.jsxs)(`div`,{className:`max-w-4xl mx-auto`,children:[(0,D.jsxs)(`header`,{className:`mb-10`,children:[(0,D.jsx)(`h1`,{className:`text-3xl font-extrabold tracking-tight text-white mb-2`,children:`New Feature Workspace`}),(0,D.jsx)(`p`,{className:`text-sm text-gray-400`,children:`Set up unified git worktrees, scan tech stacks, and write contextual configurations for your AI assistant.`})]}),(0,D.jsxs)(`div`,{className:`flex justify-between items-center max-w-xl mx-auto mb-14 relative px-4`,children:[(0,D.jsx)(`div`,{className:`absolute top-4 left-6 right-6 h-[2px] bg-gray-800 -z-10`}),(0,D.jsx)(`div`,{className:`absolute top-4 left-6 h-[2px] bg-gradient-to-r from-cyan-400 to-indigo-500 -z-10 transition-all duration-300`,style:{width:`${k/3*92}%`}}),(0,D.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,D.jsx)(`div`,{className:`w-8 h-8 rounded-full border-2 flex items-center justify-center font-bold text-xs transition-all ${k>0?`bg-emerald-500 border-emerald-500 text-white`:k===0?`border-indigo-500 bg-[#0b0f19] text-white shadow-lg shadow-indigo-500/20`:`border-gray-800 bg-gray-900 text-gray-500`}`,children:k>0?(0,D.jsx)(S,{size:14}):`1`}),(0,D.jsx)(`span`,{className:`text-[11px] font-semibold tracking-wide uppercase ${k===0?`text-white`:`text-gray-500`}`,children:`Details`})]}),(0,D.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,D.jsx)(`div`,{className:`w-8 h-8 rounded-full border-2 flex items-center justify-center font-bold text-xs transition-all ${k>1?`bg-emerald-500 border-emerald-500 text-white`:k===1?`border-indigo-500 bg-[#0b0f19] text-white shadow-lg shadow-indigo-500/20`:`border-gray-800 bg-gray-900 text-gray-500`}`,children:k>1?(0,D.jsx)(S,{size:14}):`2`}),(0,D.jsx)(`span`,{className:`text-[11px] font-semibold tracking-wide uppercase ${k===1?`text-white`:`text-gray-500`}`,children:`Repos`})]}),(0,D.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,D.jsx)(`div`,{className:`w-8 h-8 rounded-full border-2 flex items-center justify-center font-bold text-xs transition-all ${k>2?`bg-emerald-500 border-emerald-500 text-white`:k===2?`border-indigo-500 bg-[#0b0f19] text-white shadow-lg shadow-indigo-500/20`:`border-gray-800 bg-gray-900 text-gray-500`}`,children:k>2?(0,D.jsx)(S,{size:14}):`3`}),(0,D.jsx)(`span`,{className:`text-[11px] font-semibold tracking-wide uppercase ${k===2?`text-white`:`text-gray-500`}`,children:`Assistant`})]}),(0,D.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,D.jsx)(`div`,{className:`w-8 h-8 rounded-full border-2 flex items-center justify-center font-bold text-xs transition-all ${k===3?`border-emerald-500 bg-[#0b0f19] text-emerald-400 shadow-lg shadow-emerald-500/20`:`border-gray-800 bg-gray-900 text-gray-500`}`,children:`4`}),(0,D.jsx)(`span`,{className:`text-[11px] font-semibold tracking-wide uppercase ${k===3?`text-emerald-400`:`text-gray-500`}`,children:`Complete`})]})]}),k===0&&(0,D.jsxs)(`div`,{className:`bg-[#111827]/40 border border-gray-800/80 rounded-xl p-8 shadow-xl backdrop-blur-sm`,children:[(0,D.jsxs)(`div`,{className:`mb-6`,children:[(0,D.jsx)(`label`,{className:`block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2`,children:`Feature Branch Name`}),(0,D.jsx)(`input`,{type:`text`,className:`w-full bg-[#111827] border border-gray-800 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 rounded-lg px-4 py-3 text-white placeholder-gray-600 transition-all outline-none text-sm shadow-inner`,placeholder:`e.g., feature/oauth-authentication-flow`,value:xe,onChange:e=>Se(e.target.value)})]}),(0,D.jsxs)(`div`,{className:`mb-8`,children:[(0,D.jsx)(`label`,{className:`block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2`,children:`Feature Purpose & Context`}),(0,D.jsx)(`textarea`,{className:`w-full bg-[#111827] border border-gray-800 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 rounded-lg px-4 py-3 text-white placeholder-gray-600 transition-all outline-none text-sm min-h-[140px] resize-y shadow-inner`,placeholder:`Describe what you want to build. This helps AI assistants analyze context and produce matching plans.`,value:Ce,onChange:e=>we(e.target.value)})]}),(0,D.jsx)(`div`,{className:`flex justify-end`,children:(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-2 px-5 py-3 rounded-lg text-sm font-semibold bg-gradient-to-r from-indigo-500 to-indigo-600 hover:from-indigo-600 hover:to-indigo-700 text-white shadow-md shadow-indigo-500/10 transition-all cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed hover:-translate-y-0.5 active:translate-y-0`,disabled:!xe||!Ce,onClick:()=>be(1),children:[`Next Step `,(0,D.jsx)(ee,{size:16})]})})]}),k===1&&(0,D.jsxs)(`div`,{className:`bg-[#111827]/40 border border-gray-800/80 rounded-xl p-8 shadow-xl backdrop-blur-sm`,children:[(0,D.jsxs)(`div`,{className:`flex justify-between items-center mb-6`,children:[(0,D.jsx)(`label`,{className:`block text-xs font-semibold text-gray-400 uppercase tracking-wider`,children:`Select Repositories`}),(0,D.jsxs)(`div`,{className:`relative w-64`,children:[(0,D.jsx)(w,{size:14,className:`absolute left-3 top-3 text-gray-500`}),(0,D.jsx)(`input`,{type:`text`,className:`w-full bg-[#111827] border border-gray-800 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 rounded-lg pl-9 pr-4 py-2 text-white placeholder-gray-600 transition-all outline-none text-xs`,placeholder:`Search repo name...`,value:_,onChange:e=>v(e.target.value)})]})]}),h?(0,D.jsxs)(`div`,{className:`flex flex-col items-center py-20 gap-3 text-gray-500`,children:[(0,D.jsx)(C,{className:`animate-spin text-indigo-400`,size:24}),(0,D.jsx)(`span`,{className:`text-xs`,children:`Scanning local projects directory...`})]}):(0,D.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-4 max-h-[380px] overflow-y-auto p-2 border border-gray-800/60 rounded-lg bg-gray-950/20 mb-8`,children:_n.map(e=>{let t=Te.some(t=>t.path===e.path);return(0,D.jsxs)(`div`,{className:`bg-[#111827]/60 border rounded-xl p-4 flex items-start gap-3 cursor-pointer hover:bg-gray-800/20 hover:border-gray-700 transition-all ${t?`border-indigo-500 bg-indigo-500/5`:`border-gray-800/80`}`,onClick:()=>ln(e),children:[(0,D.jsx)(`input`,{type:`checkbox`,className:`mt-1 h-4 w-4 accent-indigo-500 rounded cursor-pointer`,checked:t,readOnly:!0}),(0,D.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,D.jsx)(`div`,{className:`text-sm font-semibold text-white truncate`,children:e.name}),(0,D.jsx)(`div`,{className:`text-[10px] text-gray-500 truncate mt-1`,children:e.path})]}),(0,D.jsx)(`span`,{className:`text-[9px] px-2 py-0.5 rounded bg-gray-800 text-gray-400 font-semibold uppercase`,children:e.defaultBranch})]},e.path)})}),(0,D.jsxs)(`div`,{className:`flex justify-between`,children:[(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-2 px-5 py-3 rounded-lg text-sm font-semibold bg-gray-900 border border-gray-800 hover:bg-gray-800 hover:border-gray-700 text-white transition-all cursor-pointer`,onClick:()=>be(0),children:[(0,D.jsx)(x,{size:16}),` Back`]}),(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-2 px-5 py-3 rounded-lg text-sm font-semibold bg-gradient-to-r from-indigo-500 to-indigo-600 hover:from-indigo-600 hover:to-indigo-700 text-white shadow-md shadow-indigo-500/10 transition-all cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed hover:-translate-y-0.5 active:translate-y-0`,disabled:Te.length===0,onClick:()=>be(2),children:[`Next Step `,(0,D.jsx)(ee,{size:16})]})]})]}),k===2&&(0,D.jsxs)(`div`,{className:`bg-[#111827]/40 border border-gray-800/80 rounded-xl p-8 shadow-xl backdrop-blur-sm`,children:[(0,D.jsxs)(`div`,{className:`mb-8`,children:[(0,D.jsx)(`label`,{className:`block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2`,children:`Target AI Assistant(s)`}),(0,D.jsx)(`p`,{className:`text-xs text-gray-500 mb-4`,children:`We generate context configurations matching the specifications of each checked assistant.`}),(0,D.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-4`,children:y.map(e=>(0,D.jsxs)(`div`,{className:`bg-[#111827]/60 border rounded-xl p-4 flex flex-col gap-3 cursor-pointer hover:border-gray-700 transition-all ${De.includes(e.name)?`border-indigo-500 bg-indigo-500/5`:`border-gray-800/80`}`,onClick:()=>un(e.name),children:[(0,D.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,D.jsx)(`span`,{className:`text-sm font-bold text-white`,children:e.displayName}),(0,D.jsx)(`span`,{className:`text-[9px] px-2 py-0.5 rounded font-semibold uppercase ${e.detected?`bg-emerald-500/10 text-emerald-400`:`bg-gray-800 text-gray-500`}`,children:e.detected?`Installed`:`Missing`})]}),(0,D.jsxs)(`p`,{className:`text-[11px] text-gray-500`,children:[e.name===`claude`&&`CLAUDE.md guidelines`,e.name===`antigravity`&&`CLAUDE.md guidelines (harness)`,e.name===`codex`&&`AGENTS.md config structure`,e.name===`copilot`&&`GitHub Copilot Workspace configs`,e.name===`cursor`&&`Cursor MDC rules and instructions`]})]},e.name))})]}),(0,D.jsxs)(`div`,{className:`mb-8`,children:[(0,D.jsx)(`label`,{className:`block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2`,children:`Open Workspace In`}),(0,D.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4`,children:[_e.map(e=>(0,D.jsxs)(`div`,{className:`bg-[#111827]/60 border rounded-xl p-4 flex flex-col cursor-pointer hover:border-gray-700 transition-all ${ke?.command===e.command?`border-indigo-500 bg-indigo-500/5`:`border-gray-800/80`}`,onClick:()=>Ae(e),children:[(0,D.jsx)(`span`,{className:`text-sm font-bold text-white`,children:e.name}),(0,D.jsx)(`span`,{className:`text-[9px] mt-2 w-max px-2 py-0.5 rounded font-semibold uppercase ${e.detected?`bg-emerald-500/10 text-emerald-400`:`bg-gray-800 text-gray-500`}`,children:e.detected?`Detected`:`Missing`})]},e.command)),(0,D.jsxs)(`div`,{className:`bg-[#111827]/60 border rounded-xl p-4 flex flex-col cursor-pointer hover:border-gray-700 transition-all ${ke===null?`border-indigo-500 bg-indigo-500/5`:`border-gray-800/80`}`,onClick:()=>Ae(null),children:[(0,D.jsx)(`span`,{className:`text-sm font-bold text-white`,children:`None`}),(0,D.jsx)(`span`,{className:`text-[9px] mt-2 w-max px-2 py-0.5 rounded font-semibold uppercase bg-gray-800 text-gray-500`,children:`Skip opening`})]})]})]}),(0,D.jsxs)(`div`,{className:`mb-8 border border-gray-800/80 rounded-xl p-5 bg-gray-950/20`,children:[(0,D.jsxs)(`h4`,{className:`text-xs font-bold text-gray-400 uppercase tracking-wider mb-4 flex items-center gap-2`,children:[(0,D.jsx)(he,{size:14,className:`text-indigo-400`}),` Advanced Session Resumption Settings`]}),(0,D.jsx)(`p`,{className:`text-[11px] text-gray-500 mb-4`,children:`Configure setup and verification test commands. AI assistants and the dashboard use these to resume your sessions green.`}),(0,D.jsxs)(`div`,{className:`space-y-4`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`label`,{className:`block text-[11px] font-semibold text-gray-400 mb-1.5`,children:`Verification / Test Command`}),(0,D.jsx)(`input`,{type:`text`,className:`w-full bg-[#030408] border border-gray-800 focus:border-indigo-500 rounded-lg px-3 py-2 text-xs font-mono text-white outline-none transition-all`,placeholder:`e.g., npm run test or vitest run`,value:Fe,onChange:e=>Ie(e.target.value)})]}),(0,D.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-4`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`label`,{className:`block text-[11px] font-semibold text-gray-400 mb-1.5`,children:`Mock / Database Command (Optional)`}),(0,D.jsx)(`input`,{type:`text`,className:`w-full bg-[#030408] border border-gray-800 focus:border-indigo-500 rounded-lg px-3 py-2 text-xs font-mono text-white outline-none transition-all`,placeholder:`e.g., docker compose up -d redis`,value:Le,onChange:e=>Re(e.target.value)})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`label`,{className:`block text-[11px] font-semibold text-gray-400 mb-1.5`,children:`Start / Run Command (Optional)`}),(0,D.jsx)(`input`,{type:`text`,className:`w-full bg-[#030408] border border-gray-800 focus:border-indigo-500 rounded-lg px-3 py-2 text-xs font-mono text-white outline-none transition-all`,placeholder:`e.g., npm run start:dev`,value:ze,onChange:e=>Be(e.target.value)})]})]})]})]}),(0,D.jsxs)(`div`,{className:`flex justify-between`,children:[(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-2 px-5 py-3 rounded-lg text-sm font-semibold bg-gray-900 border border-gray-800 hover:bg-gray-800 hover:border-gray-700 text-white transition-all cursor-pointer`,onClick:()=>be(1),children:[(0,D.jsx)(x,{size:16}),` Back`]}),(0,D.jsx)(`button`,{className:`inline-flex items-center justify-center gap-2 px-6 py-3 rounded-lg text-sm font-semibold bg-gradient-to-r from-indigo-500 to-indigo-600 hover:from-indigo-600 hover:to-indigo-700 text-white shadow-lg shadow-indigo-500/20 transition-all cursor-pointer hover:-translate-y-0.5 active:translate-y-0 disabled:opacity-40 disabled:cursor-not-allowed`,disabled:je,onClick:dn,children:je?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(C,{className:`animate-spin`,size:14}),` Building...`]}):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(fe,{size:14}),` Build Workspace`]})})]})]}),k===3&&Ne&&(0,D.jsxs)(`div`,{className:`bg-[#111827]/40 border border-gray-800/80 rounded-xl p-10 text-center shadow-xl backdrop-blur-sm`,children:[(0,D.jsx)(`div`,{className:`inline-flex items-center justify-center p-3 rounded-full bg-emerald-500/10 border border-emerald-500/20 text-emerald-400 mb-6`,children:(0,D.jsx)(S,{size:36})}),(0,D.jsx)(`h2`,{className:`text-2xl font-bold text-white mb-2`,children:`Workspace Generated!`}),(0,D.jsxs)(`p`,{className:`text-gray-400 text-sm max-w-lg mx-auto mb-8`,children:[`We spun up git worktrees for your branch `,(0,D.jsx)(`code`,{children:xe}),`, analyzed the code architectures, and generated your AI assistant instructions.`]}),(0,D.jsxs)(`div`,{className:`flex flex-col gap-3 bg-gray-950/40 border border-gray-800/60 rounded-xl p-5 w-fit min-w-[360px] mx-auto text-left text-xs mb-8`,children:[(0,D.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,D.jsx)(`span`,{className:`text-gray-500 font-medium`,children:`Branch name:`}),(0,D.jsx)(`code`,{className:`text-indigo-400 font-bold`,children:xe})]}),(0,D.jsxs)(`div`,{className:`flex justify-between items-center gap-4`,children:[(0,D.jsx)(`span`,{className:`text-gray-500 font-medium`,children:`Location:`}),(0,D.jsx)(`code`,{className:`text-gray-400 font-mono text-[10px] break-all`,children:Ne.path})]})]}),(0,D.jsxs)(`div`,{className:`flex justify-center gap-4`,children:[(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-2 px-5 py-3 rounded-lg text-sm font-semibold bg-gray-900 border border-gray-800 hover:bg-gray-800 hover:border-gray-700 text-white transition-all cursor-pointer`,onClick:()=>{t(`workspaces`),Zt(),qe(xe)},children:[(0,D.jsx)(he,{size:14,className:`text-cyan-400`}),` Manage Services`]}),(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-2 px-5 py-3 rounded-lg text-sm font-semibold bg-gradient-to-r from-indigo-500 to-indigo-600 hover:from-indigo-600 hover:to-indigo-700 text-white shadow-md shadow-indigo-500/10 transition-all cursor-pointer hover:-translate-y-0.5 active:translate-y-0`,onClick:()=>hn(Ne.path),children:[(0,D.jsx)(oe,{size:14}),` Open Editor`]})]})]})]}),e===`workspaces`&&(0,D.jsxs)(`div`,{className:`max-w-5xl mx-auto`,children:[(0,D.jsxs)(`header`,{className:`flex justify-between items-center mb-8`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`h1`,{className:`text-3xl font-extrabold tracking-tight text-white mb-2`,children:`Active Workspaces`}),(0,D.jsx)(`p`,{className:`text-sm text-gray-400`,children:`Monitor running servers, libraries, and processes on your development branches.`})]}),(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-2 px-4 py-2 bg-gray-900 border border-gray-800 hover:bg-gray-800 hover:border-gray-700 rounded-lg text-xs font-semibold transition-all cursor-pointer`,onClick:Zt,disabled:Ge,children:[(0,D.jsx)(C,{size:14,className:Ge?`animate-spin text-indigo-400`:``}),` Refresh`]})]}),Ge?(0,D.jsxs)(`div`,{className:`flex flex-col items-center py-40 gap-4 text-gray-400`,children:[(0,D.jsx)(C,{className:`animate-spin text-indigo-400`,size:32}),(0,D.jsx)(`span`,{className:`text-sm`,children:`Fetching workspace details...`})]}):Ue.length===0?(0,D.jsxs)(`div`,{className:`flex flex-col items-center justify-center py-24 bg-[#111827]/20 border border-gray-800/80 rounded-xl text-center`,children:[(0,D.jsx)(ae,{size:44,className:`text-gray-600 mb-4`}),(0,D.jsx)(`h3`,{className:`text-lg font-bold text-white`,children:`No Active Workspaces`}),(0,D.jsx)(`p`,{className:`text-xs text-gray-500 max-w-sm mt-1`,children:`No feature workspaces were detected in your development folder. Create a workspace to start.`})]}):(0,D.jsx)(`div`,{className:`flex flex-col gap-6`,children:Ue.map(e=>{let t=A===e.branchName;return(0,D.jsxs)(`div`,{className:`bg-[#111827]/40 border border-gray-800/80 rounded-xl p-6 shadow-md`,children:[(0,D.jsxs)(`div`,{className:`flex justify-between items-start gap-4 mb-4`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`h3`,{className:`text-lg font-bold text-white hover:text-indigo-400 transition-colors`,children:e.branchName}),(0,D.jsxs)(`div`,{className:`flex items-center gap-3 text-xs text-gray-500 mt-1`,children:[(0,D.jsxs)(`span`,{children:[`Created: `,new Date(e.createdAt).toLocaleDateString()]}),(0,D.jsx)(`span`,{className:`h-1 w-1 rounded-full bg-gray-700`}),(0,D.jsxs)(`span`,{children:[e.repos.length,` repos`]})]})]}),(0,D.jsxs)(`div`,{className:`flex gap-2`,children:[(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-3.5 py-2 bg-emerald-600 hover:bg-emerald-700 text-white rounded-lg text-xs font-semibold transition-all cursor-pointer shadow-md shadow-emerald-600/10 disabled:opacity-40 disabled:cursor-not-allowed`,onClick:()=>mn(e),disabled:Ve===e.branchName,children:[(0,D.jsx)(ue,{size:12,className:Ve===e.branchName?`animate-spin`:``}),Ve===e.branchName?`Resuming...`:`Resume Session`]}),(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-3.5 py-2 bg-gray-900 border border-gray-800 hover:bg-gray-800 hover:border-gray-700 rounded-lg text-xs font-semibold transition-all cursor-pointer`,onClick:()=>gn(e),children:[(0,D.jsx)(fe,{size:12,className:`text-cyan-400`}),` Copy Prompt`]}),(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-3.5 py-2 bg-gray-900 border border-gray-800 hover:bg-gray-800 hover:border-gray-700 rounded-lg text-xs font-semibold transition-all cursor-pointer`,onClick:()=>hn(e.workspacePath),children:[(0,D.jsx)(ie,{size:12}),` Open`]}),(0,D.jsx)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-3.5 py-2 bg-indigo-500 hover:bg-indigo-600 text-white rounded-lg text-xs font-semibold transition-all cursor-pointer shadow-md shadow-indigo-500/10`,onClick:()=>{qe(t?null:e.branchName)},children:t?`Hide Runner`:`Orchestrate`})]})]}),(0,D.jsx)(`p`,{className:`text-xs text-gray-400 bg-gray-950/40 border-l-2 border-indigo-500 rounded-r-lg px-4 py-3 mb-4 font-medium italic`,children:e.description}),(0,D.jsx)(`div`,{className:`flex flex-wrap gap-2 mb-4`,children:e.repos.map(e=>(0,D.jsx)(`span`,{className:`text-[10px] px-2.5 py-1 bg-gray-900 border border-gray-800 text-gray-300 rounded-md font-semibold`,children:e.split(/[\\/]/).pop()},e))}),t&&(0,D.jsxs)(`div`,{className:`mt-6 pt-6 border-t border-gray-800/80`,children:[(0,D.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-6 mb-6`,children:[(0,D.jsxs)(`div`,{className:`bg-gray-950/40 border border-gray-800/60 rounded-xl p-4 flex flex-col justify-between`,children:[(0,D.jsxs)(`div`,{className:`flex justify-between items-center text-xs font-semibold text-gray-400 mb-2`,children:[(0,D.jsx)(`span`,{children:`Simulated CPU Load`}),(0,D.jsx)(`span`,{className:j.length>0?`text-emerald-400`:`text-gray-500`,children:j.length>0?`4.8%`:`0%`})]}),(0,D.jsx)(`div`,{className:`w-full bg-gray-800 rounded-full h-1.5 mb-2 overflow-hidden`,children:(0,D.jsx)(`div`,{className:`h-1.5 rounded-full transition-all duration-500 ${j.length>0?`bg-gradient-to-r from-emerald-500 to-teal-400 animate-pulse`:`bg-gray-700`}`,style:{width:j.length>0?`48%`:`0%`}})}),(0,D.jsx)(`span`,{className:`text-[10px] text-gray-500`,children:`Fluctuating active worker processes`})]}),(0,D.jsxs)(`div`,{className:`bg-gray-950/40 border border-gray-800/60 rounded-xl p-4 flex flex-col justify-between`,children:[(0,D.jsxs)(`div`,{className:`flex justify-between items-center text-xs font-semibold text-gray-400 mb-2`,children:[(0,D.jsx)(`span`,{children:`Simulated Memory Allocation`}),(0,D.jsx)(`span`,{className:j.length>0?`text-cyan-400`:`text-gray-500`,children:j.length>0?`192 MB`:`0 MB`})]}),(0,D.jsx)(`div`,{className:`w-full bg-gray-800 rounded-full h-1.5 mb-2 overflow-hidden`,children:(0,D.jsx)(`div`,{className:`h-1.5 rounded-full transition-all duration-500 ${j.length>0?`bg-gradient-to-r from-cyan-500 to-indigo-400`:`bg-gray-700`}`,style:{width:j.length>0?`65%`:`0%`}})}),(0,D.jsx)(`span`,{className:`text-[10px] text-gray-500`,children:`Working set size for spawned servers`})]}),(0,D.jsxs)(`div`,{className:`bg-gray-950/40 border border-gray-800/60 rounded-xl p-4 flex flex-col justify-between`,children:[(0,D.jsxs)(`div`,{className:`flex justify-between items-center text-xs font-semibold text-gray-400 mb-2`,children:[(0,D.jsx)(`span`,{children:`Active Workspace Status`}),(0,D.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-[10px] uppercase font-bold tracking-wider ${j.length>0?`text-emerald-400`:`text-gray-500`}`,children:[(0,D.jsx)(`span`,{className:`w-1.5 h-1.5 rounded-full ${j.length>0?`bg-emerald-500 animate-ping`:`bg-gray-600`}`}),j.length>0?`Online`:`Idle`]})]}),(0,D.jsx)(`div`,{className:`text-xs text-white font-medium truncate`,children:j.length>0?`${j.length} processes active`:`All processes offline`}),(0,D.jsx)(`span`,{className:`text-[10px] text-gray-500`,children:`Service state mapping`})]})]}),(0,D.jsxs)(`div`,{className:`flex border-b border-gray-800/80 mb-6 gap-2`,children:[(0,D.jsx)(`button`,{className:`px-4 py-2 border-b-2 text-xs font-bold transition-all cursor-pointer ${tt===`sessions`?`border-indigo-500 text-white`:`border-transparent text-gray-500 hover:text-gray-300`}`,onClick:()=>nt(`sessions`),children:`AI Session History`}),(0,D.jsx)(`button`,{className:`px-4 py-2 border-b-2 text-xs font-bold transition-all cursor-pointer ${tt===`services`?`border-indigo-500 text-white`:`border-transparent text-gray-500 hover:text-gray-300`}`,onClick:()=>nt(`services`),children:`Orchestrated Services`}),(0,D.jsx)(`button`,{className:`px-4 py-2 border-b-2 text-xs font-bold transition-all cursor-pointer ${tt===`changes`?`border-indigo-500 text-white`:`border-transparent text-gray-500 hover:text-gray-300`}`,onClick:()=>nt(`changes`),children:`Active Changes (AI Diffs)`}),(0,D.jsx)(`button`,{className:`px-4 py-2 border-b-2 text-xs font-bold transition-all cursor-pointer ${tt===`knowledge`?`border-indigo-500 text-white`:`border-transparent text-gray-500 hover:text-gray-300`}`,onClick:()=>nt(`knowledge`),children:`Knowledge Base`}),(0,D.jsx)(`button`,{className:`px-4 py-2 border-b-2 text-xs font-bold transition-all cursor-pointer ${tt===`plan`?`border-indigo-500 text-white`:`border-transparent text-gray-500 hover:text-gray-300`}`,onClick:()=>nt(`plan`),children:`Implementation Plan`})]}),tt===`sessions`&&(at?(0,D.jsx)(`div`,{className:`flex justify-center py-10`,children:(0,D.jsx)(C,{className:`animate-spin text-indigo-400`,size:20})}):rt.length===0?(0,D.jsxs)(`div`,{className:`text-center py-10 bg-gray-950/20 border border-gray-800/60 rounded-xl p-6`,children:[(0,D.jsx)(ce,{size:36,className:`text-gray-650 mx-auto mb-3`}),(0,D.jsx)(`h4`,{className:`text-sm font-bold text-gray-400 mb-1`,children:`No Past AI Sessions Found`}),(0,D.jsxs)(`p`,{className:`text-xs text-gray-505 max-w-md mx-auto leading-relaxed`,children:[`Start a conversation with your AI assistant (e.g. running `,(0,D.jsx)(`code`,{children:`claude`}),`, `,(0,D.jsx)(`code`,{children:`agy`}),`, `,(0,D.jsx)(`code`,{children:`codex`}),`, or `,(0,D.jsx)(`code`,{children:`copilot`}),` inside this directory) to track session history here.`]})]}):(0,D.jsx)(`div`,{className:`space-y-3 mb-6`,children:rt.map(t=>(0,D.jsxs)(`div`,{className:`flex flex-col md:flex-row md:items-center justify-between gap-4 bg-gray-950/20 border border-gray-800/60 rounded-xl p-4 hover:border-gray-700/80 transition-all`,children:[(0,D.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,D.jsxs)(`div`,{className:`flex items-center gap-2.5 mb-1.5`,children:[(0,D.jsx)(`span`,{className:`px-2 py-0.5 rounded text-[10px] font-bold uppercase tracking-wider ${t.assistant===`antigravity`?`bg-indigo-500/20 text-indigo-300 border border-indigo-500/30`:t.assistant===`claude`?`bg-amber-500/20 text-amber-300 border border-amber-500/30`:t.assistant===`codex`?`bg-emerald-500/20 text-emerald-300 border border-emerald-500/30`:`bg-sky-500/20 text-sky-300 border border-sky-500/30`}`,children:t.assistant===`antigravity`?`Antigravity`:t.assistant===`claude`?`Claude Code`:t.assistant===`codex`?`OpenAI Codex`:`GitHub Copilot`}),(0,D.jsxs)(`span`,{className:`text-[10px] text-gray-500`,children:[`Updated: `,new Date(t.updatedAt).toLocaleString()]}),(0,D.jsx)(`span`,{className:`text-[10px] text-gray-500`,children:`•`}),(0,D.jsxs)(`span`,{className:`text-[10px] text-gray-550 font-medium`,children:[t.messageCount,` messages`]})]}),(0,D.jsx)(`h4`,{className:`text-xs font-semibold text-white truncate pr-4`,title:t.title,children:t.title})]}),(0,D.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-3 py-1.5 bg-indigo-500/10 border border-indigo-500/20 hover:bg-indigo-500/20 text-indigo-300 rounded-lg text-xs font-bold transition-all cursor-pointer`,onClick:()=>{st(t),lt([]),nn(t.assistant,t.id)},children:[(0,D.jsx)(le,{size:13}),` View Chat Log`]}),(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-3 py-1.5 bg-emerald-600 hover:bg-emerald-700 text-white rounded-lg text-xs font-bold transition-all cursor-pointer`,onClick:()=>mn(e,t.id,t.assistant),children:[(0,D.jsx)(ue,{size:11}),` Resume`]})]})]},t.id))})),tt===`services`&&($e?(0,D.jsx)(`div`,{className:`flex justify-center py-10`,children:(0,D.jsx)(C,{className:`animate-spin text-indigo-400`,size:20})}):(0,D.jsxs)(`div`,{children:[Xe.length>0&&(0,D.jsxs)(`div`,{className:`flex items-center gap-3 bg-indigo-500/5 border border-indigo-500/20 rounded-xl p-4 mb-4 text-xs text-indigo-300`,children:[(0,D.jsx)(ge,{size:16,className:`text-indigo-400 shrink-0`}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`strong`,{children:`Orchestration manifest detected:`}),` `,Xe.map(e=>e.tool).join(`, `),`. You can start them inside sub-repos.`]})]}),(0,D.jsx)(`div`,{className:`flex flex-col gap-2 mb-4`,children:Je.map(e=>(0,D.jsxs)(`div`,{className:`flex justify-between items-center bg-gray-950/20 border border-gray-800/60 rounded-xl px-4 py-3 text-xs`,children:[(0,D.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,D.jsx)(`span`,{className:`w-2.5 h-2.5 rounded-full ${j.some(t=>t.name===e.name)?`bg-emerald-500 shadow-[0_0_8px_#10b981]`:`bg-gray-700`}`}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`span`,{className:`font-bold text-white`,children:e.name}),(0,D.jsxs)(`span`,{className:`text-[10px] text-gray-500 ml-3`,children:[e.command,` `,e.args.join(` `),` `,e.port?`• port ${e.port}`:``]})]})]}),(0,D.jsx)(`span`,{className:`text-[9px] px-2 py-0.5 rounded bg-gray-800 text-gray-500 font-bold uppercase`,children:e.source})]},e.name))}),(0,D.jsxs)(`div`,{className:`flex gap-2 mb-6`,children:[(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-4 py-2.5 bg-emerald-500 hover:bg-emerald-600 text-white rounded-lg text-xs font-semibold transition-all cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed shadow-md shadow-emerald-500/10 hover:-translate-y-0.5 active:translate-y-0`,onClick:()=>fn(e.branchName),disabled:j.length>0,children:[(0,D.jsx)(ue,{size:14}),` Start All Services`]}),(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-4 py-2.5 bg-rose-600 hover:bg-rose-700 text-white rounded-lg text-xs font-semibold transition-all cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed shadow-md shadow-rose-600/10 hover:-translate-y-0.5 active:translate-y-0`,onClick:()=>pn(e.branchName),disabled:j.length===0,children:[(0,D.jsx)(me,{size:14}),` Stop All`]})]}),Je.length>0&&(0,D.jsxs)(`div`,{className:`border border-gray-800/80 rounded-xl overflow-hidden shadow-2xl bg-gray-950/60`,children:[(0,D.jsxs)(`div`,{className:`flex items-center justify-between bg-gray-900/80 px-4 py-3 border-b border-gray-800/60`,children:[(0,D.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,D.jsxs)(`div`,{className:`flex gap-1.5`,children:[(0,D.jsx)(`span`,{className:`w-3 h-3 rounded-full bg-rose-500/20 border border-rose-500/30`}),(0,D.jsx)(`span`,{className:`w-3 h-3 rounded-full bg-amber-500/20 border border-amber-500/30`}),(0,D.jsx)(`span`,{className:`w-3 h-3 rounded-full bg-emerald-500/20 border border-emerald-500/30`})]}),(0,D.jsxs)(`span`,{className:`text-[11px] font-mono text-gray-400 font-semibold ml-2`,children:[`nexusflow-terminal: `,Vt]})]}),(0,D.jsx)(`div`,{className:`flex gap-1 bg-gray-950/40 p-1 rounded-lg border border-gray-800/60`,children:Je.map(e=>(0,D.jsx)(`button`,{className:`px-3 py-1 rounded-md text-[10px] font-mono font-bold transition-all cursor-pointer ${Vt===e.name?`bg-slate-800 text-white shadow-sm`:`text-gray-500 hover:text-gray-300`}`,onClick:()=>Ht(e.name),children:e.name},e.name))})]}),(0,D.jsxs)(`div`,{className:`bg-[#030408] p-5 font-mono text-[11px] text-cyan-400/90 h-80 overflow-y-auto whitespace-pre-wrap shadow-inner relative scrollbar-thin scrollbar-thumb-gray-800`,children:[(0,D.jsx)(`div`,{className:`absolute top-3 right-3 text-[9px] bg-slate-900/60 border border-gray-800 text-cyan-500/60 px-2 py-0.5 rounded font-mono select-none uppercase tracking-wider`,children:`LIVE LOGS`}),Ut,(0,D.jsx)(`div`,{ref:Gt})]})]})]})),tt===`changes`&&(0,D.jsxs)(`div`,{children:[(0,D.jsxs)(`header`,{className:`flex justify-between items-center mb-4 flex-wrap gap-2`,children:[(0,D.jsxs)(`h4`,{className:`text-sm font-bold text-white flex items-center gap-2`,children:[(0,D.jsx)(ae,{size:16,className:`text-cyan-400`}),` Active Workspace Git Diffs`]}),(0,D.jsxs)(`div`,{className:`flex gap-2`,children:[(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-3 py-1.5 bg-gray-900 border border-gray-800 hover:bg-gray-800 hover:border-gray-700 rounded-lg text-[10px] font-semibold transition-all cursor-pointer text-gray-300`,onClick:()=>en(e.branchName),disabled:pt,children:[(0,D.jsx)(C,{size:11,className:pt?`animate-spin text-indigo-400`:``}),` Refresh Changes`]}),(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-3 py-1.5 bg-indigo-600 hover:bg-indigo-700 text-white rounded-lg text-[10px] font-semibold transition-all cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed`,onClick:()=>sn(e.branchName),disabled:kt,children:[kt?(0,D.jsx)(C,{size:11,className:`animate-spin text-indigo-300`}):(0,D.jsx)(C,{size:11}),` Sync All`]}),(0,D.jsx)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-3 py-1.5 bg-emerald-600 hover:bg-emerald-700 text-white rounded-lg text-[10px] font-semibold transition-all cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed`,onClick:()=>It(!0),disabled:N.every(e=>e.files.length===0)||Lt,children:`Commit & Push All`})]})]}),jt&&(0,D.jsxs)(`div`,{className:`bg-[#090d1a]/60 border border-gray-800 rounded-xl p-4 mb-4 text-xs`,children:[(0,D.jsxs)(`div`,{className:`flex justify-between items-center mb-2 border-b border-gray-800/80 pb-2`,children:[(0,D.jsx)(`h5`,{className:`font-bold text-white font-mono text-[11px]`,children:`Rebase/Sync Results`}),(0,D.jsx)(`button`,{className:`text-gray-500 hover:text-gray-300 text-[10px] cursor-pointer`,onClick:()=>Mt(null),children:`Dismiss`})]}),(0,D.jsx)(`div`,{className:`space-y-1.5`,children:jt.map(e=>(0,D.jsxs)(`div`,{className:`flex justify-between items-center font-mono text-[10px]`,children:[(0,D.jsx)(`span`,{className:`text-gray-300`,children:e.repoName}),(0,D.jsx)(`span`,{className:e.success?`text-emerald-400`:`text-rose-400`,children:e.success?`✅ Synced (${e.message})`:`⚠️ Conflict: ${e.message}`})]},e.repoName))})]}),zt&&(0,D.jsxs)(`div`,{className:`bg-[#090d1a]/60 border border-gray-800 rounded-xl p-4 mb-4 text-xs`,children:[(0,D.jsxs)(`div`,{className:`flex justify-between items-center mb-2 border-b border-gray-800/80 pb-2`,children:[(0,D.jsx)(`h5`,{className:`font-bold text-white font-mono text-[11px]`,children:`Commit/Push Results`}),(0,D.jsx)(`button`,{className:`text-gray-500 hover:text-gray-300 text-[10px] cursor-pointer`,onClick:()=>Bt(null),children:`Dismiss`})]}),(0,D.jsx)(`div`,{className:`space-y-1.5`,children:zt.map(e=>(0,D.jsxs)(`div`,{className:`flex justify-between items-center font-mono text-[10px]`,children:[(0,D.jsx)(`span`,{className:`text-gray-300`,children:e.repoName}),(0,D.jsx)(`span`,{className:e.success?`text-emerald-400`:`text-rose-400`,children:e.success?`✅ Committed ${e.filesChanged} file(s) (${e.commitHash||`no hash`})`:`⚠️ Error: ${e.message}`})]},e.repoName))})]}),Ft&&(0,D.jsxs)(`div`,{className:`bg-[#0b0f19] border border-gray-800 rounded-xl p-4 mb-4`,children:[(0,D.jsx)(`h5`,{className:`text-xs font-bold text-white mb-2`,children:`Enter Commit Message`}),(0,D.jsx)(`input`,{type:`text`,className:`w-full bg-gray-950 border border-gray-800 rounded-lg px-3 py-2 text-xs font-mono text-gray-350 focus:outline-none focus:border-indigo-500 mb-3`,placeholder:`feat: implement logic...`,value:Nt,onChange:e=>Pt(e.target.value),onKeyDown:t=>{t.key===`Enter`&&cn(e.branchName)}}),(0,D.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,D.jsx)(`button`,{className:`px-3 py-1.5 bg-gray-900 border border-gray-800 hover:bg-gray-850 rounded-lg text-[10px] font-semibold transition-all cursor-pointer text-gray-400`,onClick:()=>{It(!1),Pt(``)},disabled:Lt,children:`Cancel`}),(0,D.jsx)(`button`,{className:`px-3 py-1.5 bg-emerald-600 hover:bg-emerald-500 rounded-lg text-[10px] font-semibold text-white transition-all cursor-pointer`,onClick:()=>cn(e.branchName),disabled:Lt||!Nt.trim(),children:Lt?`Committing...`:`Commit & Push`})]})]}),pt?(0,D.jsx)(`div`,{className:`flex justify-center py-10`,children:(0,D.jsx)(C,{className:`animate-spin text-indigo-400`,size:20})}):(0,D.jsx)(`div`,{className:`space-y-4`,children:N.every(e=>e.files.length===0)?(0,D.jsxs)(`div`,{className:`flex flex-col items-center justify-center py-12 bg-gray-950/20 border border-gray-800/40 rounded-xl text-center`,children:[(0,D.jsx)(S,{size:28,className:`text-emerald-500 mb-2`}),(0,D.jsx)(`h5`,{className:`text-xs font-bold text-white`,children:`No Uncommitted Changes`}),(0,D.jsx)(`p`,{className:`text-[10px] text-gray-500 mt-0.5`,children:`Workspace is completely synced with Git feature branches.`})]}):N.map(e=>{if(e.files.length===0)return null;let t=e.files.length,n=e.files.reduce((e,t)=>e+(t.additions||0),0),r=e.files.reduce((e,t)=>e+(t.deletions||0),0);return(0,D.jsxs)(`div`,{className:`bg-gray-950/20 border border-gray-800/60 rounded-xl p-4`,children:[(0,D.jsxs)(`div`,{className:`flex justify-between items-center mb-3`,children:[(0,D.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,D.jsx)(`h5`,{className:`text-xs font-bold text-white font-mono`,children:e.repoName}),(0,D.jsxs)(`span`,{className:`text-[9px] px-1.5 py-0.5 rounded bg-gray-900 border border-gray-800 text-gray-400 font-mono`,children:[t,` file`,t===1?``:`s`,` changed`]}),(n>0||r>0)&&(0,D.jsxs)(`span`,{className:`text-[9px] font-mono`,children:[(0,D.jsxs)(`span`,{className:`text-emerald-400 font-bold`,children:[`+`,n]}),` `,(0,D.jsxs)(`span`,{className:`text-rose-400 font-bold`,children:[`-`,r]})]})]}),(0,D.jsx)(`span`,{className:`text-[9px] text-gray-500 font-mono truncate max-w-[280px]`,children:e.repoPath})]}),(0,D.jsx)(`div`,{className:`space-y-1.5`,children:e.files.map(e=>(0,D.jsxs)(`div`,{className:`flex justify-between items-center bg-[#090d1a]/40 px-3 py-2 rounded-lg border border-gray-800/30 text-xs`,children:[(0,D.jsxs)(`div`,{className:`flex flex-col min-w-0`,children:[(0,D.jsx)(`span`,{className:`font-mono text-gray-300 text-[11px] truncate max-w-[320px]`,children:e.file}),(e.additions>0||e.deletions>0)&&(0,D.jsxs)(`span`,{className:`text-[9px] font-mono mt-0.5`,children:[(0,D.jsxs)(`span`,{className:`text-emerald-500`,children:[`+`,e.additions]}),` `,(0,D.jsxs)(`span`,{className:`text-rose-500`,children:[`-`,e.deletions]})]})]}),(0,D.jsx)(`span`,{className:`text-[9px] px-2 py-0.5 rounded font-bold uppercase ${e.type===`added`?`bg-emerald-500/10 text-emerald-400 border border-emerald-500/20`:e.type===`deleted`?`bg-rose-500/10 text-rose-400 border border-rose-500/20`:`bg-amber-500/10 text-amber-400 border border-amber-500/20`}`,children:e.type})]},e.file))})]},e.repoName)})})]}),tt===`knowledge`&&(0,D.jsxs)(`div`,{className:`bg-[#090d1a]/20 border border-gray-800/60 rounded-xl p-4`,children:[(0,D.jsxs)(`header`,{className:`flex justify-between items-center mb-4`,children:[(0,D.jsxs)(`h4`,{className:`text-sm font-bold text-white flex items-center gap-2`,children:[(0,D.jsx)(te,{size:16,className:`text-cyan-400`}),` Persistent Knowledge Memory (nexusflow-knowledge.md)`]}),(0,D.jsx)(`div`,{className:`flex gap-2`,children:yt?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(`button`,{className:`px-2.5 py-1.5 bg-gray-900 border border-gray-800 hover:bg-gray-850 rounded-lg text-[10px] font-semibold transition-all cursor-pointer text-gray-400`,onClick:()=>{St(ht),bt(!1)},disabled:Ct,children:`Cancel`}),(0,D.jsxs)(`button`,{className:`inline-flex items-center gap-1.5 px-2.5 py-1.5 bg-indigo-600 hover:bg-indigo-500 text-white rounded-lg text-[10px] font-semibold transition-all cursor-pointer`,onClick:()=>an(e.branchName),disabled:Ct,children:[Ct?(0,D.jsx)(C,{className:`animate-spin`,size:10}):(0,D.jsx)(de,{size:10}),` Save`]})]}):(0,D.jsxs)(`button`,{className:`inline-flex items-center gap-1.5 px-2.5 py-1.5 bg-gray-900 border border-gray-800 hover:bg-gray-800 hover:border-gray-700 rounded-lg text-[10px] font-semibold transition-all cursor-pointer text-gray-350`,onClick:()=>bt(!0),disabled:_t,children:[(0,D.jsx)(pe,{size:10}),` Edit Knowledge`]})})]}),_t?(0,D.jsx)(`div`,{className:`flex justify-center py-10`,children:(0,D.jsx)(C,{className:`animate-spin text-indigo-400`,size:20})}):yt?(0,D.jsx)(`textarea`,{className:`w-full h-96 bg-gray-950/60 border border-gray-800/80 rounded-xl p-4 text-xs font-mono text-gray-305 focus:outline-none focus:border-indigo-500/80 resize-y`,value:xt,onChange:e=>St(e.target.value)}):(0,D.jsx)(`div`,{className:`bg-gray-950/40 border border-gray-800/30 rounded-xl p-4 text-gray-350 text-xs leading-relaxed overflow-auto font-mono whitespace-pre-wrap max-h-96`,children:ht||`No knowledge file generated yet.`})]}),tt===`plan`&&(0,D.jsxs)(`div`,{className:`bg-[#090d1a]/20 border border-gray-800/60 rounded-xl p-4`,children:[(0,D.jsx)(`header`,{className:`flex justify-between items-center mb-4`,children:(0,D.jsxs)(`h4`,{className:`text-sm font-bold text-white flex items-center gap-2`,children:[(0,D.jsx)(se,{size:16,className:`text-cyan-400`}),` Inter-Repo Implementation Plan (nexusflow-plan.md)`]})}),Dt?(0,D.jsx)(`div`,{className:`flex justify-center py-10`,children:(0,D.jsx)(C,{className:`animate-spin text-indigo-400`,size:20})}):(0,D.jsx)(`div`,{className:`bg-gray-950/40 border border-gray-800/30 rounded-xl p-4 text-gray-350 text-xs leading-relaxed overflow-auto font-mono whitespace-pre-wrap max-h-96`,children:Tt||`No implementation plan generated yet.`})]})]})]},e.id)})})]}),e===`settings`&&n&&(0,D.jsxs)(`div`,{className:`max-w-4xl mx-auto`,children:[(0,D.jsxs)(`header`,{className:`mb-8`,children:[(0,D.jsx)(`h1`,{className:`text-3xl font-extrabold tracking-tight text-white mb-2`,children:`Global Settings`}),(0,D.jsx)(`p`,{className:`text-sm text-gray-400`,children:`Configure your local directories, search parameters, and editor defaults.`})]}),c===`success`&&(0,D.jsxs)(`div`,{className:`flex items-center gap-3 bg-emerald-500/10 border border-emerald-500/20 text-emerald-400 rounded-xl p-4 mb-6 text-sm`,children:[(0,D.jsx)(S,{size:18}),` Settings successfully saved and updated!`]}),c===`error`&&(0,D.jsxs)(`div`,{className:`flex items-center gap-3 bg-rose-500/10 border border-rose-500/20 text-rose-400 rounded-xl p-4 mb-6 text-sm`,children:[(0,D.jsx)(ge,{size:18}),` Error: Could not save configuration details to disk.`]}),(0,D.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-6 bg-[#111827]/40 border border-gray-800/80 rounded-xl p-8 shadow-xl backdrop-blur-sm mb-6`,children:[(0,D.jsxs)(`div`,{className:`flex flex-col`,children:[(0,D.jsx)(`label`,{className:`block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2`,children:`Development Directory`}),(0,D.jsx)(`input`,{type:`text`,className:`w-full bg-[#111827] border border-gray-800 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 rounded-lg px-4 py-3 text-white placeholder-gray-600 transition-all outline-none text-sm shadow-inner`,value:n.devDir,onChange:e=>r({...n,devDir:e.target.value})}),(0,D.jsx)(`span`,{className:`text-[10px] text-gray-500 mt-1`,children:`Directory where your git projects are scanned.`})]}),(0,D.jsxs)(`div`,{className:`flex flex-col`,children:[(0,D.jsx)(`label`,{className:`block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2`,children:`Workspaces Directory`}),(0,D.jsx)(`input`,{type:`text`,className:`w-full bg-[#111827] border border-gray-800 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 rounded-lg px-4 py-3 text-white placeholder-gray-600 transition-all outline-none text-sm shadow-inner`,value:n.workspacesDir,onChange:e=>r({...n,workspacesDir:e.target.value})}),(0,D.jsx)(`span`,{className:`text-[10px] text-gray-500 mt-1`,children:`Directory where unified worktree environments are spun up.`})]}),(0,D.jsxs)(`div`,{className:`flex flex-col`,children:[(0,D.jsx)(`label`,{className:`block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2`,children:`Repo Search Depth`}),(0,D.jsx)(`input`,{type:`number`,className:`w-full bg-[#111827] border border-gray-800 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 rounded-lg px-4 py-3 text-white placeholder-gray-600 transition-all outline-none text-sm shadow-inner`,min:1,max:5,value:n.scanDepth,onChange:e=>r({...n,scanDepth:parseInt(e.target.value,10)})}),(0,D.jsx)(`span`,{className:`text-[10px] text-gray-500 mt-1`,children:`Max directory levels deep the system will traverse for git repos.`})]}),(0,D.jsxs)(`div`,{className:`flex flex-col`,children:[(0,D.jsx)(`label`,{className:`block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2`,children:`Default Assistant`}),(0,D.jsxs)(`select`,{className:`w-full bg-[#111827] border border-gray-800 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 rounded-lg px-4 py-3 text-white transition-all outline-none text-sm shadow-inner cursor-pointer`,value:n.defaultAssistant||``,onChange:e=>r({...n,defaultAssistant:e.target.value||null}),children:[(0,D.jsx)(`option`,{value:``,children:`None (Prompt me)`}),(0,D.jsx)(`option`,{value:`claude`,children:`Claude Code`}),(0,D.jsx)(`option`,{value:`antigravity`,children:`Antigravity`}),(0,D.jsx)(`option`,{value:`codex`,children:`Codex`}),(0,D.jsx)(`option`,{value:`copilot`,children:`GitHub Copilot`}),(0,D.jsx)(`option`,{value:`cursor`,children:`Cursor`})]}),(0,D.jsx)(`span`,{className:`text-[10px] text-gray-500 mt-1`,children:`Your preferred workspace context manager.`})]})]}),(0,D.jsx)(`div`,{className:`flex justify-end`,children:(0,D.jsx)(`button`,{className:`inline-flex items-center justify-center gap-2 px-5 py-3 rounded-lg text-sm font-semibold bg-gradient-to-r from-indigo-500 to-indigo-600 hover:from-indigo-600 hover:to-indigo-700 text-white shadow-lg shadow-indigo-500/20 transition-all cursor-pointer hover:-translate-y-0.5 active:translate-y-0`,onClick:()=>qt(n),children:`Save Configuration`})})]})]})}),M&&(0,D.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center bg-black/75 backdrop-blur-sm p-4`,children:(0,D.jsxs)(`div`,{className:`bg-[#0b0f19] border border-gray-800 rounded-2xl w-full max-w-4xl h-[80vh] flex flex-col shadow-2xl overflow-hidden animate-fadeIn`,children:[(0,D.jsxs)(`div`,{className:`flex items-center justify-between px-6 py-4 border-b border-gray-800 bg-gray-950/40`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsxs)(`div`,{className:`flex items-center gap-2 mb-1`,children:[(0,D.jsx)(`span`,{className:`px-2 py-0.5 rounded text-[10px] font-bold uppercase tracking-wider ${M.assistant===`antigravity`?`bg-indigo-500/20 text-indigo-300 border border-indigo-500/30`:M.assistant===`claude`?`bg-amber-500/20 text-amber-300 border border-amber-500/30`:M.assistant===`codex`?`bg-emerald-500/20 text-emerald-300 border border-emerald-500/30`:`bg-sky-500/20 text-sky-300 border border-sky-500/30`}`,children:M.assistant===`antigravity`?`Antigravity`:M.assistant===`claude`?`Claude Code`:M.assistant===`codex`?`OpenAI Codex`:`GitHub Copilot`}),(0,D.jsxs)(`span`,{className:`text-[10px] text-gray-500`,children:[`Session: `,M.id]})]}),(0,D.jsx)(`h3`,{className:`text-sm font-bold text-white truncate max-w-xl`,title:M.title,children:M.title})]}),(0,D.jsx)(`button`,{className:`text-gray-400 hover:text-white p-2 hover:bg-gray-800/80 rounded-lg transition-colors cursor-pointer`,onClick:()=>st(null),children:(0,D.jsx)(E,{size:18})})]}),(0,D.jsx)(`div`,{className:`flex-1 overflow-y-auto p-6 space-y-4 bg-gray-950/10`,children:ut?(0,D.jsxs)(`div`,{className:`flex flex-col items-center justify-center h-full gap-2`,children:[(0,D.jsx)(C,{className:`animate-spin text-indigo-400`,size:24}),(0,D.jsx)(`span`,{className:`text-xs text-gray-500 font-medium`,children:`Loading conversation history...`})]}):ct.length===0?(0,D.jsx)(`div`,{className:`flex items-center justify-center h-full text-xs text-gray-500`,children:`No messages found in this transcript.`}):ct.map((e,t)=>(0,D.jsxs)(`div`,{className:`flex flex-col ${e.role===`user`?`items-end`:`items-start`}`,children:[(0,D.jsxs)(`div`,{className:`text-[10px] text-gray-500 mb-1 px-1`,children:[e.role===`user`?`Developer`:M.assistant===`antigravity`?`Antigravity`:M.assistant===`claude`?`Claude`:M.assistant===`codex`?`Codex`:`Copilot`,e.timestamp&&` • ${new Date(e.timestamp).toLocaleTimeString()}`]}),(0,D.jsx)(`div`,{className:`max-w-[85%] rounded-2xl px-4 py-3 text-xs leading-relaxed whitespace-pre-wrap ${e.role===`user`?`bg-indigo-650 text-white rounded-tr-none shadow-md border border-indigo-500/10`:`bg-gray-900 border border-gray-800 text-gray-200 rounded-tl-none shadow-sm font-sans`}`,children:e.content})]},t))}),(0,D.jsxs)(`div`,{className:`px-6 py-4 border-t border-gray-800 bg-gray-950/40 flex justify-between items-center`,children:[(0,D.jsx)(`span`,{className:`text-[11px] text-gray-550`,children:`Resuming will copy the shell command and open your code editor.`}),(0,D.jsxs)(`div`,{className:`flex gap-2`,children:[(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-4 py-2 bg-gray-900 border border-gray-800 hover:bg-gray-800 rounded-lg text-xs font-bold text-white transition-all cursor-pointer`,onClick:()=>{let e=M.assistant===`antigravity`?`agy --conversation ${M.id}`:M.assistant===`claude`?`claude --resume ${M.id}`:M.assistant===`codex`?`codex resume ${M.id}`:`copilot --resume ${M.id}`;navigator.clipboard.writeText(e),alert(`Copied run command to clipboard:\n\n${e}`)},children:[(0,D.jsx)(re,{size:13}),` Copy Resume Command`]}),(0,D.jsxs)(`button`,{className:`inline-flex items-center justify-center gap-1.5 px-4 py-2 bg-emerald-600 hover:bg-emerald-700 text-white rounded-lg text-xs font-bold transition-all cursor-pointer`,onClick:()=>{mn(Ue.find(e=>e.branchName===M.workspacePath.split(/[\\/]/).pop())||Ue[0],M.id,M.assistant),st(null)},children:[(0,D.jsx)(ue,{size:12}),` Resume Conversation`]})]})]})]})})]})}(0,u.createRoot)(document.getElementById(`root`)).render((0,D.jsx)(l.StrictMode,{children:(0,D.jsx)(ye,{})}));
|
package/dist/gui/index.html
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
10
10
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
11
11
|
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
|
|
12
|
-
<script type="module" crossorigin src="/assets/index-
|
|
12
|
+
<script type="module" crossorigin src="/assets/index-s4nRkpqY.js"></script>
|
|
13
13
|
<link rel="stylesheet" crossorigin href="/assets/index-B9Ph2bHH.css">
|
|
14
14
|
</head>
|
|
15
15
|
<body>
|
package/gui/src/App.tsx
CHANGED
|
@@ -830,7 +830,7 @@ Core Instructions:
|
|
|
830
830
|
<input
|
|
831
831
|
type="text"
|
|
832
832
|
className="w-full bg-[#111827] border border-gray-800 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 rounded-lg px-4 py-3 text-white placeholder-gray-600 transition-all outline-none text-xs shadow-inner"
|
|
833
|
-
placeholder="e.g. C:\Users\
|
|
833
|
+
placeholder="e.g. C:\Users\username\dev"
|
|
834
834
|
value={config.devDir}
|
|
835
835
|
onChange={(e) => setConfig({ ...config, devDir: e.target.value })}
|
|
836
836
|
/>
|
|
@@ -846,7 +846,7 @@ Core Instructions:
|
|
|
846
846
|
<input
|
|
847
847
|
type="text"
|
|
848
848
|
className="w-full bg-[#111827] border border-gray-800 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 rounded-lg px-4 py-3 text-white placeholder-gray-600 transition-all outline-none text-xs shadow-inner"
|
|
849
|
-
placeholder="e.g. C:\Users\
|
|
849
|
+
placeholder="e.g. C:\Users\username\dev\workspaces"
|
|
850
850
|
value={config.workspacesDir}
|
|
851
851
|
onChange={(e) => setConfig({ ...config, workspacesDir: e.target.value })}
|
|
852
852
|
/>
|
|
@@ -148,7 +148,7 @@ export const OnboardingWizard: React.FC<OnboardingWizardProps> = ({
|
|
|
148
148
|
<input
|
|
149
149
|
type="text"
|
|
150
150
|
className="w-full bg-[#111827] border border-gray-800 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 rounded-lg px-4 py-3 text-white placeholder-gray-600 transition-all outline-none text-xs shadow-inner"
|
|
151
|
-
placeholder="e.g. C:\Users\
|
|
151
|
+
placeholder="e.g. C:\Users\username\dev"
|
|
152
152
|
value={config.devDir}
|
|
153
153
|
onChange={(e) => setConfig({ ...config, devDir: e.target.value })}
|
|
154
154
|
/>
|
|
@@ -164,7 +164,7 @@ export const OnboardingWizard: React.FC<OnboardingWizardProps> = ({
|
|
|
164
164
|
<input
|
|
165
165
|
type="text"
|
|
166
166
|
className="w-full bg-[#111827] border border-gray-800 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 rounded-lg px-4 py-3 text-white placeholder-gray-600 transition-all outline-none text-xs shadow-inner"
|
|
167
|
-
placeholder="e.g. C:\Users\
|
|
167
|
+
placeholder="e.g. C:\Users\username\dev\workspaces"
|
|
168
168
|
value={config.workspacesDir}
|
|
169
169
|
onChange={(e) => setConfig({ ...config, workspacesDir: e.target.value })}
|
|
170
170
|
/>
|