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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6808537b2a27128d5b5c8770015db33cdf62b708776649485f2113ecd5a013d9
4
- data.tar.gz: 001e46db33f806a94016b93f6af3dfa7b5709eb923f4918197d6ba2d444120ad
3
+ metadata.gz: 9d54c6db7cffc52ff82bd62f6d046a3fe21702aa203038930345b694111e8a66
4
+ data.tar.gz: 6bba73360a105611dd8a2e0073a83bb42c654d3be1cca811621cc4d60abd194d
5
5
  SHA512:
6
- metadata.gz: d08170a8aeb9620b47db7630b95e016c415c11afb04a6c7bc7ea79cac1703e7c1a34c86dddcf73c8385cb258e31f39ca651f3e1339068df544248f507533c9e5
7
- data.tar.gz: cdf1c1fe799b63e653abe0309332798d90607d6a3631527acb74669a8689897662870627062e95bd466ed3c70959e28bbe8c87cc8f81a4984f7c458d5726af6a
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", "later_today" => "runs later today",
233
- "rarely_used" => "rarely used: a clearance won't cover it", "unknown" => "outlook unknown" }.freeze
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
- lines << " #{item.dig("clearance", "note")}" if item.dig("clearance", "outlook") != "normal_traffic"
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"]}, " \
@@ -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" },
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeployAngel
4
- VERSION = "0.1.44"
4
+ VERSION = "0.1.45"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deployangel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.44
4
+ version: 0.1.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Owens