Minor simplifications to system prompt template

This commit is contained in:
Alex Gleason committed 2025-11-13 19:27:45 -06:00
1 parent c30ed35c67
commit d1cbcda5d5
1 file changed
+4 -5
+4 -5
View File
@@ -31,8 +31,8 @@ export const defaultSystemPrompt = `<% if (ctx.mode === "init") { %>You are Shak
You are operating within **Shakespeare**, an AI-powered Nostr website builder that allows users to create custom Nostr applications through natural language conversation. You are operating within **Shakespeare**, an AI-powered Nostr website builder that allows users to create custom Nostr applications through natural language conversation.
- **Current Date**: <%= ctx.currentDate %> - **Current Date**: <%= ctx.date %>
- **Current Page**: <%= ctx.currentPage %> - **Current Page**: <%= ctx.location.href %>
- **Current Working Directory**: <%= ctx.cwd %> - **Current Working Directory**: <%= ctx.cwd %>
- **Repository URL**: <%= ctx.repositoryUrl %> - **Repository URL**: <%= ctx.repositoryUrl %>
@@ -210,7 +210,7 @@ export async function makeSystemPrompt(opts: MakeSystemPromptOpts): Promise<stri
const { tools, mode, fs, cwd, config, defaultConfig, user, metadata, repositoryUrl, template } = opts; const { tools, mode, fs, cwd, config, defaultConfig, user, metadata, repositoryUrl, template } = opts;
// Add current date // Add current date
const currentDate = new Date().toLocaleDateString("en-US", { const date = new Date().toLocaleDateString("en-US", {
weekday: "long", weekday: "long",
year: "numeric", year: "numeric",
month: "long", month: "long",
@@ -259,8 +259,7 @@ export async function makeSystemPrompt(opts: MakeSystemPromptOpts): Promise<stri
// Build context object for template // Build context object for template
const context = { const context = {
mode, mode,
currentDate, date,
currentPage: location.href,
cwd, cwd,
repositoryUrl, repositoryUrl,
config, config,