You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
The "Monday packet" — forecasting, rep performance, and a one-command
digest that fans a single fetch into the existing analytics:
metrics forecast — open pipeline bucketed by close-month into commit / best-case / weighted views. Commit counts deals whose
effective win-probability (--commit-threshold, default 70) clears
the bar, at full value; weighted uses deal probability ?? stage default ?? 100. Values are segregated
per currency (never cross-summed), with a per-currency totals line.
rep scorecard — per-owner win rate, cycle, velocity and deal
hygiene (stale / past-close / no-date / no-contact), with owner names
resolved from the users roster. Account-wide by default; narrow with --pipeline, --owner, --period.
digest — the whole packet from ONE pipeline-scoped fetch: velocity,
pipeline health, coverage, funnel, forecast and must-fix hygiene.
Cheap by default; --deep mines per-deal changelogs to add aging,
slippage and stage-skips. --format md|html (optionally --out <file>) renders a shareable artifact for cron → Slack/email; a
missing revenue goal degrades to no coverage section rather than
failing.
Changed
Extracted the duplicated >1-pipeline guard and the Goals-API
resolution recipe into shared src/lib/pipelines.js and src/lib/goals.js; the seven pipeline-scoped commands now share one
tested implementation. No behavior change.
Fixed
metrics coverage no longer blind-sums open value across currencies
(a meaningless cross-currency ratio against a single-currency quota).
A multi-currency open pipeline now errors with exit 64; scope it with
the new --currency <code> flag. digest applies the same guard by
omitting its coverage section (with a stderr note) on mixed currencies.