6 changed files with 19 additions and 35 deletions

No files matched your search

+5
View File
@@ -23,3 +23,8 @@ dist-ssr
# Vercel # Vercel
.vercel .vercel
# Secrets
.env
.env.*
!.env.example
+9 -1
View File
@@ -138,6 +138,8 @@ When implementing features that could use existing NIPs, follow this decision fr
- The data structure is fundamentally different from existing patterns - The data structure is fundamentally different from existing patterns
- The use case requires different storage characteristics (regular vs replaceable vs addressable) - The use case requires different storage characteristics (regular vs replaceable vs addressable)
6. **Custom Kind Publishing**: When publishing events with custom kinds generated by `nostr__generate_kind`, always include a NIP-31 "alt" tag with a human-readable description of the event's purpose.
**Example Decision Process**: **Example Decision Process**:
``` ```
Need: Equipment marketplace for farmers Need: Equipment marketplace for farmers
@@ -811,7 +813,13 @@ When users specify color schemes:
## Writing Tests ## Writing Tests
**Important for AI Assistants**: Only create tests when the user is experiencing a specific problem or explicitly requests tests. Do not proactively write tests for new features or components unless the user is having issues that require testing to diagnose or resolve. **⚠️ CRITICAL FOR AI ASSISTANTS**: **DO NOT WRITE TESTS** unless the user is experiencing a specific problem or explicitly requests tests. Writing unnecessary tests wastes significant time and money. Only create tests when:
1. **The user is experiencing a bug** that requires testing to diagnose
2. **The user explicitly asks for tests** to be written
3. **Existing functionality is broken** and tests are needed to verify fixes
**Never proactively write tests** for new features or components. Focus on building functionality that works, not on testing it unless specifically requested.
### Test Setup ### Test Setup
-32
View File
@@ -1,32 +0,0 @@
version: 1.0.0
title: Nostr Client Development
description: A recipe for building Nostr client applications
instructions: Create a Nostr client application according to the user's request.
extensions:
- type: builtin
name: developer
display_name: Developer Tools
timeout: 300
bundled: true
- type: stdio
name: nostr
cmd: npx
args:
- -y
- xjsr
- "@nostrbook/mcp"
envs: {}
timeout: 20
description: null
bundled: null
- type: stdio
name: fetch
cmd: uvx
args:
- mcp-server-fetch
envs: {}
timeout: 20
description: null
bundled: null
author:
contact: Alex Gleason <[email protected]>
+1 -1
View File
@@ -14,7 +14,7 @@ interface AppProviderProps {
} }
// Zod schema for AppConfig validation // Zod schema for AppConfig validation
const AppConfigSchema: z.ZodType<AppConfig> = z.object({ const AppConfigSchema: z.ZodType<AppConfig, z.ZodTypeDef, unknown> = z.object({
theme: z.enum(['dark', 'light', 'system']), theme: z.enum(['dark', 'light', 'system']),
relayUrl: z.string().url(), relayUrl: z.string().url(),
}); });
+1 -1
View File
@@ -24,7 +24,7 @@ const AvatarImage = React.forwardRef<
>(({ className, ...props }, ref) => ( >(({ className, ...props }, ref) => (
<AvatarPrimitive.Image <AvatarPrimitive.Image
ref={ref} ref={ref}
className={cn("aspect-square h-full w-full object-cover", className)} className={cn("aspect-square h-full w-full object-cover object-center", className)}
{...props} {...props}
/> />
)) ))
+3
View File
@@ -19,6 +19,9 @@ export default defineConfig(() => ({
onConsoleLog(log) { onConsoleLog(log) {
return !log.includes("React Router Future Flag Warning"); return !log.includes("React Router Future Flag Warning");
}, },
env: {
DEBUG_PRINT_LIMIT: '0', // Suppress DOM output that exceeds AI context windows
},
}, },
resolve: { resolve: {
alias: { alias: {