launch-doctor 0.4.2 → 0.4.3

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.
@@ -202,6 +202,11 @@ export function renderShortReport(report, opts = {}) {
202
202
  ]);
203
203
  }
204
204
  rows.push([`npx launch-doctor${target} --verbose`, 'the full report']);
205
+ // The demo's folder is deleted after the scan, so it has nowhere to write a report.
206
+ if (opts.reportFile)
207
+ rows.push([opts.reportFile, 'every finding explained']);
208
+ else if (!opts.demo)
209
+ rows.push([`npx launch-doctor${target} --report`, 'every finding explained, in .launchdoctor/report.md']);
205
210
  lines.push(` ${bold('Next')}`, ...commandRows(rows, width));
206
211
  if (opts.demo && !opts.fixFile)
207
212
  lines.push(` ${dim('On your own project, every fix prompt is saved to LAUNCH_FIXES.md.')}`);
@@ -20,6 +20,12 @@ export interface Finding {
20
20
  fingerprint?: string;
21
21
  /** True when this finding is in .launchdoctor-baseline.json (an existing, accepted issue). */
22
22
  baseline?: boolean;
23
+ /**
24
+ * A short id for this one finding ("3f9a1c2b"), the same on every scan while the finding is unchanged: a hash of the
25
+ * rule id, the file and the text of its line (whitespace collapsed), so it survives the line moving. Set by
26
+ * runDoctor and runLiveScan. Used by `prompt`, `explain` and the MCP tools.
27
+ */
28
+ ref?: string;
23
29
  /**
24
30
  * How the short terminal report shows this finding. Display only: ids, titles, fingerprints and
25
31
  * baselines never use it. Absent for most warnings, which then show their title and the start of `why`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "launch-doctor",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "A pre-launch checkup for vibe-coded apps. Grades your project A-F on secrets, database safety, payments, AI costs, email, error tracking, legal pages and first impressions, with a copy-paste fix prompt for every issue.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -21,7 +21,7 @@
21
21
  "lint": "biome lint .",
22
22
  "format": "biome format --write .",
23
23
  "format:check": "biome format .",
24
- "test": "npm run build && node --test \"dist/test/**/*.test.js\"",
24
+ "test": "npm run build && node --test --test-timeout=120000 \"dist/test/**/*.test.js\"",
25
25
  "stress": "npm run build && node scripts/stress/run.mjs",
26
26
  "start": "node dist/src/cli.js",
27
27
  "doctor": "npm run build && node dist/src/cli.js",