diff --git a/changes/forecast-cli.md b/changes/forecast-cli.md new file mode 100644 index 00000000..7a04147e --- /dev/null +++ b/changes/forecast-cli.md @@ -0,0 +1 @@ +- Show forecast weather, dated events by horizon, affected locations, and lifecycle data gaps in the terminal forecast. diff --git a/docs/CLI.md b/docs/CLI.md index 7a3ab14f..4f662e03 100644 --- a/docs/CLI.md +++ b/docs/CLI.md @@ -98,16 +98,15 @@ offing forecast [path] [--months ] [--as-of ] [--svg [--animate] offing forecast [path] [--months ] [--as-of ] [--timeline | --json | --format mermaid] ``` -Lists what reaches end of life next, grouped by month, from the current scan. +Lists dated end-of-life events in 3-, 6-, and 12-month ranges, with a weather summary and the affected locations. See [Forecast](forecast.md) for the full contract and runnable examples. | Flag | What it does | | --- | --- | | `--months ` | How many months ahead to look. Whole number from `1` to `36`; default `12`. | | `--as-of ` | Treat this date as today. | -| `--timeline` | Draw the forecast as a terminal timeline instead of a list. Cannot be combined with `--json` or `--svg`. | | `--svg` | Print a self-contained SVG timeline for a README or a slide. Cannot be combined with `--timeline` or `--json`. | | `--animate` | With `--svg`, grow a bar from today to each event in date order and pulse the today marker twice with CSS. `prefers-reduced-motion: reduce` shows the final frame immediately. | -| `--timeline` | Draw the forecast as a terminal timeline instead of a list. Cannot be combined with `--json` or `--format mermaid`. | +| `--timeline` | Draw the forecast as a terminal timeline instead of a list. Cannot be combined with `--json`, `--svg`, or `--format mermaid`. | | `--format mermaid` | Print a fenced Mermaid Gantt chart of the dated events, grouped by ecosystem. | | `--json` | Print the forecast document. | diff --git a/docs/decisions/0038-forecast-v1-coverage.md b/docs/decisions/0038-forecast-v1-coverage.md new file mode 100644 index 00000000..bf53a0d1 --- /dev/null +++ b/docs/decisions/0038-forecast-v1-coverage.md @@ -0,0 +1,18 @@ +# 0038 — Add coverage gaps to forecast v1 + +Status: proposed + +A dated forecast groups events that have evidence. A repository can also contain components +with insufficient lifecycle data. Readers need to see these gaps even when the dated event +count is zero. + +Keep `ebb.forecast.v1` and its existing fields, including the month groups, event locations, +and counts. Add a `noData` array to the shared forecast schema. Both `offing forecast --json` +and `forecast_repository` always emit the array, even when empty. The schema accepts earlier +v1 documents that omit it. + +Each entry carries a component, reference, reporting detector, reason, and repository-relative +location. The report combines unclassified references from the scan with direct npm +declarations that have no package rule in the active data. Coverage gaps do not contribute +to dated event counts. The terminal report displays them separately and uses `cloudy` for +coverage gaps when the near-term bucket has no high or critical repository event. diff --git a/docs/decisions/index.md b/docs/decisions/index.md index b4168f79..ccdafd6e 100644 --- a/docs/decisions/index.md +++ b/docs/decisions/index.md @@ -38,6 +38,7 @@ otherwise. Records are numbered in the order they were written; this page groups | [0028](0028-mcp-schema-inlining-fails-closed.md) | Publish a self-contained MCP output schema | Inline every cross-file `$ref` before the MCP server advertises a tool's schema and throw when one cannot resolve; same-document references stay, and sibling keywords win over the inlined target. | | [0032](0032-split-mcp-tools-into-one-file-per-tool.md) | Split the MCP server into one file per tool | Give each MCP tool its own file under `src/mcp/tools/`, list them in a small registry, and prove with a `tools/list` snapshot that no advertised name, description, input schema, output schema, or annotation changed. | | [0033](0033-required-source-access-date.md) | Require the retrieval date on every lifecycle source | Make `sources[].accessedAt` required in registry v2, backfill every bundled record, and let the importer runner stamp the run date so every finding shows when its source was read. | +| [0038](0038-forecast-v1-coverage.md) | Add coverage gaps to forecast v1 | Add an optional `noData` field to the CLI and MCP forecast schema. Producers always emit the array. | | [0037](0037-recommend-version-from-bundled-data.md) | Recommend a release line from bundled data only | Add `recommend_version` and `offing recommend`: the newest unended line whose end date is at least 180 days away, from bundled rules only; `no-data` is explicit and never says "latest". | | [0036](0036-corpus-schema-deno-elixir.md) | Add Deno and Elixir to the public validation schema | Add `deno` and `elixir` to the published corpus ecosystem enum when those detectors gain a public corpus. The change is additive. | | [0034](0034-detector-limits-in-the-sdk.md) | Publish the detector limits in the SDK | Export `DETECTOR_LIMITS` and its `DetectorLimits` type so the file-size, depth, and vendored-directory bounds are part of the typed detector contract and conformance reads them from there. | diff --git a/docs/forecast.md b/docs/forecast.md new file mode 100644 index 00000000..52135fc9 --- /dev/null +++ b/docs/forecast.md @@ -0,0 +1,108 @@ +--- +title: Forecast end of life +description: See upcoming end-of-life dates, affected files, and gaps in lifecycle data. +--- + +# Forecast end of life + +`offing forecast [path]` scans the repository and shows what reaches a dated end of life +within the selected window. The path defaults to the current directory. + +The terminal report groups events into 0–3, 3–6, and 6–12 month ranges. Each cutoff day +belongs to the range that ends on it. A shorter window ends at the requested month. +A window longer than 12 months adds a final range. Within each range, repository events +appear by date with their repository-relative paths and available line numbers. The count +labelled `elsewhere` covers dated events with zero findings in this repository. + +The first line summarizes the nearest range: + +- `storm` means at least one repository event is high or critical. +- `cloudy` means the nearest range has a lower-severity repository event or the report has coverage gaps. +- `clear` means the nearest range has zero repository events and the report found zero coverage gaps. Read the later ranges for upcoming work. + +The **No data** section lists declarations the scan could not classify and direct npm dependencies +in the root or its workspaces that have no rule in the active data. Each entry gives its reason and +location. The forecast covers dated events and the gaps Offing identified. + +| Option | Effect | +| --- | --- | +| `--months ` | Set the horizon to a whole number from 1 to 36. Default 12. | +| `--as-of ` | Use the specified day at midnight UTC. Default is today's UTC date. `--today` is an alias. | +| `--data-version ` | Pin the lifecycle data. Use `bundled` for the data shipped with this build. | +| `--no-cache` | Run a fresh scan. An explicit reference day also uses a fresh scan. | +| `--json` or `--format json` | Print the versioned forecast document. | +| `--format text` | Print the default terminal report. It uses plain labels with or without `NO_COLOR`. | +| `--timeline` | Print a bar chart grouped by calendar month. `NO_COLOR=1` uses ASCII bars. | +| `--svg [--animate]` | Write a self-contained SVG. `--animate` enables CSS animation. | +| `--format mermaid` | Print a Mermaid Gantt chart grouped by ecosystem. | + +An invalid horizon or date exits with status 2. A replay uses the files present when you +run the command. To repeat a forecast, use the same checkout, date, and data version. + +## JSON contract + +The [forecast v1 schema](../schemas/forecast.v1.schema.json) describes the document. +`schemaVersion` is `ebb.forecast.v1`. The document includes `root`, `today`, `until`, +`months`, and `groups` of events by calendar month. Each event carries its date, rule, +severity, source, and finding locations. `affecting` counts events with findings and +`total` counts all dated events in the window. `noData` contains the coverage gaps and is +an empty array when the report finds zero gaps. + +## Examples + +Run these from an Offing checkout after `npm ci`. The example runner builds the CLI and +restores the fixtures' original filenames in a temporary directory. + +### Replay a near-term deadline + +```bash +npm run example --silent -- demo forecast --as-of 2025-03-01 --months 3 --data-version bundled +``` + +```text +Weather: storm +Forecast from 2025-03-01 to 2025-06-01 (3 months) + +0-3 months + 1 affecting this repository, 2 elsewhere + 2025-04-30 Node.js 18 is end-of-life [high] (nodejs.runtime.eol-18) + package.json:5 +``` + +### Read affected locations in plain text + +```bash +NO_COLOR=1 npm run example --silent -- drift/nodejs forecast --as-of 2027-02-01 --months 3 --data-version bundled +``` + +```text +Weather: cloudy +Forecast from 2027-02-01 to 2027-05-01 (3 months) + +0-3 months + 2 affecting this repository, 0 elsewhere + 2027-04-30 Node.js image release line 22 reaches end-of-life on 2027-04-30 [low] (container.node.eol-22-and-older) + Dockerfile:1 + 2027-04-30 Node.js 22 reaches end-of-life on 2027-04-30 [low] (nodejs.runtime.eol-22) + .github/workflows/ci.yml:10 + .nvmrc:1 + package.json:8 +``` + +### Read the version and counts from JSON + +```bash +npm run example --silent -- drift/nodejs forecast --as-of 2027-02-01 --months 3 --data-version bundled --json | + node -e 'const { schemaVersion, months, affecting, total, noData } = JSON.parse(require("node:fs").readFileSync(0, "utf8")) + console.log(JSON.stringify({ schemaVersion, months, affecting, total, noData }, null, 2))' +``` + +```json +{ + "schemaVersion": "ebb.forecast.v1", + "months": 3, + "affecting": 2, + "total": 2, + "noData": [] +} +``` diff --git a/schemas/forecast.v1.schema.json b/schemas/forecast.v1.schema.json index 761968dc..0edff2cb 100644 --- a/schemas/forecast.v1.schema.json +++ b/schemas/forecast.v1.schema.json @@ -27,7 +27,32 @@ } }, "affecting": { "type": "integer", "minimum": 0 }, - "total": { "type": "integer", "minimum": 0 } + "total": { "type": "integer", "minimum": 0 }, + "noData": { + "description": "Components without local lifecycle coverage. Current producers always include this array.", + "type": "array", + "items": { + "type": "object", + "required": ["detector", "component", "reference", "reason", "location"], + "additionalProperties": false, + "properties": { + "detector": { "type": "string" }, + "component": { "type": "string" }, + "reference": { "type": "string" }, + "reason": { "type": "string" }, + "location": { + "type": "object", + "required": ["path"], + "additionalProperties": false, + "properties": { + "path": { "type": "string" }, + "line": { "type": "integer", "minimum": 1 }, + "column": { "type": "integer", "minimum": 1 } + } + } + } + } + } }, "$defs": { "event": { diff --git a/src/agent-tools.ts b/src/agent-tools.ts index 55d1702c..07e77382 100644 --- a/src/agent-tools.ts +++ b/src/agent-tools.ts @@ -4,6 +4,8 @@ import { resolve } from "node:path"; import { findingFingerprint } from "./baseline.js"; import { bundledRules } from "@velella/ebb/bundled-rules"; import type { DataInfo, Finding, ScanResult, Severity, SourceLocation, VerificationCommand } from "./domain.js"; +import { buildRepositoryForecast, replayScanOptions } from "./forecast.js"; +import type { RepositoryForecast } from "./forecast.js"; import { createMigrationPacket } from "./migration-packet.js"; import type { Receipt } from "./receipt.js"; import { buildReceipt } from "./receipt.js"; @@ -91,6 +93,17 @@ export class OffingAgentTools { return result; } + /** Scan once and preserve the finding references exposed by the forecast tool. */ + async forecast(repositoryPath: string, months: number, asOf: string | undefined): Promise { + const { result } = await runScanRequest({ + root: repositoryPath, + ...(asOf === undefined ? {} : { today: asOf, engine: replayScanOptions(asOf) }), + }); + const forecast = await buildRepositoryForecast(result, months); + this.remember(result); + return forecast; + } + async list(repositoryPath = "."): Promise { const result = await this.scan(repositoryPath); return { diff --git a/src/commands/forecast.ts b/src/commands/forecast.ts index daeeb7b4..927d9eec 100644 --- a/src/commands/forecast.ts +++ b/src/commands/forecast.ts @@ -1,13 +1,12 @@ import process from "node:process"; -import { bundledRules } from "@velella/ebb/bundled-rules"; -import { builtInDetectors } from "../detectors/index.js"; -import { scanRepository } from "../engine/index.js"; -import type { Forecast } from "@velella/ebb/forecast"; -import { buildForecast, DEFAULT_FORECAST_MONTHS, MAX_FORECAST_MONTHS, renderForecastText } from "@velella/ebb/forecast"; +import { DEFAULT_FORECAST_MONTHS, MAX_FORECAST_MONTHS } from "@velella/ebb/forecast"; +import { buildRepositoryForecast, renderForecastText, replayScanOptions } from "../forecast.js"; +import type { RepositoryForecast } from "../forecast.js"; import { renderForecastSvg } from "../forecast-svg.js"; import { renderForecastTimeline } from "../forecast-timeline.js"; import { renderForecastMermaid } from "../reporters.js"; +import { scanWithBuiltIns } from "../scan-builtins.js"; import type { Gated } from "./runtime.js"; import { afterGates, preScanPhase, repositoryPhase } from "./runtime.js"; import type { CliCommand, CommandContext } from "./types.js"; @@ -56,7 +55,7 @@ function forecastMonthsFailure(months: number, ctx: CommandContext): number | un } /** Prints the forecast in the selected mode: the SVG, the mermaid block, the timeline, JSON, or text. */ -function printForecast(forecast: Forecast, modes: ForecastModes): void { +function printForecast(forecast: RepositoryForecast, modes: ForecastModes): void { if (modes.svg) { process.stdout.write(`${renderForecastSvg(forecast, { animate: modes.animate })}\n`); return; @@ -79,8 +78,8 @@ export const command: CliCommand = { flags: ["--months", "--as-of", "--today", "--svg", "--animate", "--timeline", "--json", "--format", "--data-version"], example: "offing forecast . --months 6", usage: [ - " offing forecast [path] [--months ] [--as-of ] [--svg [--animate] | --timeline | --json | --format mermaid] # what reaches end of life next, by month", - " offing forecast [path] [--months ] [--as-of ] [--timeline | --json | --format mermaid] # what reaches end of life next, by month", + " offing forecast [path] [--months ] [--as-of ] [--svg [--animate] | --timeline | --json | --format mermaid] # what reaches end of life next, by horizon", + " offing forecast [path] [--months ] [--as-of ] [--timeline | --json | --format mermaid] # what reaches end of life next, by horizon", ], usageSlots: [13, 14], run(args, ctx) { @@ -99,16 +98,18 @@ export const command: CliCommand = { const modeFailure = forecastModeFailure(modes, ctx); if (modeFailure !== undefined) return modeFailure; const monthsValue = state.optionValue("--months"); - const months = monthsValue === undefined ? DEFAULT_FORECAST_MONTHS : Number(monthsValue); + const months = state.args.includes("--months") ? Number(monthsValue) : DEFAULT_FORECAST_MONTHS; const monthsFailure = forecastMonthsFailure(months, ctx); if (monthsFailure !== undefined) return monthsFailure; const asOfValue = state.optionValue("--as-of") ?? state.optionValue("--today"); - const forecast = buildForecast( - await scanRepository(state.pathArgument, builtInDetectors, { noCache: state.noCache }), - await bundledRules(), - asOfValue ?? new Date().toISOString().slice(0, 10), - months, + if (asOfValue === undefined && (state.args.includes("--as-of") || state.args.includes("--today"))) { + return ctx.fail("usage", "--as-of (or --today) must be a date (YYYY-MM-DD)."); + } + const scan = await scanWithBuiltIns( + state.pathArgument, + asOfValue === undefined ? { noCache: state.noCache } : replayScanOptions(asOfValue), ); + const forecast = await buildRepositoryForecast(scan, months); printForecast(forecast, modes); return 0; }); diff --git a/src/engine/index.ts b/src/engine/index.ts index 07112cbe..796dcc87 100644 --- a/src/engine/index.ts +++ b/src/engine/index.ts @@ -150,7 +150,7 @@ export async function scanRepository( // One timestamp for the whole scan: detectors that need "today" (CLE scheduled dates) read it from // context instead of the clock, so findings stay deterministic for this run. - const scannedAt = new Date(); + const scannedAt = new Date(options.scannedAt ?? Date.now()); const contextScannedAt = options.scannedAt ?? scannedAt.toISOString(); const context = { root: resolvedRoot, scannedAt: contextScannedAt }; diff --git a/src/forecast-timeline.ts b/src/forecast-timeline.ts index c7c01756..ca1c2b36 100644 --- a/src/forecast-timeline.ts +++ b/src/forecast-timeline.ts @@ -1,4 +1,27 @@ -import type { Forecast } from "@velella/ebb/forecast"; +import { addMonths } from "@velella/ebb/forecast"; +import type { Forecast, ForecastEvent } from "@velella/ebb/forecast"; + +interface ForecastBucket { + label: string; + events: ForecastEvent[]; +} + +/** Split the existing events at inclusive calendar-month cutoffs, retaining any longer horizon. */ +export function forecastBuckets(forecast: Forecast): ForecastBucket[] { + const cutoffs = [3, 6, 12].filter((months) => months < forecast.months); + const ends = [...cutoffs.map((months) => addMonths(forecast.today, months)), forecast.until]; + const buckets: ForecastBucket[] = [...cutoffs, forecast.months].map((end, index) => ({ + label: `${cutoffs[index - 1] ?? 0}-${end} months`, + events: [], + })); + + const events = forecast.groups.flatMap((group) => group.events); + events.sort((left, right) => left.date.localeCompare(right.date) || left.ruleId.localeCompare(right.ruleId)); + for (const event of events) { + buckets[ends.findIndex((until) => event.date <= until)]?.events.push(event); + } + return buckets; +} export interface ForecastTimelineOptions { /** Total width in columns. Defaults to 80. */ diff --git a/src/forecast.ts b/src/forecast.ts new file mode 100644 index 00000000..9bf1dba1 --- /dev/null +++ b/src/forecast.ts @@ -0,0 +1,131 @@ +import { resolve } from "node:path"; + +import { bundledRules } from "@velella/ebb/bundled-rules"; +import { buildForecast } from "@velella/ebb/forecast"; +import type { Forecast, ForecastEvent } from "@velella/ebb/forecast"; +import { purlIdentity } from "@velella/ebb/purl"; +import type { RegistryV2Rule } from "@velella/ebb/registry"; +import { declaredDependencies, parsePackageManifest } from "./detectors/npm/manifest.js"; +import type { PackageManifest } from "./detectors/npm/manifest.js"; +import type { ScanResult, SourceLocation, UnclassifiedReference } from "./domain.js"; +import type { ScanOptions } from "./engine/index.js"; +import { sortReferences } from "./engine/resolve.js"; +import { forecastBuckets } from "./forecast-timeline.js"; +import { readBoundedFile } from "./package-files.js"; +import { childPosixPath } from "./paths.js"; +import { discoverNpmWorkspaces } from "./workspaces.js"; + +/** The versioned Ebb forecast with the repository references that lack lifecycle coverage. */ +export interface RepositoryForecast extends Forecast { + noData: UnclassifiedReference[]; +} + +/** Replay detectors against the forecast's reference day without replacing the live scan cache. */ +export function replayScanOptions(asOf: string): ScanOptions { + return { scannedAt: `${asOf}T00:00:00.000Z`, noCache: true }; +} + +function npmIdentity(name: string, range: string): string | undefined { + // npm aliases declare the installed package as npm:@. + const alias = /^npm:((?:@[^/]+\/)?[^@]+)(?:@.*)?$/u.exec(range); + try { + return purlIdentity(`pkg:npm/${alias?.[1] ?? name}`); + } catch { + return undefined; + } +} + +function noDataInManifest(contents: string, path: string, known: ReadonlySet): UnclassifiedReference[] { + let manifest: PackageManifest; + try { + manifest = parsePackageManifest(contents); + } catch { + // A malformed workspace manifest is skipped by the detector as well. + return []; + } + const references: UnclassifiedReference[] = []; + for (const [component, { range }] of declaredDependencies(manifest)) { + if (typeof range !== "string") continue; + const identity = npmIdentity(component, range); + if (identity === undefined || known.has(identity)) continue; + references.push({ + component, + detector: "npm", + reference: identity, + reason: "no lifecycle rule for the package", + location: { path }, + }); + } + return references; +} + +/** Use the scan's unclassified references plus npm declarations with no rule for their package identity. */ +async function noDataComponents( + result: ScanResult, + rules: readonly RegistryV2Rule[], +): Promise { + const known = new Set(rules.map((rule) => rule.purl)); + const references = [...(result.unclassified?.references ?? [])]; + for (const directory of ["", ...(await discoverNpmWorkspaces(result.root))]) { + const path = childPosixPath(directory, "package.json"); + const contents = (await readBoundedFile(resolve(result.root, path)))?.contents; + if (contents !== undefined) references.push(...noDataInManifest(contents, path, known)); + } + return sortReferences(references); +} + +/** Add coverage information to the existing dated forecast without recomputing any events. */ +export async function buildRepositoryForecast(result: ScanResult, months: number): Promise { + const rules = await bundledRules(); + return { + ...buildForecast(result, rules, result.scannedAt.slice(0, 10), months), + noData: await noDataComponents(result, rules), + }; +} + +function weather(events: readonly ForecastEvent[], hasNoData: boolean): "clear" | "cloudy" | "storm" { + if (events.some(({ severity }) => severity === "high" || severity === "critical")) return "storm"; + return events.length > 0 || hasNoData ? "cloudy" : "clear"; +} + +/** Keep each data value on one terminal line, even when a repository supplies control characters. */ +function singleLine(text: string): string { + return text.replace( + /\p{Cc}|\p{Zl}|\p{Zp}/gu, + (character) => `\\u${character.charCodeAt(0).toString(16).padStart(4, "0")}`, + ); +} + +function locationText({ path, line }: SourceLocation): string { + return line === undefined ? singleLine(path) : `${singleLine(path)}:${line}`; +} + +/** Render the affected events by horizon with the original locations and explicit data gaps. */ +export function renderForecastText(forecast: RepositoryForecast): string { + const buckets = forecastBuckets(forecast); + const affecting = buckets.map((bucket) => bucket.events.filter((event) => event.findings.length > 0)); + const lines = [ + `Weather: ${weather(affecting[0] ?? [], forecast.noData.length > 0)}`, + `Forecast from ${forecast.today} to ${forecast.until} (${forecast.months} month${forecast.months === 1 ? "" : "s"})`, + ]; + + for (const [index, bucket] of buckets.entries()) { + const events = affecting[index] ?? []; + const other = bucket.events.length - events.length; + lines.push("", bucket.label, ` ${events.length} affecting this repository, ${other} elsewhere`); + for (const event of events) { + lines.push(` ${event.date} ${singleLine(event.title)} [${event.severity}] (${singleLine(event.ruleId)})`); + for (const finding of event.findings) lines.push(` ${locationText(finding)}`); + } + } + + if (forecast.noData.length > 0) { + lines.push("", "No data"); + for (const { component, reference, reason, location } of forecast.noData) { + lines.push( + ` ${singleLine(component)} (${singleLine(reference)}) at ${locationText(location)}: ${singleLine(reason)}`, + ); + } + } + return lines.join("\n"); +} diff --git a/src/mcp/tools/forecast-repository.ts b/src/mcp/tools/forecast-repository.ts index 28ee9b4a..042745b5 100644 --- a/src/mcp/tools/forecast-repository.ts +++ b/src/mcp/tools/forecast-repository.ts @@ -2,8 +2,8 @@ import type { McpServer } from "@modelcontextprotocol/server"; import * as z from "zod/v4"; import type { OffingAgentTools } from "../../agent-tools.js"; -import { bundledRules } from "@velella/ebb/bundled-rules"; -import { buildForecast, DEFAULT_FORECAST_MONTHS, MAX_FORECAST_MONTHS } from "@velella/ebb/forecast"; +import { DEFAULT_FORECAST_MONTHS, MAX_FORECAST_MONTHS } from "@velella/ebb/forecast"; +import { isIsoDate } from "@velella/ebb/registry"; import { failure, registerMcpTool, repositoryInput, success } from "../tool-support.js"; /** Registers `forecast_repository`: what reaches a dated end of life in the coming months. */ @@ -27,16 +27,15 @@ export function registerForecastRepository(server: McpServer, tools: OffingAgent as_of: z .string() .regex(/^\d{4}-\d{2}-\d{2}$/, "as_of must be a date (YYYY-MM-DD).") + .refine(isIsoDate, "as_of must be a date (YYYY-MM-DD).") .optional() .describe("The day to start the window from, as YYYY-MM-DD. Defaults to today in UTC."), }), async handler(context, { repository_path, months, as_of }) { try { - const result = await context.tools.scan(repository_path); + const result = await context.tools.forecast(repository_path, months, as_of); context.server.sendResourceListChanged(); - return success( - buildForecast(result, await bundledRules(), as_of ?? new Date().toISOString().slice(0, 10), months), - ); + return success(result); } catch (error) { return failure(error); } diff --git a/tests/__snapshots__/forecast-examples.txt b/tests/__snapshots__/forecast-examples.txt new file mode 100644 index 00000000..862b888a --- /dev/null +++ b/tests/__snapshots__/forecast-examples.txt @@ -0,0 +1,876 @@ +=== examples/agents/copilot === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/agents/cursor === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/agents/gemini === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/agents/kilo === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/agents/site-stack === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/agents/windsurf === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/codemods/dockerfile-legacy === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/codemods/k8s-ingress-v1 === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/codemods/node-buffer === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/codemods/node-renames === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/codemods/node-util-is === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/codemods/python-imp === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/codemods/python-renames === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/codemods/python-utcnow === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/codemods/terraform-legacy === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/codemods/workflow-commands === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/demo === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/detectors === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/drift/dotnet === +Weather: storm +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 2 affecting this repository, 1 elsewhere + 2026-11-10 .NET 8 is no longer supported [high] (dotnet.runtime.end-of-support-8.0) + .github/workflows/ci.yml:10 + Dockerfile:2 + 2026-11-10 .NET 9 is no longer supported [high] (dotnet.runtime.end-of-support-9.0) + App/App.csproj:3 + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/drift/elixir === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/drift/go === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/drift/java === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/drift/nodejs === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 2 affecting this repository, 1 elsewhere + 2027-04-30 Node.js image release line 22 reaches end-of-life on 2027-04-30 [low] (container.node.eol-22-and-older) + Dockerfile:1 + 2027-04-30 Node.js 22 reaches end-of-life on 2027-04-30 [low] (nodejs.runtime.eol-22) + .github/workflows/ci.yml:10 + .nvmrc:1 + package.json:8 + +=== examples/drift/php === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/drift/python === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/drift/ruby === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/drift/rust === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/drift/terraform === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/gallery/android === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/gallery/ci-images === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/gallery/container === +Weather: storm +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 1 affecting this repository, 1 elsewhere + 2026-11-01 Alpine Linux image release line 3.21 is end-of-life [high] (container.alpine.eol-3.21) + os-images.Dockerfile:8 + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 1 affecting this repository, 2 elsewhere + 2027-06-01 Ubuntu image release line 22.04 reaches standard support end-of-life on 2027-06-01 [low] (container.ubuntu.eol-22.04) + os-images.Dockerfile:6 + +=== examples/gallery/cpp === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/gallery/dart === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/gallery/database === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/gallery/deno === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/gallery/dotnet === +Weather: storm +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 1 affecting this repository, 1 elsewhere + 2026-11-10 .NET 8 is no longer supported [high] (dotnet.runtime.end-of-support-8.0) + lib/Lib.fsproj:4 + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/gallery/elixir === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/gallery/github-actions === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/gallery/go === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/gallery/java === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/gallery/kubernetes === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/gallery/nodejs === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/gallery/npm === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/gallery/php === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/gallery/python === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/gallery/ruby === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/gallery/rust === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/gallery/scala === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/gallery/serverless === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/gallery/shell === +Weather: storm +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 1 affecting this repository, 1 elsewhere + 2026-11-10 PowerShell 7.4 (LTS) is no longer supported [high] (shell.powershell.end-of-life-7.4) + .github/workflows/ci.yml:14 + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/gallery/swift === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/gallery/terraform === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/inventory === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/plan-dispatch === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/receipts === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/starters/nextjs === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/starters/slipway === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/upgrade/composer-lock === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/upgrade/dart-sdk === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/upgrade/go-modules === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/upgrade/node-apis === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/upgrade/npm-lock === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/upgrade/pnpm-lock === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/upgrade/poetry-lock === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/upgrade/python-stdlib === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere + +=== examples/upgrade/uv-pdm-lock === +Weather: clear +Forecast from 2026-10-25 to 2027-10-25 (12 months) + +0-3 months + 0 affecting this repository, 1 elsewhere + +3-6 months + 0 affecting this repository, 0 elsewhere + +6-12 months + 0 affecting this repository, 2 elsewhere diff --git a/tests/cle-ingest.test.ts b/tests/cle-ingest.test.ts index d7ad823e..29598fb4 100644 --- a/tests/cle-ingest.test.ts +++ b/tests/cle-ingest.test.ts @@ -10,6 +10,7 @@ import { CLE_FILE_NAME, cleDetector, ingestCle, parseCleDocument } from "../src/ import { builtInDetectors } from "../src/detectors/index.js"; import { scanRepository } from "../src/engine/index.js"; import { CLE_SCHEMA } from "@velella/ebb/export/cle"; +import { runCli } from "./cli-runner.js"; const packagesRoot = resolve("tests/fixtures/cle-ingest/packages"); const temporaryRoots: string[] = []; @@ -235,3 +236,13 @@ test("the installed-package walk reads pnpm stores and scoped packages and skips assert.ok(serialized.includes("scoped-widget"), "a scoped package is read"); assert.ok(!serialized.includes("linked-widget"), "a symbolic link is not followed"); }); + +test("forecast replays installed-package events against the requested day", async () => { + const root = await packageWithCle({ effective: "2001-06-01T00:00:00Z" }); + const args = ["forecast", root, "--as-of", "2001-05-01", "--months", "3", "--data-version", "bundled"]; + const historical = await runCli(args); + assert.equal(historical.code, 0); + assert.match(historical.stdout, /scheduled \(maintainer CLE\) \[low\] \(cle\.endOfLife\.npm-dated-widget\.1\)/); + assert.match(historical.stdout, /node_modules\/dated-widget\/cle\.json:1/); + assert.deepEqual(await runCli(args), historical); +}); diff --git a/tests/fixtures/cli/help.txt b/tests/fixtures/cli/help.txt index 5ed9af15..c3dea275 100644 --- a/tests/fixtures/cli/help.txt +++ b/tests/fixtures/cli/help.txt @@ -14,8 +14,8 @@ Usage: offing scan [path] --exclude # drop matching findings; repeatable offing scan [path] --no-cache # bypass the scan cache and re-scan all files fresh offing scan ... [--all ] [--json] # several projects, per-project and combined counts - offing forecast [path] [--months ] [--as-of ] [--svg [--animate] | --timeline | --json | --format mermaid] # what reaches end of life next, by month - offing forecast [path] [--months ] [--as-of ] [--timeline | --json | --format mermaid] # what reaches end of life next, by month + offing forecast [path] [--months ] [--as-of ] [--svg [--animate] | --timeline | --json | --format mermaid] # what reaches end of life next, by horizon + offing forecast [path] [--months ] [--as-of ] [--timeline | --json | --format mermaid] # what reaches end of life next, by horizon offing countdown [path] [--as-of ] [--limit ] [--json] [--once] [--no-animation] # live countdown to each dated deadline offing plan [path] [--json] [--wave ] # migration waves from a scan; --wave prints one zero-based wave offing status-card [path] [--name