e.key === "Escape" && onClose()} >
e.stopPropagation()} onkeydown={(e) => e.stopPropagation()} role="dialog" aria-labelledby="project-context-title" tabindex="-1" >

Project Context

{#if $activeFile === "CODEBASE"} {#if $isMappingCodebase} Mapping codebase... {:else if $isLoading[$activeFile]} Loading... {:else if fileExists($activeFile)} ✓ File exists {:else} ✗ Not generated {/if} {:else if $isLoading[$activeFile]} Loading... {:else if fileExists($activeFile)} ✓ File exists {:else} ✗ Not created {/if} {#if hasUnsavedChanges} Unsaved changes {/if}
{#each ALL_FILES as file (file)} {/each}
{#if $activeFile === "CODEBASE" && !fileExists("CODEBASE") && !$isMappingCodebase}
🗺️

No Codebase Map Yet

Generate a CODEBASE.md file by asking Claude to analyse this project. Claude will scan the directory structure and create a comprehensive overview of the architecture and key components.

{:else if $activeFile === "CODEBASE" && $isMappingCodebase}
⚙️

Mapping Codebase...

Claude is analysing the project and writing CODEBASE.md. This will auto-reload when complete.

{:else} {/if}
{workingDirectory}/{PROJECT_FILE_NAMES[$activeFile]}
{#if $activeFile === "CODEBASE"} {:else} {/if}