deployangel 0.1.44 → 0.1.45
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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/deployangel/cli/formatter.rb +9 -4
- data/lib/deployangel/mcp.rb +1 -1
- data/lib/deployangel/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9d54c6db7cffc52ff82bd62f6d046a3fe21702aa203038930345b694111e8a66
|
|
4
|
+
data.tar.gz: 6bba73360a105611dd8a2e0073a83bb42c654d3be1cca811621cc4d60abd194d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6aa338dd4ab2d72c4e0d46a0628c75be31685ee80c27a74cf764dcda8b2da7af0ae620b633e90bddc1475ae697ea9f560e28be943611b2367c891bd20781ba65
|
|
7
|
+
data.tar.gz: e5053eb80ceb8d7b0d4a8b0c85b97609580905f5700ed573eac657f930e6c2fef2bf89e9fabc7e3e45d474bec9c3e35c34c92d30912fdc51cc5691ca74d6c056
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.45 (2026-11-14)
|
|
4
|
+
|
|
5
|
+
- `deployangel context` says what each clearance outlook means once, after the
|
|
6
|
+
routes and jobs, rather than under every one, and names the new `scheduled`
|
|
7
|
+
outlook: a declared job whose next run is handed to watching after a
|
|
8
|
+
release clears, so there's nothing to exercise (servers from 2026-11-14).
|
|
9
|
+
|
|
3
10
|
## 0.1.44 (2026-11-14)
|
|
4
11
|
|
|
5
12
|
- `deployangel context <files>` and the MCP server's `get_production_context`
|
|
@@ -229,18 +229,22 @@ module DeployAngel
|
|
|
229
229
|
end
|
|
230
230
|
end
|
|
231
231
|
|
|
232
|
-
OUTLOOKS = { "normal_traffic" => "normal traffic covers it", "
|
|
233
|
-
"rarely_used" => "rarely used: a clearance won't cover it",
|
|
232
|
+
OUTLOOKS = { "normal_traffic" => "normal traffic covers it", "scheduled" => "scheduled: watched after clearance",
|
|
233
|
+
"later_today" => "runs later today", "rarely_used" => "rarely used: a clearance won't cover it",
|
|
234
|
+
"unknown" => "outlook unknown" }.freeze
|
|
234
235
|
|
|
235
|
-
# Production context, one block per route or job.
|
|
236
|
+
# Production context, one block per route or job. What each outlook
|
|
237
|
+
# means is said once, after the items, not under every one.
|
|
236
238
|
def production_context(details)
|
|
237
239
|
lines = []
|
|
240
|
+
explained = {}
|
|
238
241
|
Array(details["items"]).each do |item|
|
|
239
242
|
uses = "#{item["uses_last_7_days"]} #{item["kind"] == "route" ? "requests" : "runs"} in 7 days"
|
|
240
243
|
failures = item["failures_last_7_days"].to_i.positive? ? ", #{item["failures_last_7_days"]} failed" : ""
|
|
241
244
|
lines << "#{item["kind"] == "route" ? "Route" : "Job"} #{item["key"]}: #{uses}#{failures} · " \
|
|
242
245
|
"#{OUTLOOKS.fetch(item.dig("clearance", "outlook"), item.dig("clearance", "outlook"))}"
|
|
243
|
-
|
|
246
|
+
outlook = item.dig("clearance", "outlook")
|
|
247
|
+
explained[outlook] ||= item.dig("clearance", "note") unless outlook == "normal_traffic"
|
|
244
248
|
lines << " Pending first use since an earlier release" if item["pending_first_use"]
|
|
245
249
|
if (schedule = item["schedule"])
|
|
246
250
|
lines << " Scheduled #{schedule["schedule"]}#{", next #{schedule["next_at"]}" if schedule["next_at"]} (#{schedule["status"]})"
|
|
@@ -251,6 +255,7 @@ module DeployAngel
|
|
|
251
255
|
lines << " Late regression in #{late["release"]}#{" (dismissed)" if late["dismissed"]}: #{late["summary"]}"
|
|
252
256
|
end
|
|
253
257
|
end
|
|
258
|
+
explained.each_value { |note| lines << note if note }
|
|
254
259
|
Array(details["files"]).each do |file|
|
|
255
260
|
Array(file["exceptions"]).each do |exception|
|
|
256
261
|
lines << "#{file["path"]}: #{exception["exception_class"]} in #{exception["top_frame"]}, " \
|
data/lib/deployangel/mcp.rb
CHANGED
|
@@ -136,7 +136,7 @@ module DeployAngel
|
|
|
136
136
|
"limit" => { "type" => "integer", "minimum" => 1, "maximum" => 50, "default" => 10 } }),
|
|
137
137
|
tool("get_production_context", "What production does with code before you change it: the routes and jobs the given " \
|
|
138
138
|
"files serve, how often production ran them in the last 7 days and how many failed, whether a release's clearance " \
|
|
139
|
-
"would cover a change to them (clearance.outlook: normal_traffic, later_today, rarely_used, or unknown), their " \
|
|
139
|
+
"would cover a change to them (clearance.outlook: normal_traffic, scheduled, later_today, rarely_used, or unknown), their " \
|
|
140
140
|
"schedules and critical flows, and failed releases and late regressions on them in the last 90 days. " \
|
|
141
141
|
"Files it can't map are listed in unmapped_files; that doesn't mean they're unused.",
|
|
142
142
|
{ "files" => { "type" => "array", "items" => { "type" => "string" },
|
data/lib/deployangel/version.rb
CHANGED