Repository navigation
Adding wizlights to the list of usermods - #375
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. WalkthroughChangesCommunity usermod index
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~2 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to This documentation-only update has bounded impact and is ready to merge. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit hops through rows of light Comment |
|
@coderabbitai please perform an external usermod code inspection (as defined in https://github.com/wled/WLED-Docs/blob/main/.coderabbit.yaml) for this PR. |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
printf '%s\n' '--- main inspection instructions ---'
gh api repos/wled/WLED-Docs/contents/.coderabbit.yaml?ref=main --jq '.content' | base64 --decode
printf '\n%s\n' '--- PR metadata ---'
gh api repos/wled/WLED-Docs/pulls/375 --jq '{head: .head.sha, base: .base.sha, body: .body}'
printf '%s\n' '--- PR files ---'
gh api repos/wled/WLED-Docs/pulls/375/files --jq '.[] | {filename,patch}'Length of output: 6513 🏁 Script executed: #!/bin/bash
set -euo pipefail
printf '%s\n' '--- external repository ---'
gh api repos/eibanez/wled-usermod-wizlights --jq '{full_name,default_branch,description,license,owner:.owner.login}'
sha=$(gh api repos/eibanez/wled-usermod-wizlights/commits/HEAD --jq .sha)
printf 'EXTERNAL_SHA=%s\n' "$sha"
gh api "repos/eibanez/wled-usermod-wizlights/git/trees/$sha?recursive=1" --jq '{truncated,tree:[.tree[]|{path,type,size}]}'
printf '%s\n' '--- WLED reference revision ---'
wsha=$(gh api repos/wled/WLED/commits/main --jq .sha)
printf 'WLED_SHA=%s\n' "$wsha"
printf '%s\n' '--- AGENTS.md ---'
gh api "repos/wled/WLED/contents/AGENTS.md?ref=$wsha" --jq .content | base64 --decode
printf '\n%s\n' '--- user_fx files ---'
gh api "repos/wled/WLED/contents/usermods/user_fx?ref=$wsha" --jq '.[]|{name,path}'
printf '%s\n' '--- custom-features.md ---'
gh api repos/wled/WLED-Docs/contents/docs/advanced/custom-features.md?ref=main --jq .content | base64 --decodeLength of output: 40586 🏁 Script executed: #!/bin/bash
set -euo pipefail
tmp=$(mktemp -d)
sha=de66f1b261348aa5fa33faf34d0d5bff1141f898
for file in wizlights.cpp library.json readme.md LICENSE .github/CODEOWNERS .github/workflows/build.yml; do
mkdir -p "$tmp/$(dirname "$file")"
gh api "repos/eibanez/wled-usermod-wizlights/contents/$file?ref=$sha" --jq .content | base64 --decode > "$tmp/$file"
done
printf '%s\n' '--- implementation outline ---'
ast-grep outline "$tmp/wizlights.cpp" --items all || true
for file in wizlights.cpp library.json readme.md LICENSE .github/CODEOWNERS .github/workflows/build.yml; do
printf '\n--- %s ---\n' "$file"
cat -n "$tmp/$file"
done
wsha=55bcf1fa16bd4c057660a2b3953b363fdd966600
for file in usermods/user_fx/README.md docs/hardening.instructions.md docs/securecode.instructions.md; do
printf '\n--- WLED %s ---\n' "$file"
gh api "repos/wled/WLED/contents/$file?ref=$wsha" --jq .content | base64 --decode
doneLength of output: 80977 🏁 Script executed: #!/bin/bash
set -euo pipefail
tmp=$(mktemp -d)
sha=55bcf1fa16bd4c057660a2b3953b363fdd966600
gh api "repos/wled/WLED/git/trees/$sha?recursive=1" > "$tmp/tree.json"
printf '%s\n' '--- core candidate files ---'
jq -r '.tree[] | select(.type=="blob") | .path | select(test("(^|/)(FX\\.h|FX_fcn\\.cpp|fcn_declare\\.h|colors\\.h|wled\\.h|const\\.h)$"))' "$tmp/tree.json"
for name in FX.h FX_fcn.cpp fcn_declare.h colors.h wled.h const.h; do
path=$(jq -r --arg n "$name" '.tree[] | select(.type=="blob") | .path | select(. == ("wled00/"+$n))' "$tmp/tree.json")
if [ -z "$path" ]; then continue; fi
gh api "repos/wled/WLED/contents/$path?ref=$sha" --jq .content | base64 --decode > "$tmp/$name"
printf '\n--- outline %s ---\n' "$path"
ast-grep outline "$tmp/$name" --items all --match 'getPixelColor|getJsonValue|Segment|getLengthTotal' || true
printf '\n--- relevant declarations and contracts %s ---\n' "$path"
rg -n -C4 'getJsonValue|getPixelColor\(|getLengthTotal\(|stop;|stop =|exclusive|USERMOD_ID_WIZLIGHTS|WiFiUdp|colors.h|Arduino.h' "$tmp/$name" || true
done
printf '\n%s\n' '--- changed index row at PR revision ---'
gh api 'repos/wled/WLED-Docs/contents/docs/advanced/community-usermods.md?ref=fd467ecd3d5ee92c6213723a95385434d4273cb3' --jq .content | base64 --decode | nl -ba | sed -n '25,42p'Length of output: 29627
Inspected revision and filesRepository: https://github.com/eibanez/wled-usermod-wizlights I read all six repository files:
I also read the three required WLED references and the WLED security guidance. I checked relevant core declarations and implementation excerpts at WLED revision Findings1. High — Configured delays block the WLED main loop
The configuration reader accepts Fix direction: Replace the delays with a 2. Medium — Pixel indices above 255 select the wrong pixel
Fix direction: Use 3. Medium — The segment lookup includes an exclusive stop index
The condition uses For adjacent segments Fix direction: Use 4. Medium — The configured refresh timeout can overflow
Fix direction: Validate the configured range before use. Convert the validated value to unsigned milliseconds with overflow-safe arithmetic. These are correctness and availability findings. I did not establish an unauthenticated remote exploit. Other checks
Coverage limitsAll external files were accessible. This was static inspection only. I did not compile firmware, execute repository code, test hardware, or validate WiZ network behavior. I did not audit WLED core, framework implementations, action dependencies, or repository history in full. This inspection is not proof of safety, WLED testing, endorsement, or a complete security audit. You are interacting with an AI system. |
I created a separate repo for the
wizlightsusermod.My intention is to remove the usermod from the main WLED repository.
cc: @ChuckMash
Summary by CodeRabbit
wizlightscommunity usermod to the community index, including its repository, description, author, supported platforms, and license.