rails-informant 0.3.5 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0163f0e11f497856fbd6813053bcae42a8138798a0a87d9f134969d91f7978d0
|
|
4
|
+
data.tar.gz: bf7dfe956232dc5c082a9aab38b101279335ed52a0e9081282e702d9218e1791
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 56ec9dfe489907f0071a4b3f78cae5637e97d470a98f9e9a7d7801aba1e483fcf28d821a64e6ec158645517e143d06688ed835b124ad8f61ddcfc4341ed18d13
|
|
7
|
+
data.tar.gz: 60311f0621849b31788c5dd83add05ab58744da92906d9866b6d69db69d49fc96af5183768549497f49ddba2081af68547c42f8bbf84e9a1473589cd41ba6f9a
|
|
@@ -32,12 +32,9 @@ unresolved=$(echo "$response" | jq -r '.unresolved_count // 0') || exit 0
|
|
|
32
32
|
# Format error summary
|
|
33
33
|
label="error"
|
|
34
34
|
[[ "$unresolved" -gt 1 ]] && label="errors"
|
|
35
|
-
|
|
35
|
+
cat <<ALERT
|
|
36
|
+
🚨 Informant: ${unresolved} unresolved ${label} in production
|
|
37
|
+
$(echo "$response" | jq -r '.top_errors[]? | " - \(.error_class) (\(.total_occurrences) \(if .total_occurrences == 1 then "occurrence" else "occurrences" end))"' 2>/dev/null || true)
|
|
36
38
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
" - \(.error_class) (\(.total_occurrences) \(if .total_occurrences == 1 then "occurrence" else "occurrences" end))"
|
|
40
|
-
' 2>/dev/null || true
|
|
41
|
-
|
|
42
|
-
echo ""
|
|
43
|
-
echo "IMPORTANT: Before responding to the user's request, briefly mention these unresolved production errors so they are aware."
|
|
39
|
+
START your response by casually mentioning these errors, then ask the user if they want to investigate or continue with their request. Do NOT proceed with the user's request until they answer.
|
|
40
|
+
ALERT
|