(s string)
| 140 | } |
| 141 | |
| 142 | func isValidPackageName(s string) bool { |
| 143 | return len(s) > 0 && len(s) <= 256 && packageNameRegex.MatchString(s) |
| 144 | } |
| 145 | |
| 146 | // ServePatchOutput handles POST /patching/runs/:id/output (agent-facing, API key auth). |
| 147 | func (h *PatchingHandler) ServePatchOutput(w http.ResponseWriter, r *http.Request) { |