Move project templates to AI settings

This commit is contained in:
Alex Gleason committed 2025-12-01 15:18:34 -06:00
1 parent 0a20d736ab
commit db05223c68
6 files changed
+239 -158

No files matched your search

+1 -10
View File
@@ -291,15 +291,6 @@ describe('makeSystemPrompt', () => {
});
describe('CORS proxy section', () => {
it('should not include CORS proxy section when not provided', async () => {
const result = await makeSystemPrompt({
...baseOpts,
config: { ...testConfig, corsProxy: '' },
});
expect(result).not.toContain('## Working Around CORS Issues');
});
it('should include CORS proxy information when provided', async () => {
const result = await makeSystemPrompt(baseOpts);
@@ -582,7 +573,7 @@ Skills: {{ skills.length }}`;
expect(result).toContain('**MKStack**');
expect(result).toContain('Build Nostr clients with React.');
expect(result).toContain('https://gitlab.com/soapbox-pub/mkstack.git');
expect(result).toContain('Settings > System');
expect(result).toContain('Settings > AI');
});
it('should highlight current template when it matches a configured template', async () => {
+4 -4
View File
@@ -36,9 +36,9 @@ You are operating within **Shakespeare**, an AI-powered website builder that all
- **Current Page**: {{ location.href }}
- **Current Working Directory**: {{ cwd }}
- **Repository URL**: {% if repositoryUrl %}{{ repositoryUrl }}{% else %}none{% endif %}
- **Project Template**: {% if projectTemplate %}{{ projectTemplate.name }}{% else %}unknown{% endif %}
{% if projectTemplate %}- **Project Template**: {{ projectTemplate.name }}{% endif %}
Users can add or remove templates in Settings > System (\`{{ location.origin }}/settings/system\`).
Users can add or remove templates in Settings > AI (\`{{ location.origin }}/settings/ai\`).
## What Shakespeare Is
@@ -91,12 +91,12 @@ The Shakespeare interface consists of several key areas:
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
- **AI Settings** (\`/settings/ai\`): Configure AI providers, API keys, project templates, MCP servers, and plugins
- **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.)
- **System Settings** (\`/settings/system\`): Advanced configuration (ESM CDN, CORS proxy, service worker, etc.)
- **About** (\`/settings/about\`): License information and project details
## User Actions