Details about the user.
``` -------------------------------- ### App Integration - Scheduler Start/Stop Source: https://github.com/healthnotelabs/runstr/blob/main/rewards-memory.md Manages the starting and stopping of the scheduler service within the application lifecycle. ```javascript // In src/App.jsx startScheduler() stopScheduler() ``` -------------------------------- ### Troubleshooting `task-master init` Source: https://github.com/healthnotelabs/runstr/blob/main/README-task-master.md Provides alternative methods to run the `task-master init` script if it fails to respond, by executing it directly using Node.js from the local `node_modules` or after cloning the repository. ```bash # Run init script directly from node_modules node node_modules/claude-task-master/scripts/init.js # Or, after cloning the repository git clone https://github.com/eyaltoledano/claude-task-master.git cd claude-task-master node scripts/init.js ``` -------------------------------- ### Core Wallet Implementation Source: https://github.com/healthnotelabs/runstr/blob/main/fully-functional-NIP60.md Provides the complete implementation for the ecash wallet, handling core logic for token creation, delivery, and management. ```jsx ✅ `src/components/EcashWalletConnector.jsx` - Full wallet implementation ``` -------------------------------- ### Configuration Files Source: https://github.com/healthnotelabs/runstr/blob/main/tmpfiles.txt Configuration files for various tools and project settings. ```md .hintrc ``` ```md .prettierrc.json ``` ```md .releaserc.json ``` ```md .windsurfrules ``` -------------------------------- ### Connecting a Wallet (Discovery) Source: https://github.com/healthnotelabs/runstr/blob/main/NIP60-Ecash-Wallet-Brainstorm.md Compares the current approach of using a wallet service's connect method with a simplified event-driven approach that queries Nostr for wallet events. ```javascript Current: wallet.connect() → Complex connection logic Simple: queryWalletEvents(userPubkey) → [kind:17375, kind:10019 events] ``` -------------------------------- ### Enhanced Logging for Debugging Source: https://github.com/healthnotelabs/runstr/blob/main/memory-bank/blossom-music-integration.md Provides example console logs to aid in debugging Blossom server interactions, capturing endpoint, authentication, and response details. ```javascript console.log('🌸 Testing endpoint:', endpoint); console.log('🌸 Auth header:', authHeader ? 'Present' : 'Missing'); console.log('🌸 Response status:', response.status); console.log('🌸 Response headers:', response.headers); console.log('🌸 Response body:', await response.text()); ``` -------------------------------- ### NDK Singleton Initialization and Connection Logic Source: https://github.com/healthnotelabs/runstr/blob/main/bugfixes2.md This snippet details the core logic within `ndkSingleton.js` responsible for initializing the NDK instance and managing its connection status. It highlights the use of `explicitRelayUrls` and the `ndkReadyPromise` which reflects the success of the `ndk.connect()` operation. This is crucial for understanding why the NDK might not be reporting as ready. ```JavaScript import { NDK } from '@nostr-dev-kit/ndk'; import { explicitRelayUrls } from '../config/relays'; const ndk = new NDK({ explicitRelayUrls }); let ndkReadyPromise = ndk.connect(); // ... other logic ... export const getNdk = async () => { await ndkReadyPromise; return ndk; }; // Logging added for debugging: console.log('NDK initialized with relays:', explicitRelayUrls); ndkReadyPromise.then(() => console.log('NDK connected successfully')) .catch((error) => console.error('NDK connection failed:', error)); ``` -------------------------------- ### Update Tasks Source: https://github.com/healthnotelabs/runstr/blob/main/README-task-master.md Updates tasks starting from a specified ID and provides context through a prompt. This is useful for batch updates or when providing additional information for task modifications. ```bash task-master update --from=Total Distance: {totalTeamDistance.toFixed(2)} km
{/* Add more stats as needed */}