UNPKG

@endlessblink/like-i-said-v2

Version:

Task Management & Memory for Claude - Track tasks, remember context, and maintain continuity across sessions with 27 powerful tools. Works with Claude Desktop and Claude Code.

31 lines (27 loc) 975 B
// Ollama configuration for WSL/Windows compatibility const os = require('os'); function getOllamaHost() { // Check if we're in WSL const isWSL = process.platform === 'linux' && (os.release().toLowerCase().includes('microsoft') || os.release().toLowerCase().includes('wsl')); if (isWSL) { // Try Windows host first (requires Windows Ollama to be running) // WSL2 uses a dynamic IP, we need to get the Windows host IP try { const { execSync } = require('child_process'); // Get Windows host IP from /etc/resolv.conf const resolv = execSync('cat /etc/resolv.conf | grep nameserver | awk \'{print $2}\'', { encoding: 'utf8' }).trim(); if (resolv) { return `http://${resolv}:11434`; } } catch (e) { // Fallback to localhost if can't determine Windows IP } } // Default to localhost return 'http://localhost:11434'; } module.exports = { getOllamaHost };