@newrelic/preflight 1.39.0 → 1.41.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.
Files changed (31) hide show
  1. package/README.md +4 -1
  2. package/dist/data/dashboards/ai-coding-assistant-adoption-cost.json +1948 -0
  3. package/dist/deploy/data-paths.d.ts +3 -2
  4. package/dist/deploy/data-paths.d.ts.map +1 -1
  5. package/dist/deploy/data-paths.js +2 -1
  6. package/dist/deploy/data-paths.js.map +1 -1
  7. package/dist/install/cli.d.ts.map +1 -1
  8. package/dist/install/cli.js +302 -4
  9. package/dist/install/cli.js.map +1 -1
  10. package/dist/install/copilot-install-helper.d.ts +84 -0
  11. package/dist/install/copilot-install-helper.d.ts.map +1 -0
  12. package/dist/install/copilot-install-helper.js +385 -0
  13. package/dist/install/copilot-install-helper.js.map +1 -0
  14. package/dist/install/schedule.d.ts +1 -0
  15. package/dist/install/schedule.d.ts.map +1 -1
  16. package/dist/install/schedule.js +9 -6
  17. package/dist/install/schedule.js.map +1 -1
  18. package/dist/install/setup-wizard.d.ts.map +1 -1
  19. package/dist/install/setup-wizard.js +30 -0
  20. package/dist/install/setup-wizard.js.map +1 -1
  21. package/dist/metrics/local-session-aggregator.d.ts +11 -0
  22. package/dist/metrics/local-session-aggregator.d.ts.map +1 -1
  23. package/dist/metrics/local-session-aggregator.js +7 -1
  24. package/dist/metrics/local-session-aggregator.js.map +1 -1
  25. package/dist/platforms/copilot-adapter.d.ts.map +1 -1
  26. package/dist/platforms/copilot-adapter.js +12 -4
  27. package/dist/platforms/copilot-adapter.js.map +1 -1
  28. package/dist/platforms/copilot-sdk-adapter.d.ts.map +1 -1
  29. package/dist/platforms/copilot-sdk-adapter.js +9 -2
  30. package/dist/platforms/copilot-sdk-adapter.js.map +1 -1
  31. package/package.json +1 -1
package/README.md CHANGED
@@ -57,12 +57,13 @@ See cost breakdown, efficiency scoring, anti-patterns, and live session tracking
57
57
  ### Dashboards
58
58
 
59
59
  - **Local dashboard** — live session view at `localhost:7777`, no account required
60
- - **7 pre-built New Relic dashboards** — deploy in seconds _(New Relic mode)_:
60
+ - **8 pre-built New Relic dashboards** — deploy in seconds _(New Relic mode)_:
61
61
  - **Overview** — session stats, cost summary, top tools
62
62
  - **Personal** — 30-day self-reflection scoped to you
63
63
  - **Session Detail** — deep-dive into a single session's tool calls
64
64
  - **Team View** — aggregated cost and efficiency across developers
65
65
  - **Manager View** — high-level team metrics, no tool-call content
66
+ - **Adoption & Cost** — adoption momentum, spend, MCP usage, and per-developer outcomes for engineering managers
66
67
  - **Platform Comparison** — Claude Code vs. Cursor vs. Windsurf, etc.
67
68
  - **Security Audit** — audit trail of sensitive file access
68
69
 
@@ -86,6 +87,8 @@ preflight setup
86
87
 
87
88
  The wizard defaults to **local mode** — press Enter through the prompts and you're set. It wires Preflight into your AI tool (hooks + MCP server) and writes config to `~/.newrelic-preflight/`. Takes under a minute, no account required.
88
89
 
90
+ > **Using GitHub Copilot?** The wizard also asks to install Copilot hooks — saying yes configures both the Copilot CLI and VS Code Copilot Chat automatically (hooks, MCP registration, and the fix for VS Code's hook double-capture), so Copilot gets the same tool-call and cost metrics Claude Code does. Run it standalone anytime with `preflight install --copilot`. See [docs/ADAPTERS.md](./docs/ADAPTERS.md#github-copilot-copilot) for details.
91
+
89
92
  When prompted, pick a mode:
90
93
 
91
94
  | Mode | What it does | New Relic account? |