fix(api): reject invalid version skill ids - #144
Conversation
|
ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing |
Code reviewManual review standing in for Qodo. Verdict: no findings. Approve. The guard is the first statement in Checked for regressions, all clean:
Follow-up: two routes still unguardedI audited every
Both take Not filed as a finding on this PR; it's pre-existing and outside the diff. Flagging it because it looks like the natural next step in this sequence. Generated by Claude Code |
Summary
404 Skill not foundfor malformed repo skill UUIDs onPOST /api/skills/[id]/versions::uuidcastsTest plan
npm test --workspace @agentvouch/web -- __tests__/api/skills-versions.test.ts --maxWorkers=1 --no-fileParallelismnpm run format:checknpm run lint:webnpm run typechecknpm test --workspace @agentvouch/web -- --maxWorkers=1 --no-fileParallelismnpm exec --workspace @agentvouch/web -- next build --webpackgit diff --checkThe production build passed with the existing viem Tempo dynamic-import warning and expected local
DATABASE_URLstatic-generation fallbacks. No live flow was run; this is request-boundary validation only.