Created At: 2026-07-19T19:59:06+03:00 Completed At: 2026-07-19T19:59:06+03:00 File Path: `file:///Users/khaledahmedmohamed/designs-content/vip/setting/vip_hub_merged.html` Total Lines: 1151 Total Bytes: 590554 Showing lines 1010 to 1035 The following code has been modified to include a line number before every line, in the format: : . Please note that any changes targeting the original code should remove the line number, colon, and leading space. 1010: {title:"Dev tools (2)",tag:"devtools",color:"c-yellow",desc:"Each entry: Alias name | Command | Use — three separate copyable fields.",fields:[{l:"aider-gemma",v:"cd ~/Desktop/ready\\ apps && aider --openai-api-base https://api.sea-lion.ai/v1 --openai-api-key $LION_API_KEY --model openai/aisingapore/Gemma-SEA-LION-v4-27B-IT --no-show-model-warnings",use:"Open Aider on ~/Desktop/ready apps with SEA-LION Gemma model.",alias:true},{l:"chrome-boost",v:"/Users/khaledahmedmohamed/chrome-boost",use:"Chrome memory helper / booster script.",alias:true}],cmd:"cd ~/Desktop/ready\\ apps && aider --openai-api-base https://api.sea-lion.ai/v1 --openai-api-key $LION_API_KEY --model openai/aisingapore/Gemma-SEA-LION-v4-27B-IT --no-show-model-warnings\n/Users/khaledahmedmohamed/chrome-boost"}, 1011: {title:"MuAPI / Prodia (14)",tag:"muapi-media",color:"c-purple",desc:"Each entry: Alias name | Command | Use — three separate copyable fields.",fields:[{l:"muapi-audio",v:"muapi audio create",use:"Create audio via MuAPI.",alias:true},{l:"muapi-bal",v:"muapi account balance",use:"Show MuAPI account balance.",alias:true},{l:"muapi-i2v",v:"muapi video from-image",use:"Image-to-video generation.",alias:true},{l:"muapi-img",v:"muapi image generate",use:"Text-to-image generation (default model).",alias:true},{l:"muapi-img-best",v:"muapi image generate --model nano-banana-pro",use:"Image gen with nano-banana-pro (best quality).",alias:true},{l:"muapi-img-cheap",v:"muapi image generate --model flux-schnell",use:"Image gen with flux-schnell (cheap/fast).",alias:true},{l:"muapi-models",v:"muapi models list",use:"List available MuAPI models.",alias:true},{l:"muapi-social-help",v:"cat ~/.muapi/agent/HYBRID47_SYSTEM.md",use:"Print Hybrid47 system help from ~/.muapi/agent.",alias:true},{l:"muapi-up",v:"muapi enhance upscale",use:"Upscale / enhance image.",alias:true},{l:"muapi-vid",v:"muapi video generate",use:"Text-to-video generation.",alias:true},{l:"muapi-vid-best",v:"muapi video generate --model veo3.1",use:"Video gen with veo3.1 (best).",alias:true},{l:"muapi-vid-cheap",v:"muapi video generate --model wan2.2-5b-fast",use:"Video gen with wan2.2-5b-fast (cheap).",alias:true},{l:"muapi-vid-fast",v:"muapi video generate --model seedance-pro-fast",use:"Video gen with seedance-pro-fast.",alias:true},{l:"muapi-who",v:"muapi auth status",use:"MuAPI auth status.",alias:true}],cmd:"muapi audio create\nmuapi account balance\nmuapi video from-image\nmuapi image generate\nmuapi image generate --model nano-banana-pro\nmuapi image generate --model flux-schnell\nmuapi models list\ncat ~/.muapi/agent/HYBRID47_SYSTEM.md\nmuapi enhance upscale\nmuapi video generate\nmuapi video generate --model veo3.1\nmuapi video generate --model wan2.2-5b-fast\nmuapi video generate --model seedance-pro-fast\nmuapi auth status"}, 1012: {title:"RAM / Memory (5)",tag:"ram-tools",color:"c-red",desc:"Each entry: Alias name | Command | Use — three separate copyable fields.",fields:[{l:"ram",v:"echo \"RAM snapshot\" && (memory_pressure -Q 2>/dev/null || vm_stat | head -20)",use:"Quick RAM pressure / vm_stat snapshot.",alias:true},{l:"ramclean",v:"sudo purge && echo \"purge done\"",use:"Purge inactive memory (needs sudo).",alias:true},{l:"ramguard",v:"bash ~/scripts/ram-guard.sh",use:"Run ram-guard.sh monitor.",alias:true},{l:"ramhogs",v:"top -l 1 -n 15 -o mem -stats pid,command,mem,cpu | tail -17",use:"Top 15 processes by memory.",alias:true},{l:"ramwarn",v:"bash ~/scripts/ram-guard.sh --check",use:"One-shot ram-guard check.",alias:true}],cmd:"echo \"RAM snapshot\" && (memory_pressure -Q 2>/dev/null || vm_stat | head -20)\nsudo purge && echo \"purge done\"\nbash ~/scripts/ram-guard.sh\ntop -l 1 -n 15 -o mem -stats pid,command,mem,cpu | tail -17\nbash ~/scripts/ram-guard.sh --check"}, 1013: {title:"SSH / Servers (9)",tag:"ssh-servers",color:"c-orange",desc:"Each entry: Alias name | Command | Use — three separate copyable fields.",fields:[{l:"aidev",v:"ssh aidev",use:"SSH to ai-developer host (config alias).",alias:true},{l:"contabo2",v:"ssh contabo2",use:"SSH to Contabo VPS (config alias).",alias:true},{l:"hetzner",v:"ssh hetzner",use:"SSH to Hetzner/Dokploy VPS (config alias).",alias:true},{l:"hostinger",v:"ssh hostinger",use:"SSH to Hostinger VPS (config alias).",alias:true},{l:"server",v:"ssh -i /Users/khaledahmedmohamed/ssh-keys-server/server_access_key root@213.199.36.17",use:"SSH to 213.199.36.17 with server_access_key.",alias:true},{l:"srv",v:"ssh -i /Users/khaledahmedmohamed/ssh-keys-server/server_access_key root@213.199.36.17",use:"Same as server — 213.199.36.17 root via server_access_key.",alias:true},{l:"ssh-aidev",v:"ssh -i ~/.ssh/ai_developer_key root@213.199.36.17",use:"SSH ai-developer with ~/.ssh/ai_developer_key.",alias:true},{l:"ssh-contabo",v:"ssh -i ~/.ssh/contabo2_new1 root@149.102.150.185",use:"SSH Contabo with contabo2_new1 key.",alias:true},{l:"ssh-hetzner",v:"ssh -i ~/.ssh/hetzner_dokploy root@46.62.228.173",use:"SSH Hetzner with hetzner_dokploy key.",alias:true}],cmd:"ssh aidev\nssh contabo2\nssh hetzner\nssh hostinger\nssh -i /Users/khaledahmedmohamed/ssh-keys-server/server_access_key root@213.199.36.17\nssh -i /Users/khaledahmedmohamed/ssh-keys-server/server_access_key root@213.199.36.17\nssh -i ~/.ssh/ai_developer_key root@213.199.36.17\nssh -i ~/.ssh/contabo2_new1 root@149.102.150.185\nssh -i ~/.ssh/hetzner_dokploy root@46.62.228.173"}, 1014: {title:"Screen / Mic Recording (15)",tag:"recording",color:"c-pink",desc:"Each entry: Alias name | Command | Use — three separate copyable fields.",fields:[{l:"list-mics",v:"ffmpeg -f avfoundation -list_devices true -i \"\"",use:"Lists all AVFoundation audio devices currently detected by macOS.",alias:true},{l:"record-check",v:"$HOME/Desktop/marketing/screen recording prompts/scripts/check-devices",use:"Initiates screen/audio recording via ffmpeg with preset dimensions, platforms, or inputs.",alias:true},{l:"record-convert-vertical",v:"$HOME/Desktop/marketing/screen recording prompts/scripts/convert-vertical",use:"Initiates screen/audio recording via ffmpeg with preset dimensions, platforms, or inputs.",alias:true},{l:"record-instagram",v:"$HOME/Desktop/marketing/screen recording prompts/scripts/record-instagram",use:"Initiates screen/audio recording via ffmpeg with preset dimensions, platforms, or inputs.",alias:true},{l:"record-mic",v:"$HOME/Desktop/marketing/screen recording prompts/scripts/record-mic-only",use:"Initiates screen/audio recording via ffmpeg with preset dimensions, platforms, or inputs.",alias:true},{l:"record-mic-ig",v:"rec-ig",use:"Initiates screen/audio recording via ffmpeg with preset dimensions, platforms, or inputs.",alias:true},{l:"record-mic-tt",v:"rec-tt",use:"Initiates screen/audio recording via ffmpeg with preset dimensions, platforms, or inputs.",alias:true},{l:"record-mic-yt",v:"rec-yt",use:"Initiates screen/audio recording via ffmpeg with preset dimensions, platforms, or inputs.",alias:true},{l:"record-setup-audio",v:"$HOME/Desktop/marketing/screen recording prompts/scripts/setup-audio",use:"Initiates screen/audio recording via ffmpeg with preset dimensions, platforms, or inputs.",alias:true},{l:"record-system",v:"$HOME/Desktop/marketing/screen recording prompts/scripts/record-system",use:"Initiates screen/audio recording via ffmpeg with preset dimensions, platforms, or inputs.",alias:true},{l:"record-system-ig",v:"rec-sys-ig",use:"Initiates screen/audio recording via ffmpeg with preset dimensions, platforms, or inputs.",alias:true},{l:"record-system-tt",v:"rec-sys-tt",use:"Initiates screen/audio recording via ffmpeg with preset dimensions, platforms, or inputs.",alias:true},{l:"record-system-yt",v:"rec-sys-yt",use:"Initiates screen/audio recording via ffmpeg with preset dimensions, platforms, or inputs.",alias:true},{l:"record-tiktok",v:"$HOME/Desktop/marketing/screen recording prompts/scripts/record-tiktok",use:"Initiates screen/audio recording via ffmpeg with preset dimensions, platforms, or inputs.",alias:true},{l:"record-youtube",v:"$HOME/Desktop/marketing/screen recording prompts/scripts/record-youtube",use:"Initiates screen/audio recording via ffmpeg with preset dimensions, platforms, or inputs.",alias:true}],cmd:"ffmpeg -f avfoundation -list_devices true -i \"\"\n$HOME/Desktop/marketing/screen recording prompts/scripts/check-devices\n$HOME/Desktop/marketing/screen recording prompts/scripts/convert-vertical\n$HOME/Desktop/marketing/screen recording prompts/scripts/record-instagram\n$HOME/Desktop/marketing/screen recording prompts/scripts/record-mic-only\nrec-ig\nrec-tt\nrec-yt\n$HOME/Desktop/marketing/screen recording prompts/scripts/setup-audio\n$HOME/Desktop/marketing/screen recording prompts/scripts/record-system\nrec-sys-ig\nrec-sys-tt\nrec-sys-yt\n$HOME/Desktop/marketing/screen recording prompts/scripts/record-tiktok\n$HOME/Desktop/marketing/screen recording prompts/scripts/record-youtube"}, 1015: {title:"gocode CLI (21)",tag:"gocode-cli",color:"c-cyan",desc:"Each entry: Alias name | Command | Use — three separate copyable fields.",fields:[{l:"gocode-auto",v:"gocode chat --dangerously-skip-permissions",use:"General system shortcut.",alias:true},{l:"gocode-cheap-agent",v:"gocode-qwen-auto",use:"General system shortcut.",alias:true},{l:"gocode-glm",v:"gocode-use-zai; gocode chat --model glm-4.5-flash",use:"General system shortcut.",alias:true},{l:"gocode-glm-air",v:"gocode-use-zai; gocode chat --model glm-4.5-air --dangerously-skip-permissions",use:"General system shortcut.",alias:true},{l:"gocode-glm-auto",v:"gocode-use-zai; gocode chat --model glm-4.5-flash --dangerously-skip-permissions",use:"General system shortcut.",alias:true},{l:"gocode-glm-strong",v:"gocode-use-zai; gocode chat --model glm-4.7 --dangerously-skip-permissions",use:"General system shortcut.",alias:true},{l:"gocode-hybrid",v:"_gocode_openrouter_paid_env; gocode chat --model deepseek/deepseek-v3.2",use:"General system shortcut.",alias:true},{l:"gocode-hybrid-auto",v:"_gocode_openrouter_paid_env; gocode chat --model deepseek/deepseek-v3.2 --dangerously-skip-permissions",use:"General system shortcut.",alias:true},{l:"gocode-omni",v:"_gocode_openrouter_env; gocode chat --model nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free",use:"General system shortcut.",alias:true},{l:"gocode-omni-auto",v:"_gocode_openrouter_env; gocode chat --model nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free --dangerously-skip-permissions",use:"General system shortcut.",alias:true},{l:"gocode-omni-paid",v:"gocode-use-openrouter; gocode chat --model nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free",use:"General system shortcut.",alias:true},{l:"gocode-qwen",v:"_gocode_openrouter_paid_env; gocode chat --model qwen/qwen3-coder",use:"General system shortcut.",alias:true},{l:"gocode-qwen-auto",v:"_gocode_openrouter_paid_env; gocode chat --model qwen/qwen3-coder --dangerously-skip-permissions",use:"General system shortcut.",alias:true},{l:"gocode-qwen-next",v:"_gocode_openrouter_paid_env; gocode chat --model qwen/qwen3-coder-next --dangerously-skip-permissions",use:"General system shortcut.",alias:true},{l:"gocode-r1",v:"_gocode_deepseek_direct_env; gocode chat --model deepseek-reasoner",use:"General system shortcut.",alias:true},{l:"gocode-r1-auto",v:"_gocode_deepseek_direct_env; gocode chat --model deepseek-reasoner --dangerously-skip-permissions",use:"General system shortcut.",alias:true},{l:"gocode-super",v:"_gocode_openrouter_env; gocode chat --model nvidia/nemotron-3-super-120b-a12b:free",use:"General system shortcut.",alias:true},{l:"gocode-ultra",v:"_gocode_openrouter_env; gocode chat --model nvidia/nemotron-3-ultra-550b-a55b:free",use:"General system shortcut.",alias:true},{l:"gocode-ultra-auto",v:"_gocode_openrouter_env; gocode chat --model nvidia/nemotron-3-ultra-550b-a55b:free --dangerously-skip-permissions",use:"General system shortcut.",alias:true},{l:"gocode-ultra-paid",v:"gocode-use-openrouter; gocode chat --model nvidia/nemotron-3-ultra-550b-a55b:free",use:"General system shortcut.",alias:true},{l:"gocode-yolo",v:"gocode chat --dangerously-skip-permissions",use:"General system shortcut.",alias:true}],cmd:"gocode chat --dangerously-skip-permissions\ngocode-qwen-auto\ngocode-use-zai; gocode chat --model glm-4.5-flash\ngocode-use-zai; gocode chat --model glm-4.5-air --dangerously-skip-permissions\ngocode-use-zai; gocode chat --model glm-4.5-flash --dangerously-skip-permissions\ngocode-use-zai; gocode chat --model glm-4.7 --dangerously-skip-permissions\n_gocode_openrouter_paid_env; gocode chat --model deepseek/deepseek-v3.2\n_gocode_openrouter_paid_env; gocode chat --model deepseek/deepseek-v3.2 --dangerously-skip-permissions\n_gocode_openrouter_env; gocode chat --model nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free\n_gocode_openrouter_env; gocode chat --model nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free --dangerously-skip-permissions\ngocode-use-openrouter; gocode chat --model nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free\n_gocode_openrouter_paid_env; gocode chat --model qwen/qwen3-coder\n_gocode_openrouter_paid_env; gocode chat --model qwen/qwen3-coder --dangerously-skip-permissions\n_gocode_openrouter_paid_env; gocode chat --model qwen/qwen3-coder-next --dangerously-skip-permissions\n_gocode_deepseek_direct_env; gocode chat --model deepseek-reasoner\n_gocode_deepseek_direct_env; gocode chat --model deepseek-reasoner --dangerously-skip-permissions\n_gocode_openrouter_env; gocode chat --model nvidia/nemotron-3-super-120b-a12b:free\n_gocode_openrouter_env; gocode chat --model nvidia/nemotron-3-ultra-550b-a55b:free\n_gocode_openrouter_env; gocode chat --model nvidia/nemotron-3-ultra-550b-a55b:free --dangerously-skip-permissions\ngocode-use-openrouter; gocode chat --model nvidia/nemotron-3-ultra-550b-a55b:free\ngocode chat --dangerously-skip-permissions"}, 1016: {title:"Shell functions — Internal helpers (4)",tag:"functions",color:"c-yellow",desc:"Internal helpers used by other functions. Each entry: Alias · Command · Use (separate copy boxes). Bodies in gemini-jul-aliases.md.",fields:[{l:"_avf_audio_idx",v:"_avf_audio_idx",use:"Internal helper: resolve AVFoundation audio device index for ffmpeg recording.",alias:true},{l:"_gocode_deepseek_direct_env",v:"_gocode_deepseek_direct_env",use:"Internal: set env vars for DeepSeek direct API before gocode chat/prompt.",alias:true},{l:"_gocode_openrouter_env",v:"_gocode_openrouter_env",use:"Internal: set OpenRouter free-tier env for gocode models.",alias:true},{l:"_gocode_openrouter_paid_env",v:"_gocode_openrouter_paid_env",use:"Internal: set OpenRouter paid env for gocode models.",alias:true}],cmd:"_avf_audio_idx\n_gocode_deepseek_direct_env\n_gocode_openrouter_env\n_gocode_openrouter_paid_env"},{title:"Shell functions — Downloads / yt-dlp (9)",tag:"functions",color:"c-green",desc:"Video/audio download helpers. Usage: function \"URL\". Each entry: Alias · Command · Use.",fields:[{l:"dl-1080",v:"dl-1080 \"URL\"",use:"Download best video up to 1080p (yt-dlp) into ~/Downloads/Videos.",alias:true},{l:"dl-720",v:"dl-720 \"URL\"",use:"Download best video up to 720p (yt-dlp).",alias:true},{l:"dl-480",v:"dl-480 \"URL\"",use:"Download best video up to 480p (yt-dlp).",alias:true},{l:"dl-lowest",v:"dl-lowest \"URL\"",use:"Download lowest-size video stream (bandwidth saver).",alias:true},{l:"dl-audio-lowest",v:"dl-audio-lowest \"URL\"",use:"Download lowest-size audio-only stream.",alias:true},{l:"dl-m4a",v:"dl-m4a \"URL\"",use:"Download audio as M4A.",alias:true},{l:"dl-m4a-std",v:"dl-m4a-std \"URL\"",use:"Download standard-quality M4A audio.",alias:true},{l:"dl-mp3",v:"dl-mp3 \"URL\"",use:"Download / convert audio to MP3.",alias:true},{l:"dl-use-browser",v:"dl-use-browser",use:"Enable yt-dlp browser cookies/profile flags for restricted sites.",alias:true}],cmd:"dl-1080\ndl-720\ndl-480\ndl-lowest\ndl-audio-lowest\ndl-m4a\ndl-m4a-std\ndl-mp3\ndl-use-browser"},{title:"Shell functions — gocode model switchers (12)",tag:"functions",color:"c-cyan",desc:"Switch gocode API/model env. Run switcher, then gocode chat/prompt. Each: Alias · Command · Use.",fields:[{l:"gocode-use-zai",v:"gocode-use-zai",use:"Point gocode at Z.AI / GLM primary endpoint + key.",alias:true},{l:"gocode-use-zai-paas",v:"gocode-use-zai-paas",use:"Point gocode at Z.AI PaaS endpoint.",alias:true},{l:"gocode-use-zai-secondary",v:"gocode-use-zai-secondary",use:"Point gocode at Z.AI secondary endpoint.",alias:true},{l:"gocode-use-openrouter",v:"gocode-use-openrouter",use:"Point gocode at OpenRouter (paid keys).",alias:true},{l:"gocode-use-openrouter-free",v:"gocode-use-openrouter-free",use:"Point gocode at OpenRouter free models env.",alias:true},{l:"gocode-use-deepseek-r1",v:"gocode-use-deepseek-r1",use:"Switch gocode to DeepSeek R1 / reasoner direct path.",alias:true},{l:"gocode-use-hybrid",v:"gocode-use-hybrid",use:"Switch gocode to hybrid DeepSeek via OpenRouter paid.",alias:true},{l:"gocode-use-qwen-coder",v:"gocode-use-qwen-coder",use:"Switch gocode to Qwen3 coder model path.",alias:true},{l:"gocode-use-nemotron-omni",v:"gocode-use-nemotron-omni",use:"Switch gocode to Nemotron Omni free model.",alias:true},{l:"gocode-use-nemotron-super",v:"gocode-use-nemotron-super",use:"Switch gocode to Nemotron Super free model.",alias:true},{l:"gocode-use-nemotron-ultra",v:"gocode-use-nemotron-ultra",use:"Switch gocode to Nemotron Ultra free model.",alias:true},{l:"gocode-use-muapi-chat-proxy",v:"gocode-use-muapi-chat-proxy",use:"Route gocode chat through MuAPI chat proxy.",alias:true}],cmd:"gocode-use-zai\ngocode-use-zai-paas\ngocode-use-zai-secondary\ngocode-use-openrouter\ngocode-use-openrouter-free\ngocode-use-deepseek-r1\ngocode-use-hybrid\ngocode-use-qwen-coder\ngocode-use-nemotron-omni\ngocode-use-nemotron-super\ngocode-use-nemotron-ultra\ngocode-use-muapi-chat-proxy"},{title:"Shell functions — gocode one-shot prompts (8)",tag:"functions",color:"c-blue",desc:"One-shot gocode prompt helpers. Usage: function \"your prompt\". Each: Alias · Command · Use.",fields:[{l:"gocode-glm-prompt",v:"gocode-glm-prompt \"prompt\"",use:"One-shot gocode prompt using ZAI/GLM free model.",alias:true},{l:"gocode-hybrid-prompt",v:"gocode-hybrid-prompt \"prompt\"",use:"One-shot gocode prompt on hybrid/DeepSeek path.",alias:true},{l:"gocode-qwen-prompt",v:"gocode-qwen-prompt \"prompt\"",use:"One-shot gocode prompt with Qwen coder.",alias:true},{l:"gocode-r1-prompt",v:"gocode-r1-prompt \"prompt\"",use:"One-shot gocode prompt with DeepSeek R1 reasoner.",alias:true},{l:"gocode-omni-prompt",v:"gocode-omni-prompt \"prompt\"",use:"One-shot gocode prompt with Nemotron Omni free.",alias:true},{l:"gocode-ultra-prompt",v:"gocode-ultra-prompt \"prompt\"",use:"One-shot gocode prompt with Nemotron Ultra free.",alias:true},{l:"gocode-omni-work",v:"gocode-omni-work",use:"Interactive/work session with Nemotron Omni model.",alias:true},{l:"gocode-init-muapi",v:"gocode-init-muapi",use:"Initialize MuAPI integration for the gocode session.",alias:true}],cmd:"gocode-glm-prompt\ngocode-hybrid-prompt\ngocode-qwen-prompt\ngocode-r1-prompt\ngocode-omni-prompt\ngocode-ultra-prompt\ngocode-omni-work\ngocode-init-muapi"},{title:"Shell functions — Grok helpers (2)",tag:"functions",color:"c-purple",desc:"Grok CLI session export helpers. Each: Alias · Command · Use.",fields:[{l:"grok-copy",v:"grok-copy [SESSION_ID]",use:"Export a Grok session to clipboard (lists sessions if no ID).",alias:true},{l:"grok-copy-last",v:"grok-copy-last",use:"Copy the last Grok response/export to clipboard.",alias:true}],cmd:"grok-copy\ngrok-copy-last"},{title:"Shell functions — MuAPI social & Prodia (5)",tag:"functions",color:"c-pink",desc:"Media generation helpers. Each: Alias · Command · Use.",fields:[{l:"muapi-social-img",v:"muapi-social-img \"prompt\"",use:"Generate social-ready image via MuAPI social pipeline.",alias:true},{l:"muapi-social-vid",v:"muapi-social-vid \"prompt\"",use:"Generate social-ready video via MuAPI social pipeline.",alias:true},{l:"prodia-img",v:"prodia-img \"prompt\" [model] [outfile]",use:"Prodia text-to-image (default model).",alias:true},{l:"prodia-img-cheap",v:"prodia-img-cheap \"prompt\" [outfile]",use:"Prodia image via cheap/fast Flux Schnell path.",alias:true},{l:"prodia-img-fast",v:"prodia-img-fast \"prompt\" [outfile]",use:"Prodia image fast path (Flux Schnell).",alias:true}],cmd:"muapi-social-img\nmuapi-social-vid\nprodia-img\nprodia-img-cheap\nprodia-img-fast"},{title:"Shell functions — RAM (1)",tag:"functions",color:"c-red",desc:"Memory cleanup. Each: Alias · Command · Use.",fields:[{l:"ramfix",v:"ramfix",use:"Aggressive macOS RAM cleanup / memory-fix helper.",alias:true}],cmd:"ramfix"},{title:"Shell functions — Screen recording rec-* (14)",tag:"functions",color:"c-orange",desc:"ffmpeg/avfoundation screen + mic presets. Each: Alias · Command · Use.",fields:[{l:"rec-screen",v:"rec-screen",use:"Generic screen record via ffmpeg avfoundation.",alias:true},{l:"rec-screen-ig",v:"rec-screen-ig",use:"Screen record Instagram aspect/preset.",alias:true},{l:"rec-screen-tt",v:"rec-screen-tt",use:"Screen record TikTok aspect/preset.",alias:true},{l:"rec-screen-yt",v:"rec-screen-yt",use:"Screen record YouTube aspect/preset.",alias:true},{l:"rec-short",v:"rec-short",use:"Short-form screen record preset.",alias:true},{l:"rec-vid",v:"rec-vid",use:"General video screen-record helper.",alias:true},{l:"rec-ig",v:"rec-ig",use:"Record for Instagram size with mic.",alias:true},{l:"rec-tt",v:"rec-tt",use:"Record for TikTok size with mic.",alias:true},{l:"rec-yt",v:"rec-yt",use:"Record for YouTube size with mic.",alias:true},{l:"rec-sys-ig",v:"rec-sys-ig",use:"System-audio record Instagram preset.",alias:true},{l:"rec-sys-tt",v:"rec-sys-tt",use:"System-audio record TikTok preset.",alias:true},{l:"rec-sys-yt",v:"rec-sys-yt",use:"System-audio record YouTube preset.",alias:true},{l:"rec-stop",v:"rec-stop",use:"Stop active recording cleanly.",alias:true},{l:"rec-kill",v:"rec-kill",use:"Force-kill stuck recording processes.",alias:true}],cmd:"rec-screen\nrec-screen-ig\nrec-screen-tt\nrec-screen-yt\nrec-short\nrec-vid\nrec-ig\nrec-tt\nrec-yt\nrec-sys-ig\nrec-sys-tt\nrec-sys-yt\nrec-stop\nrec-kill"},{title:"Shell functions — vrec audio routing (11)",tag:"functions",color:"c-teal",desc:"Video record with mic/system mix routes + mic test. Each: Alias · Command · Use.",fields:[{l:"test-mic",v:"test-mic",use:"Test microphone capture (ffmpeg / AVFoundation).",alias:true},{l:"vrec",v:"vrec",use:"Video record wrapper (default audio routing).",alias:true},{l:"vrec-external",v:"vrec-external",use:"Record with external mic only.",alias:true},{l:"vrec-internal",v:"vrec-internal",use:"Record with built-in/internal mic only.",alias:true},{l:"vrec-system",v:"vrec-system",use:"Record system audio only.",alias:true},{l:"vrec-mix-all",v:"vrec-mix-all",use:"Record mixing all available audio sources.",alias:true},{l:"vrec-mix-dual-mic",v:"vrec-mix-dual-mic",use:"Record dual-mic mix.",alias:true},{l:"vrec-mix-external-system",v:"vrec-mix-external-system",use:"Mix external mic + system audio.",alias:true},{l:"vrec-mix-internal-system",v:"vrec-mix-internal-system",use:"Mix internal mic + system audio.",alias:true},{l:"vrec-mix-tracks",v:"vrec-mix-tracks",use:"Record separate mixable audio tracks.",alias:true},{l:"vstop",v:"vstop",use:"Stop vrec / video recording session.",alias:true}],cmd:"test-mic\nvrec\nvrec-external\nvrec-internal\nvrec-system\nvrec-mix-all\nvrec-mix-dual-mic\nvrec-mix-external-system\nvrec-mix-internal-system\nvrec-mix-tracks\nvstop"}]; 1017: // deferred: shell aliases (many boxes) — see hubBootHeavy() 1018: const VERIFY_LAYER=[ 1019: {title:"Source — Anti-False-Positive Verification Layer v2",tag:"Source",color:"c-red",desc:"Full MD stays source of truth (engine code). Hub holds two paste-ready agent prompts.",fields:[{l:"Full MD path",v:"/Users/khaledahmedmohamed/designs-content/vip/Code of Anti-False-Positive Verification layer.md",link:true,href:"file:///Users/khaledahmedmohamed/designs-content/vip/Code%20of%20Anti-False-Positive%20Verification%20layer.md",mdLink:true},{l:"Public API",v:"Status, CheckResult, VerificationEngine, run_cmd, verify_with_self_heal"},{l:"Requirements",v:"Python 3.10+, ffmpeg, ffprobe · optional whisper, psutil"}],cmd:"Open and follow: /Users/khaledahmedmohamed/designs-content/vip/Code of Anti-False-Positive Verification layer.md"}, 1020: {title:"Agent Prompt 1 — Protocol & Anti-Mutation",tag:"Agent",color:"c-green",desc:"Standing rules for any AI agent. Copy Prompt (full) or green CMD and paste into the agent.",fields:[{l:"Prompt (full)",v:"## VERIFICATION PROTOCOL — MANDATORY, NEVER SKIP\n\nYou have access to `verification_engine.py` (the `VerificationEngine` class).\nYou MUST follow these rules without exception. Violating any rule = task failure.\n\n### Core Rules\n\n1. **Three-state results.** Every check returns PASS, FAIL, or INCONCLUSIVE.\n Only PASS means success. FAIL and INCONCLUSIVE both **block** you from\n declaring \"done\" or moving to the next task.\n\n2. **After EVERY sub-task that produces a file:**\n ```python\n eng.checkpoint(task_name, \"complete\", output_path)\n result = eng.verify_file(output_path, expected_duration=X)\n if not result.ok:\n # STOP. Diagnose. Fix. Re-verify. Do NOT proceed.\n ```\n\n3. **After producing ANY video output:**\n ```python\n result = eng.capture_inspection_frames(video_path, output_dir, (0.25, 0.50, 0.75))\n if not result.ok:\n # STOP. Frame extraction failed. Investigate.\n drift = eng.measure_av_drift(video_path)\n if not drift.ok:\n # STOP. A/V drift detected. Re-render with apad + -shortest.\n ```\n\n4. **Before declaring \"done\":**\n ```python\n all_pass, report = eng.final_gate(\n required_outputs={\"main_video\": \"output/final.mp4\", ...},\n expected_durations={\"main_video\": 30.0, ...},\n require_video=True, require_audio=True,\n )\n if not all_pass:\n # You are UNABLE to say \"done\". Fix every non-PASS output.\n ```\n\n### Anti-Mutation Rules (CRITICAL)\n\nYou MUST NOT do any of the following. Each is a verification-defeating mutation:\n\n| # | Forbidden Action | Why It Defeats Verification |\n|---|------------------|-----------------------------|\n| 1 | Skip calling `verify_file()` after producing output | Unverified output = unknown quality |\n| 2 | Treat INCONCLUSIVE as PASS | \"I don't know\" ≠ \"it works\" |\n| 3 | Catch exceptions from the engine and continue | A crashed verifier = a skipped verifier |\n| 4 | Hardcode `True` or `Status.PASS` anywhere | Makes the check decorative, not functional |\n| 5 | Remove or comment out verification calls | Defeats the entire layer |\n| 6 | Reduce `max_attempts` in self-heal to 0 or 1 | Disables retry logic |\n| 7 | Set `duration_tolerance_sec` to a huge value (>5s) | Makes duration checks meaningless |\n| 8 | Skip `final_gate()` before declaring done | The gate IS the definition of \"done\" |\n| 9 | Report \"done\" if ANY CheckResult.ok is False | Only all-PASS = done |\n| 10| Modify `verification_engine.py` during a task | The verifier is immutable during execution |\n\n### Self-Healing Protocol (Bounded)\n\nWhen a check returns FAIL:\n1. Read `result.detail` and `result.evidence` — they contain the diagnosis.\n2. Search for the exact error string if needed.\n3. Apply a targeted fix.\n4. Re-run the check.\n5. Maximum 3 attempts. If still failing after 3, report FAIL to the user with full evidence.\n6. **NEVER** fake a PASS to escape a retry loop.\n\n```python\nfrom verification_engine import verify_with_self_heal\n\nresult = verify_with_self_heal(\n check_fn=lambda: eng.verify_file(\"output/final.mp4\", expected_duration=30.0),\n fix_fn=lambda r: re_render_video(r.detail), # your fix logic\n max_attempts=3,\n)\nif not result.ok:\n report_failure_to_user(result)\n```\n\n### Error Classification\n\nWhen a check fails, classify the error before acting:\n\n| Error Type | Example | Action |\n|------------|---------|--------|\n| **Missing binary** | \"ffprobe not found\" | Install it or report to user. Do NOT skip the check. |\n| **Corrupt output** | \"Invalid media\" | Re-render from last checkpoint. |\n| **Duration mismatch** | \"got 28.5s, expected 30.0s\" | Adjust input timing and re-render. |\n| **A/V drift** | \"drift 1.2s exceeds 0.5s\" | Add `apad` + `-shortest` to ffmpeg command. |\n| **Silence** | \"mean_volume=-91dB\" | Audio track is wrong or missing. Re-mux. |\n| **Scene count wrong** | \"3 != expected 5\" | Images/transitions not rendering. Check timeline. |\n| **INCONCLUSIVE** | \"whisper not on PATH\" | The tool is missing. Install it OR tell the user. Do NOT assume PASS. |\n\n### What \"Done\" Means\n\nYou may ONLY say \"done\", \"complete\", \"finished\", or equivalent when ALL of these are true:\n- [ ] `final_gate()` returned `all_pass == True`\n- [ ] Every `CheckResult` in the run is `Status.PASS`\n- [ ] Inspection frames were captured and are non-empty\n- [ ] A/V drift is < 0.5s (if applicable)\n- [ ] `progress.json` shows every task as `verified: true` ",promptFull:true}],cmd:"## VERIFICATION PROTOCOL — MANDATORY, NEVER SKIP\n\nYou have access to `verification_engine.py` (the `VerificationEngine` class).\nYou MUST follow these rules without exception. Violating any rule = task failure.\n\n### Core Rules\n\n1. **Three-state results.** Every check returns PASS, FAIL, or INCONCLUSIVE.\n Only PASS means success. FAIL and INCONCLUSIVE both **block** you from\n declaring \"done\" or moving to the next task.\n\n2. **After EVERY sub-task that produces a file:**\n ```python\n eng.checkpoint(task_name, \"complete\", output_path)\n result = eng.verify_file(output_path, expected_duration=X)\n if not result.ok:\n # STOP. Diagnose. Fix. Re-verify. Do NOT proceed.\n ```\n\n3. **After producing ANY video output:**\n ```python\n result = eng.capture_inspection_frames(video_path, output_dir, (0.25, 0.50, 0.75))\n if not result.ok:\n # STOP. Frame extraction failed. Investigate.\n drift = eng.measure_av_drift(video_path)\n if not drift.ok:\n # STOP. A/V drift detected. Re-render with apad + -shortest.\n ```\n\n4. **Before declaring \"done\":**\n ```python\n all_pass, report = eng.final_gate(\n required_outputs={\"main_video\": \"output/final.mp4\", ...},\n expected_durations={\"main_video\": 30.0, ...},\n require_video=True, require_audio=True,\n )\n if not all_pass:\n # You are UNABLE to say \"done\". Fix every non-PASS output.\n ```\n\n### Anti-Mutation Rules (CRITICAL)\n\nYou MUST NOT do any of the following. Each is a verification-defeating mutation:\n\n| # | Forbidden Action | Why It Defeats Verification |\n|---|------------------|-----------------------------|\n| 1 | Skip calling `verify_file()` after producing output | Unverified output = unknown quality |\n| 2 | Treat INCONCLUSIVE as PASS | \"I don't know\" ≠ \"it works\" |\n| 3 | Catch exceptions from the engine and continue | A crashed verifier = a skipped verifier |\n| 4 | Hardcode `True` or `Status.PASS` anywhere | Makes the check decorative, not functional |\n| 5 | Remove or comment out verification calls | Defeats the entire layer |\n| 6 | Reduce `max_attempts` in self-heal to 0 or 1 | Disables retry logic |\n| 7 | Set `duration_tolerance_sec` to a huge value (>5s) | Makes duration checks meaningless |\n| 8 | Skip `final_gate()` before declaring done | The gate IS the definition of \"done\" |\n| 9 | Report \"done\" if ANY CheckResult.ok is False | Only all-PASS = done |\n| 10| Modify `verification_engine.py` during a task | The verifier is immutable during execution |"}, 1021: {title:"Agent Prompt 2 — Engine, Self-Heal & Debug",tag:"Agent",color:"c-purple",desc:"Execution kit: API surface, pipeline, bounded self-heal, traps. Paste after Prompt 1 or alone for media QA runs.",fields:[{l:"Prompt (full)",v:"## DEBUG & ERROR-FIXING PROTOCOL\n\nWhen ANY CheckResult returns status != PASS, follow this EXACT sequence:\n\n### The Debug Loop (Never Deviate)\n1. CHECK fails (FAIL or INCONCLUSIVE)\n2. READ result.detail + result.evidence\n3. CLASSIFY the error (see table below)\n4. ISOLATE — reproduce with minimal input\n5. FIX — apply the smallest targeted change\n6. RE-VERIFY — run the SAME check again\n7. If still failing → back to step 2 (max 3 loops)\n8. If 3 loops exhausted → STOP, report to user\n\n### Step 1: READ (do not guess)\n```python\n# Always read BOTH fields before acting\nprint(f\"FAILED: {result.detail}\")\nprint(f\"EVIDENCE: {json.dumps(result.evidence, indent=2)}\")\n```\nThe answer is almost always in `result.evidence`. Do NOT guess at the cause.\n\n### Step 2: DIAGNOSE (run one command)\nBased on the error class, run the matching diagnostic:\n- File issue → `ls -la ` + `file `\n- Media issue → `ffprobe -v error -show_format -show_streams -of json `\n- Audio issue → `ffmpeg -i -af volumedetect -f null -`\n- Drift issue → `ffprobe -v error -show_entries stream=codec_type,duration -of csv=p=0 `\n\n### Step 3: FIX (one change only)\nApply the smallest possible fix. Do NOT change multiple things at once.\nIf you don't know the fix, search the exact error string.\n\n### Step 4: RE-VERIFY (mandatory)\n```python\nresult = eng.verify_file(path, expected_duration=X) # same check as before\nif not result.ok:\n # Back to Step 1. Max 3 loops total.\n```\n\n### Step 5: REPORT (if 3 loops exhausted)\nIf still failing after 3 attempts:\n```python\nprint(\"UNRESOLVED FAILURE after 3 attempts:\")\nprint(f\" Check: {result.name}\")\nprint(f\" Status: {result.status.value}\")\nprint(f\" Detail: {result.detail}\")\nprint(f\" Evidence: {json.dumps(result.evidence, indent=2)}\")\n# Ask the user for help. Do NOT fake a pass.\n```\n\n### Common ffmpeg Fix Patterns\n- **Fix A/V drift**: pad audio to match video, then trim to shortest\n `ffmpeg -y -i video.mp4 -i audio.mp3 -af \"apad\" -shortest -c:v copy -c:a aac -ar 48000 output.mp4`\n- **Fix silent audio**: normalize volume with EBU R128 loudnorm\n `ffmpeg -y -i input.mp4 -af \"loudnorm=I=-14:LRA=11:TP=-1\" -c:v copy -ar 48000 output.mp4`\n- **Fix missing audio**: mux audio in\n `ffmpeg -y -i video.mp4 -i audio.mp3 -c:v copy -c:a aac -ar 48000 -map 0:v:0 -map 1:a:0 output.mp4`\n- **Fix duration mismatch (too short)**: pad with last frame + silence\n `ffmpeg -y -i short.mp4 -vf \"tpad=stop_mode=clone:stop_duration=2\" -af \"apad=pad_dur=2\" -c:v libx264 -c:a aac -ar 48000 output.mp4`\n- **Fix VFR (variable frame rate) from images**: force constant 30fps\n `ffmpeg -y -framerate 30 -i img_%03d.jpg -c:v libx264 -pix_fmt yuv420p -r 30 output.mp4`\n\n### Debugging Traps to Avoid\n1. **Fix and Forget**: apply fix and say done without running the verification check again.\n2. **Shotgun Fix**: change 5 things at once instead of isolating one change per cycle.\n3. **Weaken the Check**: adjust duration_tolerance or silence thresholds instead of fixing output.\n4. **Swallow Exceptions**: catch exceptions from the engine to force a pass.\n5. **Retry without change**: loop check without modifying code/inputs. ",promptFull:true}],cmd:"## DEBUG & ERROR-FIXING PROTOCOL\n\nWhen ANY CheckResult returns status != PASS, follow this EXACT sequence:\n\n### The Debug Loop (Never Deviate)\n1. CHECK fails (FAIL or INCONCLUSIVE)\n2. READ result.detail + result.evidence\n3. CLASSIFY the error (see table below)\n4. ISOLATE — reproduce with minimal input\n5. FIX — apply the smallest targeted change\n6. RE-VERIFY — run the SAME check again\n7. If still failing → back to step 2 (max 3 loops)\n8. If 3 loops exhausted → STOP, report to user\n\n### Step 1: READ (do not guess)\n```python\n# Always read BOTH fields before acting\nprint(f\"FAILED: {result.detail}\")\nprint(f\"EVIDENCE: {json.dumps(result.evidence, indent=2)}\")\n```\nThe answer is almost always in `result.evidence`. Do NOT guess at the cause.\n\n### Step 2: DIAGNOSE (run one command)\nBased on the error class, run the matching diagnostic:\n- File issue → `ls -la ` + `file `\n- Media issue → `ffprobe -v error -show_format -show_streams -of json `\n- Audio issue → `ffmpeg -i -af volumedetect -f null -`\n- Drift issue → `ffprobe -v error -show_entries stream=codec_type,duration -of csv=p=0 `\n\n### Step 3: FIX (one change only)\nApply the smallest possible fix. Do NOT change multiple things at once.\nIf you don't know the fix, search the exact error string.\n\n### Step 4: RE-VERIFY (mandatory)\n```python\nresult = eng.verify_file(path, expected_duration=X) # same check as before\nif not result.ok:\n # Back to Step 1. Max 3 loops total.\n```\n\n### Step 5: REPORT (if 3 loops exhausted)\nIf still failing after 3 attempts:\n```python\nprint(\"UNRESOLVED FAILURE after 3 attempts:\")\nprint(f\" Check: {result.name}\")\nprint(f\" Status: {result.status.value}\")\nprint(f\" Detail: {result.detail}\")\nprint(f\" Evidence: {json.dumps(result.evidence, indent=2)}\")\n# Ask the user for help. Do NOT fake a pass.\n```\n\n### Common ffmpeg Fix Patterns\n- **Fix A/V drift**: pad audio to match video, then trim to shortest\n `ffmpeg -y -i video.mp4 -i audio.mp3 -af \"apad\" -shortest -c:v copy -c:a aac -ar 48000 output.mp4`\n- **Fix silent audio**: normalize volume with EBU R128 loudnorm\n `ffmpeg -y -i input.mp4 -af \"loudnorm=I=-14:LRA=11:TP=-1\" -c:v copy -ar 48000 output.mp4`\n- **Fix missing audio**: mux audio in\n `ffmpeg -y -i video.mp4 -i audio.mp3 -c:v copy -c:a aac -ar 48000 -map 0:v:0 -map 1:a:0 output.mp4`\n- **Fix duration mismatch (too short)**: pad with last frame + silence\n `ffmpeg -y -i short.mp4 -vf \"tpad=stop_mode=clone:stop_duration=2\" -af \"apad=pad_dur=2\" -c:v libx264 -c:a aac -ar 48000 output.mp4`\n- **Fix VFR (variable frame rate) from images**: force constant 30fps\n `ffmpeg -y -framerate 30 -i img_%03d.jpg -c:v libx264 -pix_fmt yuv420p -r 30 output.mp4`\n\n### Debugging Traps to Avoid\n1. **Fix and Forget**: apply fix and say done without running the verification check again.\n2. **Shotgun Fix**: change 5 things at once instead of isolating one change per cycle.\n3. **Weaken the Check**: adjust duration_tolerance or silence thresholds instead of fixing output.\n4. **Swallow Exceptions**: catch exceptions from the engine to force a pass.\n5. **Retry without change**: loop check without modifying code/inputs."} 1022: ]; 1023: // deferred: verify layer — see hubBootHeavy() 1024: 1025: // ──── PERF: defer heavy sections (aliases + verify) without changing design ──── 1026: function hubBootHeavy(){ 1027: try{ 1028: if(typeof SHELL_ALIASES!=='undefined') renderPathCards(SHELL_ALIASES,'aliasesGrid'); 1029: if(typeof VERIFY_LAYER!=='undefined') renderPathCards(VERIFY_LAYER,'verifyLayerGrid'); 1030: }catch(e){ console.warn('hubBootHeavy', e); } 1031: } 1032: if('requestIdleCallback' in window){ 1033: requestIdleCallback(hubBootHeavy,{timeout:1200}); 1034: }else{ 1035: setTimeout(hubBootHeavy,0); The above content does NOT show the entire file contents. If you need to view any lines of the file which were not shown to complete your task, call this tool again to view those lines.