Update .gitignore, remove package-lock.json, and enhance Cloudflare and Proxmox adapters

- Added lock file exclusions for pnpm in .gitignore.
- Removed obsolete package-lock.json from the api and portal directories.
- Enhanced Cloudflare adapter with additional interfaces for zones and tunnels.
- Improved Proxmox adapter error handling and logging for API requests.
- Updated Proxmox VM parameters with validation rules in the API schema.
- Enhanced documentation for Proxmox VM specifications and examples.
This commit is contained in:
defiQUG
2025-12-12 19:29:01 -08:00
parent 9daf1fd378
commit 7cd7022f6e
66 changed files with 5892 additions and 14502 deletions

View File

@@ -74,12 +74,27 @@ func categorizeError(errorStr string) ErrorCategory {
}
}
// Authentication errors (non-retryable without credential fix)
if strings.Contains(errorStr, "authentication") ||
strings.Contains(errorStr, "unauthorized") ||
strings.Contains(errorStr, "401") ||
strings.Contains(errorStr, "invalid credentials") ||
strings.Contains(errorStr, "forbidden") ||
strings.Contains(errorStr, "403") {
return ErrorCategory{
Type: "AuthenticationError",
Reason: "AuthenticationFailed",
}
}
// Network/Connection errors (retryable)
if strings.Contains(errorStr, "network") ||
strings.Contains(errorStr, "connection") ||
strings.Contains(errorStr, "timeout") ||
strings.Contains(errorStr, "502") ||
strings.Contains(errorStr, "503") {
strings.Contains(errorStr, "503") ||
strings.Contains(errorStr, "connection refused") ||
strings.Contains(errorStr, "connection reset") {
return ErrorCategory{
Type: "NetworkError",
Reason: "TransientNetworkFailure",