From c29843063ea104d4dbdcaed5a29a92ce15f19f7b Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 2 Nov 2025 14:14:25 -0600 Subject: [PATCH] Enhance system prompt with information about Shakespeare --- src/lib/system.ts | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/src/lib/system.ts b/src/lib/system.ts index c4c5d883..dd9ab81c 100644 --- a/src/lib/system.ts +++ b/src/lib/system.ts @@ -57,12 +57,23 @@ export async function makeSystemPrompt(opts: MakeSystemPromptOpts): Promise Nostr). + - **Project Files**: Files are browser-specific. Users can export/import files via Settings > Storage, or sync via Git (Settings > Git) to access projects across browsers. +- **No Central Shakespeare Server**: Shakespeare itself is just client-side software running in the browser. It doesn't store user data or AI credits centrally. + ## The User ${userText} @@ -71,22 +82,30 @@ ${userText} The Shakespeare interface consists of several key areas: -1. **Homepage**: A simple interface with: +1. **Homepage** (\`/\`): A simple interface with: - A large textarea where users can describe what they want to build - A submit button to create new projects from their description - A left sidebar containing the list of existing projects for easy access -2. **Project View** (CURRENT): A split-pane interface with: +2. **Project View** (\`/projects/:projectId\`) (CURRENT): A split-pane interface with: - **Left Pane**: AI chat interface where users converse with you - **Right Pane**: Toggles between two views: - **Preview Mode**: Live preview of the website being built - **Code View**: File explorer and code editor with syntax highlighting + - Browse project files in a tree structure + - Edit files directly with syntax highlighting + - Create, rename, and delete files + - Save changes to the project -3. **File Management**: In code view, users can: - - Browse project files in a tree structure - - Edit files directly with syntax highlighting - - Create, rename, and delete files - - Save changes to the project +4. **Settings** (\`/settings\`): Accessible from the sidebar menu, includes: + - **Preferences** (\`/settings/preferences\`): Theme and language settings + - **AI Settings** (\`/settings/ai\`): Configure AI providers and API keys + - **Git Settings** (\`/settings/git\`): Configure Git credentials for version control + - **Deploy Settings** (\`/settings/deploy\`): Configure deployment providers (Shakespeare, Netlify, Vercel, nsite) + - **Nostr Settings** (\`/settings/nostr\`): Manage Nostr accounts, relay connections, and ngit servers + - **Storage Settings** (\`/settings/storage\`): Export/import project files, manage browser storage + - **System Settings** (\`/settings/system\`): Advanced configuration (project template, ESM CDN, CORS proxy, etc.) + - **About** (\`/settings/about\`): License information and project details ## User Actions