78 lines
6.8 KiB
JSON
78 lines
6.8 KiB
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(git remote:*)",
|
|
"Bash(git pull:*)",
|
|
"Bash(C:/Users/d-chrka/.claude/plugins/cache/claude-plugins-official/superpowers/5.0.5/skills/brainstorming/scripts/start-server.sh --project-dir C:/work/chrka/whisper-dictation)",
|
|
"Bash(sleep:*)",
|
|
"Bash(.venv-windows/Scripts/python.exe -m pytest tests/test_config.py -v 2>&1 | tail -10)",
|
|
"Bash(/c/work/chrka/whisper-dictation/.venv-windows/Scripts/pip install:*)",
|
|
"Bash(.venv-windows/Scripts/python.exe -m pytest tests/test_config.py -v 2>&1 | tail -15)",
|
|
"Bash(.venv-windows/Scripts/python.exe -m pytest tests/test_config.py -v 2>&1)",
|
|
"Bash(Scripts/python -m pytest tests/test_config.py -v 2>&1)",
|
|
"Bash(/c/work/chrka/whisper-dictation/.venv-windows/Scripts/python.exe -m pytest /c/work/chrka/whisper-dictation/tests/test_config.py -v 2>&1)",
|
|
"Bash(.venv-windows/Scripts/python.exe -m pytest tests/ -v 2>&1)",
|
|
"Bash(.venv-windows/Scripts/python.exe -m pytest tests/test_app_log.py -v)",
|
|
"Bash(.venv-windows/Scripts/python.exe -m pytest tests/ -v)",
|
|
"Bash(.venv-windows/Scripts/python.exe -m pytest tests/test_installer.py -v)",
|
|
"Bash(.venv-windows/Scripts/python.exe build.py)",
|
|
"Bash(.venv-windows/Scripts/pip install:*)",
|
|
"Bash(.venv-windows/Scripts/pip list:*)",
|
|
"Bash(.venv-windows/Scripts/python.exe -c \"\nimport os, shutil\ndist_dir = os.path.join\\('dist', 'whisper-dictation'\\)\nfor fname in ['config.json', 'vocabulary.json']:\n dest = os.path.join\\(dist_dir, fname\\)\n if not os.path.exists\\(dest\\):\n shutil.copy\\(fname, dest\\)\n print\\(f'Copied {fname} -> {dist_dir}/'\\)\n else:\n print\\(f'Skipped {fname} \\(already exists\\)'\\)\nprint\\(f'Build complete: {dist_dir}/'\\)\n\")",
|
|
"Bash(.venv-windows/Scripts/python.exe -c \"\nimport sounddevice as sd\nprint\\('Default input device:', sd.default.device[0]\\)\nprint\\(\\)\nfor i, d in enumerate\\(sd.query_devices\\(\\)\\):\n if d['max_input_channels'] > 0:\n print\\(f' [{i}] {d[\\\\\"name\\\\\"]} \\(inputs: {d[\\\\\"max_input_channels\\\\\"]}\\)'\\)\n\")",
|
|
"Bash(.venv-windows/Scripts/python.exe -c \"\nimport json, os\npath = os.path.join\\(os.environ['LOCALAPPDATA'], 'WhisperDictation', 'config_local.json'\\)\nwith open\\(path\\) as f:\n cfg = json.load\\(f\\)\ncfg['audio_device'] = None\nwith open\\(path, 'w'\\) as f:\n json.dump\\(cfg, f, indent=2\\)\nprint\\('Updated:', cfg\\)\n\")",
|
|
"Bash(.venv-windows/Scripts/python.exe -c \"\nimport sounddevice as sd\nprint\\('Host APIs:'\\)\nfor i, api in enumerate\\(sd.query_hostapis\\(\\)\\):\n print\\(f' [{i}] {api[\\\\\"name\\\\\"]} \\(default_input: {api[\\\\\"default_input_device\\\\\"]}\\)'\\)\nprint\\(\\)\nprint\\('Devices with hostapi:'\\)\nfor i, d in enumerate\\(sd.query_devices\\(\\)\\):\n if d['max_input_channels'] > 0:\n print\\(f' [{i}] hostapi={d[\\\\\"hostapi\\\\\"]} {d[\\\\\"name\\\\\"]}'\\)\n\")",
|
|
"Bash(.venv-windows/Scripts/python.exe -c \"\nfrom whisper_app.audio import get_input_devices\ndevices = get_input_devices\\(\\)\nprint\\(f'{len\\(devices\\)} devices:'\\)\nfor i, name in devices:\n print\\(f' [{i}] {name}'\\)\n\")",
|
|
"Bash(.venv-windows/Scripts/python.exe -c \"\nimport faster_whisper, os\nassets = os.path.join\\(os.path.dirname\\(faster_whisper.__file__\\), 'assets'\\)\nfor f in os.listdir\\(assets\\):\n print\\(f\\)\n\")",
|
|
"Bash(.venv-windows/Scripts/python.exe -m PyInstaller whisper-dictation.spec --noconfirm)",
|
|
"Bash(.venv-windows/Scripts/python.exe -c \"\nimport nvidia.cublas; print\\('cublas:', nvidia.cublas.__file__\\)\nimport nvidia.cudnn; print\\('cudnn:', nvidia.cudnn.__file__\\)\n\")",
|
|
"Bash(.venv-windows/Scripts/python.exe -c \"\nimport os, site\nsp = site.getsitepackages\\(\\)[0]\ncublas = os.path.join\\(sp, 'nvidia', 'cublas', 'bin'\\)\ncudnn = os.path.join\\(sp, 'nvidia', 'cudnn', 'bin'\\)\nprint\\('cublas:', os.path.exists\\(cublas\\), cublas\\)\nprint\\('cudnn:', os.path.exists\\(cudnn\\), cudnn\\)\n\")",
|
|
"Bash(.venv-windows/Scripts/python.exe -c \"\nimport os\nsp = '.venv-windows/Lib/site-packages'\ncublas = os.path.join\\(sp, 'nvidia', 'cublas', 'bin'\\)\ncudnn = os.path.join\\(sp, 'nvidia', 'cudnn', 'bin'\\)\nprint\\('cublas:', os.path.exists\\(cublas\\), os.path.abspath\\(cublas\\)\\)\nprint\\('cudnn:', os.path.exists\\(cudnn\\), os.path.abspath\\(cudnn\\)\\)\n\")",
|
|
"Bash(.venv-windows/Scripts/python.exe -c \"import site; print\\(site.getsitepackages\\(\\)\\)\")",
|
|
"Bash(git push:*)",
|
|
"Bash(find /run/media/chk/Ventoy/projects/chrka/whisper-dictation -type f \\\\\\(-name .github -o -name *.yml -o -name *.yaml \\\\\\))",
|
|
"Bash(chmod +x /run/media/chk/Ventoy/projects/chrka/whisper-dictation/build-linux.sh)",
|
|
"Bash(bash install.sh)",
|
|
"Bash(bash build-linux.sh)",
|
|
"Bash(.venv-linux/bin/python -c \"import tkinter; print\\(''tkinter OK''\\)\")",
|
|
"Bash(pacman -Q tk)",
|
|
"Bash(sudo pacman:*)",
|
|
"Bash(grep -r \"WHISPER_DATA_DIR\\\\|WHISPER_LOCAL_DIR\" /run/media/chk/Ventoy/projects/chrka/whisper-dictation --include=*.py)",
|
|
"Bash(grep -l \"config.load_config\\\\|config.load_vocab\" /run/media/chk/Ventoy/projects/chrka/whisper-dictation/whisper_app/*.py)",
|
|
"Bash(.venv-linux/bin/python -m pytest tests/ -v)",
|
|
"Bash(.venv-linux/bin/python -m unittest discover -s tests -v)",
|
|
"Bash(head -5 tests/*.py)",
|
|
"Bash(.venv-linux/bin/pip install:*)",
|
|
"Bash(./whisper-dictation)",
|
|
"Bash(pacman -Ss appindicator)",
|
|
"Bash(pacman -Q libayatana-appindicator)",
|
|
"Bash(echo \"$XDG_SESSION_TYPE\")",
|
|
"Bash(echo \"Session: $XDG_SESSION_TYPE\")",
|
|
"Bash(mount)",
|
|
"Bash(desktop-file-validate ~/.local/share/applications/whisper-dictation.desktop)",
|
|
"Bash(update-desktop-database ~/.local/share/applications/)",
|
|
"Bash(echo \"DISPLAY=$DISPLAY\")",
|
|
"Bash(xlsclients)",
|
|
"Bash(DISPLAY=:0 xdpyinfo)",
|
|
"Bash(pkill -f \"whisper-dictation.*resource_tracker\")",
|
|
"Bash(pkill -f \"dist/whisper-dictation-linux/whisper-dictation\")",
|
|
"Bash(pkill -9 -f whisper-dictation)",
|
|
"Bash(pkill -f whisper-dictation)",
|
|
"Bash(gtk-launch whisper-dictation:*)",
|
|
"Bash(pkill -9 -f resource_tracker)",
|
|
"Bash(echo \"Desktop: $XDG_CURRENT_DESKTOP\")",
|
|
"Bash(nvidia-smi)",
|
|
"Bash(lspci)",
|
|
"Bash(pacman -Q)",
|
|
"Bash(/run/media/chk/Ventoy/projects/chrka/whisper-dictation/.venv-linux/bin/pip install:*)",
|
|
"Bash(.venv-linux/bin/python build.py)",
|
|
"Bash(.venv-linux/bin/pip list:*)",
|
|
"Bash(.venv-linux/bin/python -c \":*)",
|
|
"Bash(.venv-linux/bin/pyinstaller whisper-dictation.spec --clean)",
|
|
"Bash(.venv-linux/bin/pyinstaller whisper-dictation.spec --clean -y)",
|
|
"Bash(pactl --version)",
|
|
"Bash(pactl list:*)"
|
|
]
|
|
}
|
|
}
|