Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/quiet-sourcemap-agent-frontmatter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lanterna-profiler/cli": patch
---

Remove redundant `sourcemap_applicable` metadata from agent report frontmatter. The agent format now keeps `sourcemap_status` and `sourcemap_coverage`, while structured JSON reports still expose source-map applicability.
3 changes: 0 additions & 3 deletions packages/cli/src/renderers/agent-renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ function appendFrontmatter(lines: string[], report: LanternaReport): void {
if (sourceMaps.status !== undefined) {
lines.push(`sourcemap_status: ${yamlScalar(sourceMaps.status)}`);
}
if (sourceMaps.applicable !== undefined) {
lines.push(`sourcemap_applicable: ${yamlScalar(sourceMaps.applicable)}`);
}
lines.push(`sourcemap_maps_loaded: ${yamlScalar(sourceMaps.mapsLoaded)}`);
} else {
lines.push('sourcemap_coverage: null');
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/test/report-renderer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ describe('renderReport', () => {
expect(output).toContain('rerun_required: true');
expect(output).toContain('sourcemap_coverage: 0.9');
expect(output).toContain('sourcemap_status: ok');
expect(output).toContain('sourcemap_applicable: true');
expect(output).not.toContain('sourcemap_applicable:');
expect(output).toContain('"control channel unavailable"');
expect(output).toContain('## Findings');
expect(output).toMatch(
Expand Down
Loading