model-eol 0.7.0 → 0.8.0

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.
package/lib/reports.mjs CHANGED
@@ -40,7 +40,16 @@ const waiverTail = finding => !finding.waiver
40
40
  ? ` [waived until ${finding.waiver.expires} by ${finding.waiver.owner}: ${finding.waiver.reason}]`
41
41
  : ` [waiver expired on ${finding.waiver.expires}; owner ${finding.waiver.owner}: ${finding.waiver.reason}]`
42
42
 
43
- export const findingTail = (finding, days) => `${lifecycleTail(finding, days)}${waiverTail(finding)}`
43
+ const captureTail = finding => {
44
+ if (!['retiring', 'retired'].includes(finding.status) || !finding.capture?.alternatives?.length) return ''
45
+ const alternatives = finding.capture.alternatives.map(alternative => {
46
+ const until = ['tentative', 'earliest'].includes(alternative.date_precision) ? 'at least until' : 'until'
47
+ return `via ${alternative.via} ${until} ${alternative.until}`
48
+ })
49
+ return ` [still answers ${alternatives.join(', ')}]`
50
+ }
51
+
52
+ export const findingTail = (finding, days) => `${lifecycleTail(finding, days)}${waiverTail(finding)}${captureTail(finding)}`
44
53
 
45
54
  const statusStyle = finding =>
46
55
  finding.waiver?.active === true ? 'yellow' :
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "model-eol",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "AI model deprecation feeds with a zero-dependency checker, inventory CLI, and migration bot.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -93,7 +93,7 @@
93
93
  "type": ["string", "null"],
94
94
  "minLength": 1,
95
95
  "default": null,
96
- "description": "Opt-in repository-owned command run independently for each patchable migration only in the read-only evaluate phase. Write-capable publication consumes its commit-bound result manifest and never executes this command."
96
+ "description": "Opt-in repository-owned command run independently for each patchable migration only in the read-only evaluate phase. Receives MODEL_EOL_OLD_ID, MODEL_EOL_NEW_ID, MODEL_EOL_PLAN, MODEL_EOL_REPORT, MODEL_EOL_VIA, and MODEL_EOL_EVAL_MODE. Write-capable publication consumes its commit-bound result manifest and never executes this command."
97
97
  },
98
98
  "timeout_ms": {
99
99
  "type": "integer",