{
  "permissions": {
    "allow": [
      "Bash(npm outdated:*)",
      "Bash(node test.js)",
      "Bash(npm ls:*)",
      "Bash(npm view:*)",
      "Bash(npm install:*)",
      "Bash(node -e \"import\\(''tst''\\).then\\(m => console.log\\(Object.keys\\(m\\)\\)\\)\")",
      "Bash(node -e \"import mp3 from ''audio-lena/mp3.js''; console.log\\(mp3.constructor.name, mp3.byteLength\\)\")",
      "Bash(node -e :*)",
      "Bash(node -e \":*)",
      "WebFetch(domain:www.npmjs.com)",
      "WebSearch",
      "Bash(gh api:*)",
      "Bash(gh search:*)",
      "WebFetch(domain:en.wikipedia.org)",
      "WebFetch(domain:code.google.com)",
      "Bash(emcc --version)",
      "Read(//Users/div/projects/**)",
      "Bash(brew info:*)",
      "Bash(brew upgrade:*)",
      "Bash(chmod +x ~/projects/aac-decode/build.sh)",
      "Read(//Users/div/**)",
      "Bash(brew list:*)",
      "Read(//opt/homebrew/bin/**)",
      "Read(//usr/local/bin/**)",
      "Read(//dev/**)",
      "Read(//Users/div/projects/audio-type/**)",
      "Bash(ls /Users/div/projects/audio-type/fixture.*)",
      "Read(//opt/homebrew/Cellar/emscripten/5.0.3/bin/**)",
      "Read(//opt/homebrew/Cellar/emscripten/5.0.3/libexec/**)",
      "Bash(EMSDK_PYTHON=/opt/homebrew/opt/python@3.14/bin/python3.14 emcc --version)",
      "Bash(/opt/homebrew/Cellar/emscripten/5.0.3/libexec/llvm/bin/clang --version)",
      "Bash(bash build.sh)",
      "Bash(node --input-type=module -e \":*)",
      "Bash(node --input-type=module:*)",
      "Bash(find /Users/div/projects/aac-decode -type f -name *.md -o -name *.txt -o -name README*)",
      "Bash(find /Users/div/projects -maxdepth 2 -name package.json -path *decode* -o -path *audio*)",
      "Bash(/opt/homebrew/bin/emcc --version)",
      "Bash(ffmpeg -version)",
      "Bash(chmod +x /Users/div/projects/@audiojs/wma-decode/build.sh)",
      "Bash(curl -L \"https://sourceforge.net/projects/opencore-amr/files/opencore-amr/opencore-amr-0.1.6.tar.gz/download\" -o opencore-amr.tar.gz --max-time 30)",
      "Bash(ffmpeg -f lavfi -i \"sine=frequency=440:duration=1\" -f lavfi -i \"color=c=black:s=2x2:d=1\" -c:a libopus -b:a 64k -c:v libvpx -b:v 100k fixtures/video-audio.webm -y)",
      "Bash(tar xf:*)",
      "Bash(mv opencore-amr-0.1.6 opencore-amr)",
      "Bash(rm opencore-amr.tar.gz)",
      "Read(//Users/div/projects/audio-decode/**)",
      "Bash(chmod +x /Users/div/projects/@audiojs/amr-decode/build.sh)",
      "Bash(ffmpeg -encoders)",
      "Bash(ffmpeg -codecs)",
      "Bash(wc -l /Users/div/projects/@audiojs/wma-decode/*.js /Users/div/projects/@audiojs/wma-decode/*.d.ts /Users/div/projects/aac-decode/*.js /Users/div/projects/aac-decode/*.d.ts)",
      "Bash(git -C /Users/div/projects/aac-decode log --oneline -5 lib/faad2)",
      "Bash(git -C /Users/div/projects/@audiojs/amr-decode log --oneline -5 lib/opencore-amr)",
      "Bash(ls -la /Users/div/projects/@audiojs/wma-decode/README*)",
      "Bash(find /Users/div/projects/@audiojs/amr-decode/lib/opencore-amr -name *.cpp -o -name *.c -o -name *.h)",
      "Bash(wc -l /Users/div/projects/@audiojs/*/test.js)",
      "Bash(wc -l /Users/div/projects/@audiojs/*/*.js /Users/div/projects/@audiojs/*/*.d.ts)",
      "Bash(file /Users/div/projects/audio-type/fixture.*)",
      "Bash(file /Users/div/projects/audio-lena/lena.*)",
      "Bash(ffmpeg -formats)",
      "Bash(ls /Users/div/projects/audio-lena/lena.*)",
      "Bash(ffmpeg -i lena.wav -f caf -c:a pcm_s16le lena.caf -y)",
      "Bash(ffmpeg -i lena.wav -c:a libopus -b:a 96k lena.webm -y)",
      "Bash(ffmpeg -i lena.wav -ar 8000 -ac 1 -c:a libopencore_amrnb -b:a 12.2k lena.amr -y)",
      "Bash(ffmpeg -i lena.wav -c:a wmav2 -b:a 128k lena.wma -y)",
      "Bash(ffmpeg -i lena.wav -ar 8000 -ac 1 -c:a pcm_alaw lena-alaw.aiff -y)",
      "Bash(ffmpeg -i lena.wav -ar 8000 -ac 1 -c:a pcm_mulaw lena-ulaw.aiff -y)",
      "Bash(ffmpeg -i lena.wav -c:a pcm_s24be lena-24.aiff -y)",
      "Bash(ffmpeg -i lena.wav -c:a pcm_s32be lena-32.aiff -y)",
      "Bash(ffmpeg -i lena.wav -f caf -c:a pcm_f32le lena-f32.caf -y)",
      "Bash(ffmpeg -i lena.wav -ar 8000 -ac 1 -f caf -c:a pcm_alaw lena-alaw.caf -y)",
      "Bash(ls /Users/div/projects/audio-lena/lena*.aiff /Users/div/projects/audio-lena/lena.wav)",
      "Bash(ls /Users/div/projects/@audiojs/amr-decode/lib/opencore-amr/opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/*.h)",
      "Bash(for py:*)",
      "Bash(do which:*)",
      "Bash($py --version)",
      "Bash(ffprobe -v error -show_entries stream=channels,sample_rate,codec_name -of default=noprint_wrappers=1 /Users/div/projects/audio-lena/lena.webm)",
      "Bash(ls /Users/div/projects/@audiojs/amr-decode/lib/opencore-amr/amrnb/interf_enc.*)",
      "Bash(ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1 /Users/div/projects/audio-lena/lena.webm)",
      "Bash(EMSDK_PYTHON=/opt/homebrew/bin/python3.13 /opt/homebrew/bin/emcc --version)",
      "Bash(node -e:*)",
      "Bash(rm -f configure configure.ac ltmain.sh install-sh missing depcomp compile config.guess config.sub aclocal.m4 Makefile.am Makefile.in)",
      "Bash(rm -rf autom4te.cache m4)",
      "Bash(./configure --help)",
      "Bash(xxd -l 16 /Users/div/projects/audio-type/fixture.amr)",
      "Bash(ffprobe /Users/div/projects/audio-lena/lena.wma)",
      "Bash(FFMPEG=lib/ffmpeg)",
      "Bash(EMSDK_PYTHON=/opt/homebrew/bin/python3.13 emcc src/wma_glue.c -I $FFMPEG $FFMPEG/libavcodec/libavcodec.a $FFMPEG/libavutil/libavutil.a -O3 -flto -s WASM=1 -s STANDALONE_WASM=0 -s EXPORTED_FUNCTIONS='[\"\"_wma_create\"\",\"\"_wma_decode\"\",\"\"_wma_close\"\",\"\"_wma_samples\"\",\"\"_wma_channels\"\",\"\"_wma_samplerate\"\",\"\"_wma_free_buf\"\",\"\"_malloc\"\",\"\"_free\"\"]' -s EXPORTED_RUNTIME_METHODS='[\"\"HEAPU8\"\",\"\"HEAPF32\"\",\"\"getValue\"\"]' -s ALLOW_MEMORY_GROWTH=1 -s INITIAL_MEMORY=4194304 -s MAXIMUM_MEMORY=134217728 -s MODULARIZE=1 -s EXPORT_NAME=createWMA -s ENVIRONMENT='web,node' -s FILESYSTEM=0 -s ASSERTIONS=0 -s MALLOC=emmalloc -s SINGLE_FILE=1 --no-entry -o src/wma.wasm.cjs)",
      "Bash(ffmpeg -i /Users/div/projects/audio-lena/lena.wma -f f32le -acodec pcm_f32le -ac 1 -)",
      "Bash(EMSDK_PYTHON=/opt/homebrew/bin/python3.13 emcc src/wma_glue.c -I $FFMPEG $FFMPEG/libavcodec/libavcodec.a $FFMPEG/libavutil/libavutil.a -O0 -s WASM=1 -s STANDALONE_WASM=0 -s EXPORTED_FUNCTIONS='[\"\"_wma_create\"\",\"\"_wma_decode\"\",\"\"_wma_close\"\",\"\"_wma_samples\"\",\"\"_wma_channels\"\",\"\"_wma_samplerate\"\",\"\"_wma_free_buf\"\",\"\"_malloc\"\",\"\"_free\"\"]' -s EXPORTED_RUNTIME_METHODS='[\"\"HEAPU8\"\",\"\"HEAPF32\"\",\"\"getValue\"\"]' -s ALLOW_MEMORY_GROWTH=1 -s INITIAL_MEMORY=4194304 -s MAXIMUM_MEMORY=134217728 -s MODULARIZE=1 -s EXPORT_NAME=createWMA -s ENVIRONMENT='web,node' -s FILESYSTEM=0 -s ASSERTIONS=2 -s MALLOC=emmalloc -s SINGLE_FILE=1 --no-entry -o /tmp/wma_debug.cjs)",
      "Bash(rm -f config.h)",
      "Bash(EMSDK_PYTHON=/opt/homebrew/bin/python3.13 emconfigure ./configure --cc=emcc --cxx=em++ --ar=emar --ranlib=emranlib --enable-cross-compile --target-os=none --arch=x86 --disable-runtime-cpudetect --disable-asm --disable-inline-asm --disable-programs --disable-doc --disable-debug --disable-network --disable-everything --enable-decoder=wmav1 --enable-decoder=wmav2 --disable-pthreads --disable-avformat --disable-avfilter --disable-swresample --disable-swscale --disable-avdevice --extra-cflags=\"-O0\")",
      "Bash(EMSDK_PYTHON=/opt/homebrew/bin/python3.13 emmake make -C lib/ffmpeg -j14 libavutil/libavutil.a libavcodec/libavcodec.a)",
      "Bash(EMSDK_PYTHON=/opt/homebrew/bin/python3.13 emcc src/wma_glue.c -I $FFMPEG $FFMPEG/libavcodec/libavcodec.a $FFMPEG/libavutil/libavutil.a -O0 -s WASM=1 -s STANDALONE_WASM=0 -s EXPORTED_FUNCTIONS='[\"\"_wma_create\"\",\"\"_wma_decode\"\",\"\"_wma_close\"\",\"\"_wma_samples\"\",\"\"_wma_channels\"\",\"\"_wma_samplerate\"\",\"\"_wma_free_buf\"\",\"\"_malloc\"\",\"\"_free\"\"]' -s EXPORTED_RUNTIME_METHODS='[\"\"HEAPU8\"\",\"\"HEAPF32\"\",\"\"getValue\"\"]' -s ALLOW_MEMORY_GROWTH=1 -s INITIAL_MEMORY=4194304 -s MAXIMUM_MEMORY=134217728 -s MODULARIZE=1 -s EXPORT_NAME=createWMA -s ENVIRONMENT='web,node' -s FILESYSTEM=0 -s ASSERTIONS=0 -s MALLOC=emmalloc -s SINGLE_FILE=1 --no-entry -o /tmp/wma_O0.cjs)",
      "Bash(sed -i '' 's/var fs=require\\(\"\"node:fs\"\"\\);/var _nfs=\"\"node:\"\"+\"\"fs\"\";var fs=require\\(_nfs\\);/' /tmp/wma_O0.cjs)",
      "Bash(printf '\\\\nif\\(typeof module!==\"\"undefined\"\"\\)module.exports=createWMA;\\\\n')",
      "Bash(ls /Users/div/projects/@audiojs/wma-decode/lib/ffmpeg/libavformat/asf*)",
      "Bash(ffprobe -show_packets -select_streams a /Users/div/projects/audio-lena/lena.wma)",
      "WebFetch(domain:api.github.com)",
      "WebFetch(domain:raw.githubusercontent.com)",
      "Bash(chmod +x /Users/div/projects/@audiojs/wma-decode/build-rockbox.sh)",
      "Bash(bash build-rockbox.sh)",
      "Bash(ls -la /Users/div/projects/@audiojs/wma-decode/build*.sh)",
      "Bash(/opt/homebrew/bin/emcc src/wma_glue.c -I lib/ffmpeg lib/ffmpeg/libavcodec/libavcodec.a lib/ffmpeg/libavutil/libavutil.a -O3 -flto -s WASM=1 -s STANDALONE_WASM=0 -s EXPORTED_FUNCTIONS='[\"\"_wma_create\"\",\"\"_wma_decode\"\",\"\"_wma_close\"\",\"\"_wma_samples\"\",\"\"_wma_channels\"\",\"\"_wma_samplerate\"\",\"\"_wma_free_buf\"\",\"\"_malloc\"\",\"\"_free\"\"]' -s EXPORTED_RUNTIME_METHODS='[\"\"HEAPU8\"\",\"\"HEAPF32\"\",\"\"getValue\"\"]' -s ALLOW_MEMORY_GROWTH=1 -s INITIAL_MEMORY=4194304 -s MAXIMUM_MEMORY=134217728 -s MODULARIZE=1 -s EXPORT_NAME=createWMA -s ENVIRONMENT='web,node' -s FILESYSTEM=0 -s ASSERTIONS=0 -s MALLOC=emmalloc -s SINGLE_FILE=1 --no-entry -o /tmp/wma_ffmpeg.wasm.cjs)",
      "Bash(export EMSDK_PYTHON=/opt/homebrew/bin/python3.13)",
      "Bash(mv src/wma_glue.c src/wma_glue_ffmpeg.c)",
      "Bash(mv src/wma_glue_rockbox.c src/wma_glue.c)",
      "Bash(mv build.sh build-ffmpeg.sh)",
      "Bash(mv build-rockbox.sh build.sh)",
      "Bash(ls -la /Users/div/projects/@audiojs/wma-decode/src/ /Users/div/projects/@audiojs/wma-decode/build*.sh)",
      "Bash(ls /Users/div/projects/@audiojs/*/README.md)",
      "Bash(ls /Users/div/projects/@audiojs/*/.gitignore)",
      "Bash(curl -s \"https://registry.npmjs.org/-/search?text=vorbis+decoder&size=20\")",
      "WebFetch(domain:xiph.org)",
      "Bash(ffmpeg -i /Users/div/projects/audio-lena/lena.wav -c:a libvorbis -b:a 96k /Users/div/projects/audio-lena/lena-vorbis.webm -y)",
      "Bash(ffmpeg -f lavfi -i \"sine=frequency=440:duration=1\" -c:a libvorbis -b:a 96k /Users/div/projects/@audiojs/webm-decode/fixtures/vorbis-mono.webm -y)",
      "Bash(ffmpeg -f lavfi -i \"sine=frequency=440:duration=1\" -f lavfi -i \"sine=frequency=880:duration=1\" -filter_complex \"[0:a][1:a]amerge=inputs=2\" -c:a libvorbis -b:a 96k /Users/div/projects/@audiojs/webm-decode/fixtures/vorbis-stereo.webm -y)",
      "Bash(ffmpeg -f lavfi -i \"sine=frequency=440:duration=1\" -c:a vorbis -b:a 96k /Users/div/projects/@audiojs/webm-decode/fixtures/vorbis-mono.webm -y)",
      "Bash(ffmpeg -f lavfi -i \"sine=frequency=440:duration=1\" -c:a vorbis -strict -2 -b:a 96k /Users/div/projects/@audiojs/webm-decode/fixtures/vorbis-mono.webm -y)",
      "Bash(ffmpeg -f lavfi -i \"sine=frequency=440:duration=1\" -c:a vorbis -strict experimental /Users/div/projects/@audiojs/webm-decode/fixtures/vorbis-mono.webm -y)",
      "Bash(brew install:*)",
      "Bash(oggenc -q 3 -o /tmp/sine_mono.ogg /tmp/sine_mono.wav)",
      "Bash(ffmpeg -i /tmp/sine_mono.ogg -c:a copy /Users/div/projects/@audiojs/webm-decode/fixtures/vorbis-mono.webm -y)",
      "Bash(ffprobe /Users/div/projects/@audiojs/webm-decode/fixtures/vorbis-mono.webm)",
      "Bash(ln -sf /Users/div/projects/aac-decode node_modules/@audio/aac-decode)",
      "Bash(ln -sf /Users/div/projects/@audiojs/aiff-decode node_modules/@audio/aiff-decode)",
      "Bash(ln -sf /Users/div/projects/@audiojs/caf-decode node_modules/@audio/caf-decode)",
      "Bash(ln -sf /Users/div/projects/@audiojs/webm-decode node_modules/@audio/webm-decode)",
      "Bash(ln -sf /Users/div/projects/@audiojs/amr-decode node_modules/@audio/amr-decode)",
      "Bash(ln -sf /Users/div/projects/@audiojs/wma-decode node_modules/@audio/wma-decode)",
      "Bash(ffprobe -hide_banner /Users/div/projects/audio-decode/fixtures/hk.m4a)",
      "Bash(ffprobe -hide_banner /Users/div/projects/audio-lena/audacity/lena-24-dwvw.aiff)",
      "Bash(ls -d /Users/div/projects/*aac*)",
      "Bash(find /Users/div/projects -maxdepth 3 -name aac* -type f)",
      "Bash(ln -sf /Users/div/projects/@audiojs/aac-decode node_modules/@audio/aac-decode)",
      "Bash(ffprobe -hide_banner /Users/div/projects/audio-lena/audacity/lena-gsm.aiff)",
      "Bash(ffprobe -hide_banner /Users/div/projects/audio-lena/audacity/lena-u.aiff)",
      "Bash(ffprobe -hide_banner /Users/div/projects/audio-lena/audacity/lena-a.aiff)",
      "Bash(curl -sL https://raw.githubusercontent.com/nicfit/libgsm/master/src/decode.c -o gsm_decode.c)",
      "Bash(curl -sL https://raw.githubusercontent.com/nicfit/libgsm/master/src/rpe.c -o gsm_rpe.c)",
      "Bash(curl -sL https://raw.githubusercontent.com/nicfit/libgsm/master/src/short_term.c -o gsm_short_term.c)",
      "Bash(curl -sL https://raw.githubusercontent.com/nicfit/libgsm/master/src/long_term.c -o gsm_long_term.c)",
      "Bash(curl -sL https://raw.githubusercontent.com/timothytylee/libgsm/master/src/decode.c -o gsm_decode.c)",
      "Bash(curl -sL https://raw.githubusercontent.com/timothytylee/libgsm/master/src/rpe.c -o gsm_rpe.c)",
      "Bash(curl -sL https://raw.githubusercontent.com/timothytylee/libgsm/master/src/short_term.c -o gsm_short_term.c)",
      "Bash(curl -sL https://raw.githubusercontent.com/timothytylee/libgsm/master/src/long_term.c -o gsm_long_term.c)",
      "Bash(curl -sL https://raw.githubusercontent.com/timothytylee/libgsm/master/src/private.h -o gsm_private.h)",
      "Bash(curl -sL https://raw.githubusercontent.com/timothytylee/libgsm/master/src/table.c -o gsm_table.c)",
      "Bash(curl -sL https://raw.githubusercontent.com/timothytylee/libgsm/master/inc/private.h -o gsm_private.h)",
      "Bash(curl -sL https://raw.githubusercontent.com/timothytylee/libgsm/master/src/add.c -o gsm_add.c)",
      "Bash(ffmpeg -i /Users/div/projects/audio-lena/audacity/lena-gsm.aiff -f f32le -acodec pcm_f32le -ac 1 -)",
      "Bash(ls gsm_*.c)",
      "Bash(cc -o gsm_test gsm_test.c -w)",
      "Bash(./gsm_test)",
      "Bash(ffmpeg -i /Users/div/projects/audio-lena/audacity/lena-gsm.aiff -f s16le -acodec pcm_s16le -ac 1 -)",
      "Bash(npx playwright:*)",
      "Bash(node test.browser.js)",
      "Bash(npm list:*)",
      "Read(//opt/homebrew/lib/node_modules/**)",
      "Bash(npm root:*)",
      "Bash(grep '\"\"version\"\"' package.json)",
      "Bash(grep -c '\"\"aac-decode\"\"' package-lock.json)",
      "Bash(grep -c '\"\"@audio/aac-decode\"\"' package-lock.json)",
      "Bash(ls /Users/div/projects/audio-decode/*.m4a)",
      "Bash(ffprobe -hide_banner \"/Users/div/projects/audio-decode/a pradyumna as always.m4a\")",
      "Bash(ln -s /Users/div/projects/@audiojs/aac-decode node_modules/@audio/aac-decode)",
      "Bash(ln -s /Users/div/projects/@audiojs/aac-decode /Users/div/projects/audio-decode/node_modules/@audio/aac-decode)",
      "Bash(ls *.js *.md)",
      "Bash(ls -d /Users/div/projects/@audiojs/*-decode)",
      "Bash(for pkg:*)",
      "Bash(rsync -a --exclude='.git' --exclude='node_modules' --exclude='lib' --exclude='package-lock.json' \"/Users/div/projects/@audiojs/$pkg/\" \"/Users/div/projects/audio-decode/packages/$pkg/\")",
      "Bash(echo \"copied $pkg\")",
      "Bash(do echo:*)",
      "Bash(grep -rn 'audio-lena' /Users/div/projects/audio-decode/packages/*/test.js)",
      "Bash(for f:*)",
      "Bash(sed -i '' 's|../../audio-lena/|../../../audio-lena/|g' \"$f\")",
      "Bash(grep -rn '../../../audio-lena/' /Users/div/projects/audio-decode/packages/*/test.js)",
      "Bash(node -e \"import.meta.resolve\\(''audio-lena''\\)\")",
      "Bash(node -e \"console.log\\(import.meta.resolve\\(''audio-lena''\\)\\)\")",
      "Bash(grep -rn \"import.meta.resolve\\(''''audio-lena''''\\)\" /Users/div/projects/audio-decode/packages/*/test.js)",
      "Bash(sed -i '' \"s|new URL\\(''./fixtures/\\\\\\(.*\\\\\\)'', import.meta.resolve\\(''audio-lena''\\)\\)|new URL\\(''./fixtures/\\\\1'', import.meta.url\\)|g\" \"$f\")",
      "Bash(sed -i '' \"s|new URL\\(''./fixtures/'', import.meta.resolve\\(''audio-lena''\\)\\)|new URL\\(''./fixtures/'', import.meta.url\\)|g\" \"$f\")",
      "Bash(echo \"=== $pkg ===\")",
      "Read(//Users/div/projects/audio-decode/packages/$pkg/**)",
      "Bash(ls /Users/div/projects/audio-decode/packages/amr-decode/src/*.cjs /Users/div/projects/audio-decode/packages/wma-decode/src/*.cjs)",
      "Bash(node /tmp/reproduce-aac.mjs)",
      "Bash(npm whoami *)",
      "Bash(npm publish *)",
      "Bash(file fixtures/*.m4a)",
      "Bash(xxd fixtures/hk.m4a)",
      "Bash(node /Users/div/projects/audio-decode/packages/decode-aac/test.js)",
      "Bash(node /Users/div/projects/audio-decode/test.js)"
    ],
    "additionalDirectories": [
      "/Users/div/projects/aac-decode/src",
      "/Users/div/projects/aac-decode",
      "/Users/div/projects/audio-type",
      "/Users/div",
      "/Users/div/projects/audio-decode",
      "/Users/div/projects/audio-decode/packages/*"
    ]
  }
}
