⛰️ LifeOS — The AI-powered Life Operating System that helps you hill climb to wherever you're going.
Security improvements and PAI_HOME support
Daniel Miesslerf5111302698e
diff --git a/.claude/voice-server/macos-service/com.paivoice.server.plist.template b/.claude/voice-server/macos-service/com.paivoice.server.plist.templatenew file mode 100644index 00000000..958c0ff0--- /dev/null+++ b/.claude/voice-server/macos-service/com.paivoice.server.plist.template@@ -0,0 +1,48 @@+<?xml version="1.0" encoding="UTF-8"?>+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">+<plist version="1.0">+<dict>+ <key>Label</key>+ <string>com.paivoice.server</string>++ <key>ProgramArguments</key>+ <array>+ <string>/usr/local/bin/bun</string>+ <string>run</string>+ <string>__PAI_HOME__/.claude/voice-server/server.ts</string>+ </array>++ <key>EnvironmentVariables</key>+ <dict>+ <key>PORT</key>+ <string>8888</string>+ <key>PATH</key>+ <string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>+ <key>HOME</key>+ <string>__HOME__</string>+ </dict>++ <key>WorkingDirectory</key>+ <string>__PAI_HOME__/.claude/voice-server</string>++ <key>RunAtLoad</key>+ <true/>++ <key>KeepAlive</key>+ <dict>+ <key>SuccessfulExit</key>+ <false/>+ <key>Crashed</key>+ <true/>+ </dict>++ <key>StandardOutPath</key>+ <string>__PAI_HOME__/.claude/voice-server/logs/voice-server.log</string>++ <key>StandardErrorPath</key>+ <string>__PAI_HOME__/.claude/voice-server/logs/voice-server-error.log</string>++ <key>ThrottleInterval</key>+ <integer>10</integer>+</dict>+</plist>\ No newline at end of filediff --git a/.claude/voice-server/run-server.sh b/.claude/voice-server/run-server.shindex 6f27f249..9f9282a3 100755--- a/.claude/voice-server/run-server.sh+++ b/.claude/voice-server/run-server.sh@@ -1,9 +1,13 @@#!/usr/bin/env bash# Voice Server Launcher Script-export HOME=/Users/daniel-export PATH=/Users/daniel/.bun/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin+# Use current user's HOME if not set+export HOME="${HOME:-$(eval echo ~$USER)}"+export PATH="$HOME/.bun/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"export PORT=8888-cd /Users/daniel/.claude/voice-server-exec /Users/daniel/.bun/bin/bun run server.ts\ No newline at end of file+# Use PAI_HOME if set, otherwise default to HOME+PAI_HOME="${PAI_HOME:-$HOME}"++cd "${PAI_HOME}/.claude/voice-server"+exec "$HOME/.bun/bin/bun" run server.ts\ No newline at end of filediff --git a/.gitignore b/.gitignorenew file mode 100644index 00000000..fef1ce1d--- /dev/null+++ b/.gitignore@@ -0,0 +1,62 @@+# macOS+.DS_Store+.AppleDouble+.LSOverride+Icon+._*+.Spotlight-V100+.Trashes++# Environment files+.env+.env.local+.env.*.local+*.env++# API keys and secrets+*.pem+*.key+*.cert+*.p12+*.pfx+*_rsa+*_rsa.pub+*.crt+*.cer++# Logs+*.log+logs/+Library/Logs/++# Node/Bun+node_modules/+.npm+.yarn+.pnp.*++# IDE+.vscode/+.idea/+*.swp+*.swo+*~++# Temporary files+tmp/+temp/+*.tmp++# Build outputs+dist/+build/+out/++# Cache+.cache/+*.cache++# Personal/Private data+private/+secrets/+credentials/diff --git a/README.md b/README.mdindex 21f9c05c..4745c871 100644--- a/README.md+++ b/README.md@@ -26,6 +26,14 @@</div>+#### 💥 UPDATES (September 21, 2025)++- **Security Cleanup**: Cleaned up voice server code by using spawn instead of exec and restricting CORS to localhost only+- **PAI_HOME Support**: Updated all components to properly honor the `PAI_HOME` environment variable - no more hardcoded paths!+- **Comprehensive Documentation**: Created full system documentation under `~/.claude/documentation/` covering architecture, UFC context system, hook system, and all agents+- **Dynamic MCP Detection**: Statusline command now dynamically counts MCPs using `claude mcp list` instead of static configuration files (PR #12)+- **Voice Server Improvements**: Added input validation, rate limiting, and secure command execution throughout the voice notification system+#### 💥 UPDATES (September 20, 2025)- I've now added the `/voice-server` directory under `.claude`. This should give you the same voice capabilities I have, once you set your Eleven Labs API key.