mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +00:00
Move project templates to AI settings
This commit is contained in:
6 files changed
+239
-158
No files matched your search
+1
-10
@@ -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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user