@mergesignal/shared 0.4.2 → 0.5.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.
- package/dist/actionsStepSummary.d.ts +1 -22
- package/dist/actionsStepSummary.d.ts.map +1 -1
- package/dist/actionsStepSummary.js +19 -716
- package/dist/actionsStepSummary.test.js +34 -329
- package/dist/assessmentLabels.d.ts +6 -0
- package/dist/assessmentLabels.d.ts.map +1 -0
- package/dist/assessmentLabels.js +33 -0
- package/dist/assessmentProjection.d.ts +12 -0
- package/dist/assessmentProjection.d.ts.map +1 -0
- package/dist/assessmentProjection.js +100 -0
- package/dist/assessmentSchema.d.ts +155 -0
- package/dist/assessmentSchema.d.ts.map +1 -0
- package/dist/assessmentSchema.js +110 -0
- package/dist/cardObservationCatalog.d.ts +2 -0
- package/dist/cardObservationCatalog.d.ts.map +1 -1
- package/dist/cardObservationCatalog.js +47 -1
- package/dist/engineWireRegression.test.js +24 -4
- package/dist/fixtures/assessmentFixtures.d.ts +13 -0
- package/dist/fixtures/assessmentFixtures.d.ts.map +1 -0
- package/dist/fixtures/assessmentFixtures.js +164 -0
- package/dist/formatCardExposureDisplay.d.ts +0 -4
- package/dist/formatCardExposureDisplay.d.ts.map +1 -1
- package/dist/formatCardExposureDisplay.js +0 -15
- package/dist/formatInsight.d.ts +3 -2
- package/dist/formatInsight.d.ts.map +1 -1
- package/dist/formatInsight.js +26 -1
- package/dist/index.d.ts +7 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -11
- package/dist/narrativeParity.test.js +6 -37
- package/dist/presentGitHubPrComment.d.ts +1 -3
- package/dist/presentGitHubPrComment.d.ts.map +1 -1
- package/dist/presentGitHubPrComment.js +0 -17
- package/dist/presentation/compose/narrativeChannels.d.ts +17 -0
- package/dist/presentation/compose/narrativeChannels.d.ts.map +1 -0
- package/dist/presentation/compose/narrativeChannels.js +45 -0
- package/dist/presentation/compose/narrativeChannels.test.d.ts +2 -0
- package/dist/presentation/compose/narrativeChannels.test.d.ts.map +1 -0
- package/dist/presentation/compose/narrativeChannels.test.js +42 -0
- package/dist/presentation/compose/narrativeCompose.d.ts +1 -0
- package/dist/presentation/compose/narrativeCompose.d.ts.map +1 -1
- package/dist/presentation/compose/narrativeCompose.js +5 -7
- package/dist/presentation/dto/assessmentPresentationFields.d.ts +13 -0
- package/dist/presentation/dto/assessmentPresentationFields.d.ts.map +1 -0
- package/dist/presentation/dto/dashboardCardPresentation.d.ts +30 -0
- package/dist/presentation/dto/dashboardCardPresentation.d.ts.map +1 -0
- package/dist/presentation/dto/dashboardCardPresentation.js +1 -0
- package/dist/presentation/dto/githubAndCliPresentation.d.ts +4 -3
- package/dist/presentation/dto/githubAndCliPresentation.d.ts.map +1 -1
- package/dist/presentation/dto/scanDetailsPresentation.d.ts +2 -1
- package/dist/presentation/dto/scanDetailsPresentation.d.ts.map +1 -1
- package/dist/presentation/dto/types.d.ts +0 -9
- package/dist/presentation/dto/types.d.ts.map +1 -1
- package/dist/presentation/dto/types.js +1 -22
- package/dist/presentation/fixtures/dashboardCardGolden.test.d.ts +2 -0
- package/dist/presentation/fixtures/dashboardCardGolden.test.d.ts.map +1 -0
- package/dist/presentation/fixtures/dashboardCardGolden.test.js +38 -0
- package/dist/presentation/fixtures/presentationPersonaFixtures.d.ts.map +1 -1
- package/dist/presentation/fixtures/presentationPersonaFixtures.js +31 -24
- package/dist/presentation/fixtures/scanResultFixtures.d.ts.map +1 -1
- package/dist/presentation/fixtures/scanResultFixtures.js +14 -3
- package/dist/presentation/index.d.ts +6 -6
- package/dist/presentation/index.d.ts.map +1 -1
- package/dist/presentation/index.js +2 -4
- package/dist/presentation/orchestration/buildScanCardPresentation.d.ts +2 -2
- package/dist/presentation/orchestration/buildScanCardPresentation.d.ts.map +1 -1
- package/dist/presentation/orchestration/buildScanCardPresentation.js +13 -9
- package/dist/presentation/orchestration/buildScanPresentationBundle.d.ts +1 -1
- package/dist/presentation/orchestration/buildScanPresentationBundle.d.ts.map +1 -1
- package/dist/presentation/orchestration/buildScanPresentationBundle.js +12 -10
- package/dist/presentation/orchestration/scanPresentationBundle.d.ts +8 -3
- package/dist/presentation/orchestration/scanPresentationBundle.d.ts.map +1 -1
- package/dist/presentation/presentation.test.js +16 -18
- package/dist/presentation/presentationPersonas.test.js +20 -19
- package/dist/presentation/presenters/presentCliScanSummary.d.ts.map +1 -1
- package/dist/presentation/presenters/presentCliScanSummary.js +4 -2
- package/dist/presentation/presenters/presentDashboardCard.d.ts +5 -0
- package/dist/presentation/presenters/presentDashboardCard.d.ts.map +1 -0
- package/dist/presentation/presenters/presentDashboardCard.js +119 -0
- package/dist/presentation/presenters/presentGitHubCheckRun.d.ts.map +1 -1
- package/dist/presentation/presenters/presentGitHubCheckRun.js +4 -2
- package/dist/presentation/presenters/presentGitHubPrComment.d.ts.map +1 -1
- package/dist/presentation/presenters/presentGitHubPrComment.js +15 -21
- package/dist/presentation/presenters/presentScanDetails.d.ts.map +1 -1
- package/dist/presentation/presenters/presentScanDetails.js +53 -127
- package/dist/presentation/profile/buildProfileFromAssessment.d.ts +5 -0
- package/dist/presentation/profile/buildProfileFromAssessment.d.ts.map +1 -0
- package/dist/presentation/profile/buildProfileFromAssessment.js +58 -0
- package/dist/presentation/projectAssessmentFields.d.ts +4 -0
- package/dist/presentation/projectAssessmentFields.d.ts.map +1 -0
- package/dist/presentation/projectAssessmentFields.js +13 -0
- package/dist/presentation/surfaceParity.test.d.ts +2 -0
- package/dist/presentation/surfaceParity.test.d.ts.map +1 -0
- package/dist/presentation/surfaceParity.test.js +74 -0
- package/dist/productMessaging.d.ts +4 -4
- package/dist/productMessaging.d.ts.map +1 -1
- package/dist/productMessaging.js +4 -4
- package/dist/productMessaging.test.js +2 -2
- package/dist/repoIntelligenceSchema.d.ts +2 -2
- package/dist/resolvePipelineStatus.d.ts +15 -0
- package/dist/resolvePipelineStatus.d.ts.map +1 -0
- package/dist/resolvePipelineStatus.js +37 -0
- package/dist/scanCardPresentationState.d.ts +4 -0
- package/dist/scanCardPresentationState.d.ts.map +1 -0
- package/dist/scanCardPresentationState.js +4 -0
- package/dist/{scanDetailViewModel.d.ts → scanDetailViewModelTypes.d.ts} +60 -32
- package/dist/scanDetailViewModelTypes.d.ts.map +1 -0
- package/dist/scanDetailViewModelTypes.js +4 -0
- package/dist/scanResultSchema.d.ts +75 -2
- package/dist/scanResultSchema.d.ts.map +1 -1
- package/dist/scanResultSchema.js +4 -2
- package/dist/scanResultSchema.test.js +16 -0
- package/dist/trustedScanGuards.test.js +7 -0
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/collectNarrativeWhyBullets.d.ts +0 -12
- package/dist/collectNarrativeWhyBullets.d.ts.map +0 -1
- package/dist/collectNarrativeWhyBullets.js +0 -104
- package/dist/deriveCardDisplaySummary.d.ts +0 -16
- package/dist/deriveCardDisplaySummary.d.ts.map +0 -1
- package/dist/deriveCardDisplaySummary.js +0 -56
- package/dist/deriveCardDisplaySummary.test.d.ts +0 -2
- package/dist/deriveCardDisplaySummary.test.d.ts.map +0 -1
- package/dist/deriveCardDisplaySummary.test.js +0 -89
- package/dist/deriveCardOperationalObservations.d.ts +0 -19
- package/dist/deriveCardOperationalObservations.d.ts.map +0 -1
- package/dist/deriveCardOperationalObservations.js +0 -180
- package/dist/deriveCardOperationalObservations.test.d.ts +0 -2
- package/dist/deriveCardOperationalObservations.test.d.ts.map +0 -1
- package/dist/deriveCardOperationalObservations.test.js +0 -268
- package/dist/deriveRiskScoreSummary.d.ts +0 -33
- package/dist/deriveRiskScoreSummary.d.ts.map +0 -1
- package/dist/deriveRiskScoreSummary.js +0 -90
- package/dist/deriveRiskScoreSummary.test.d.ts +0 -2
- package/dist/deriveRiskScoreSummary.test.d.ts.map +0 -1
- package/dist/deriveRiskScoreSummary.test.js +0 -47
- package/dist/deriveScanDetailRecommendations.d.ts +0 -63
- package/dist/deriveScanDetailRecommendations.d.ts.map +0 -1
- package/dist/deriveScanDetailRecommendations.js +0 -725
- package/dist/deriveScanDetailRecommendations.test.d.ts +0 -2
- package/dist/deriveScanDetailRecommendations.test.d.ts.map +0 -1
- package/dist/deriveScanDetailRecommendations.test.js +0 -181
- package/dist/deriveScanSummaryText.d.ts +0 -7
- package/dist/deriveScanSummaryText.d.ts.map +0 -1
- package/dist/deriveScanSummaryText.js +0 -24
- package/dist/deriveScanSummaryText.test.d.ts +0 -2
- package/dist/deriveScanSummaryText.test.d.ts.map +0 -1
- package/dist/deriveScanSummaryText.test.js +0 -77
- package/dist/formatCardEvidenceCounts.d.ts +0 -7
- package/dist/formatCardEvidenceCounts.d.ts.map +0 -1
- package/dist/formatCardEvidenceCounts.js +0 -19
- package/dist/prCheckRunPresentation.d.ts +0 -68
- package/dist/prCheckRunPresentation.d.ts.map +0 -1
- package/dist/prCheckRunPresentation.js +0 -319
- package/dist/prCheckRunPresentation.test.d.ts +0 -2
- package/dist/prCheckRunPresentation.test.d.ts.map +0 -1
- package/dist/prCheckRunPresentation.test.js +0 -278
- package/dist/presentation/dto/scanCardPresentation.d.ts +0 -27
- package/dist/presentation/dto/scanCardPresentation.d.ts.map +0 -1
- package/dist/presentation/intent/derivePresentationInterpretation.d.ts +0 -4
- package/dist/presentation/intent/derivePresentationInterpretation.d.ts.map +0 -1
- package/dist/presentation/intent/derivePresentationInterpretation.js +0 -202
- package/dist/presentation/intent/formatPresentationCopy.d.ts +0 -7
- package/dist/presentation/intent/formatPresentationCopy.d.ts.map +0 -1
- package/dist/presentation/intent/formatPresentationCopy.js +0 -153
- package/dist/presentation/intent/presentationIntent.test.d.ts +0 -2
- package/dist/presentation/intent/presentationIntent.test.d.ts.map +0 -1
- package/dist/presentation/intent/presentationIntent.test.js +0 -29
- package/dist/presentation/intent/verificationFocusLabels.d.ts +0 -2
- package/dist/presentation/intent/verificationFocusLabels.d.ts.map +0 -1
- package/dist/presentation/intent/verificationFocusLabels.js +0 -45
- package/dist/presentation/presenters/presentPipelineScanCard.d.ts +0 -3
- package/dist/presentation/presenters/presentPipelineScanCard.d.ts.map +0 -1
- package/dist/presentation/presenters/presentPipelineScanCard.js +0 -23
- package/dist/presentation/presenters/presentScanCard.d.ts +0 -7
- package/dist/presentation/presenters/presentScanCard.d.ts.map +0 -1
- package/dist/presentation/presenters/presentScanCard.js +0 -44
- package/dist/presentation/profile/derivePresentationProfile.d.ts +0 -12
- package/dist/presentation/profile/derivePresentationProfile.d.ts.map +0 -1
- package/dist/presentation/profile/derivePresentationProfile.js +0 -85
- package/dist/scanCardSummary.d.ts +0 -59
- package/dist/scanCardSummary.d.ts.map +0 -1
- package/dist/scanCardSummary.js +0 -146
- package/dist/scanCardSummary.test.d.ts +0 -2
- package/dist/scanCardSummary.test.d.ts.map +0 -1
- package/dist/scanCardSummary.test.js +0 -234
- package/dist/scanDetailViewModel.d.ts.map +0 -1
- package/dist/scanDetailViewModel.js +0 -636
- package/dist/scanDetailViewModel.test.d.ts +0 -2
- package/dist/scanDetailViewModel.test.d.ts.map +0 -1
- package/dist/scanDetailViewModel.test.js +0 -530
- /package/dist/presentation/dto/{scanCardPresentation.js → assessmentPresentationFields.js} +0 -0
package/dist/formatInsight.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MERGE_POSTURE_LABEL } from "./riskVocabulary.js";
|
|
1
2
|
const DECISION_TITLES = {
|
|
2
3
|
safe: "No significant dependency risks detected",
|
|
3
4
|
needs_review: "Elevated dependency merge risk",
|
|
@@ -41,4 +42,28 @@ function renderInsightAsMarkdown(f) {
|
|
|
41
42
|
f.action,
|
|
42
43
|
].join("\n");
|
|
43
44
|
}
|
|
44
|
-
|
|
45
|
+
function renderInsightBlock(f) {
|
|
46
|
+
return [
|
|
47
|
+
f.message,
|
|
48
|
+
"",
|
|
49
|
+
"**Where it shows up**",
|
|
50
|
+
"",
|
|
51
|
+
f.where,
|
|
52
|
+
"",
|
|
53
|
+
"**What to do**",
|
|
54
|
+
"",
|
|
55
|
+
f.action,
|
|
56
|
+
].join("\n");
|
|
57
|
+
}
|
|
58
|
+
/** Legacy markdown renderer for raw PR insights (format-only; no bundle inference). */
|
|
59
|
+
export function renderInsightsAsMarkdown(insights, decision) {
|
|
60
|
+
const title = MERGE_POSTURE_LABEL[decision.recommendation];
|
|
61
|
+
const lines = [`**${title}**`, "", "---", ""];
|
|
62
|
+
for (const insight of insights) {
|
|
63
|
+
lines.push(renderInsightBlock(formatInsight(insight)), "", "---", "");
|
|
64
|
+
}
|
|
65
|
+
for (const reason of decision.reasoning) {
|
|
66
|
+
lines.push(reason);
|
|
67
|
+
}
|
|
68
|
+
return lines.join("\n");
|
|
69
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
export * from "./types.js";
|
|
2
|
+
export * from "./assessmentSchema.js";
|
|
3
|
+
export * from "./assessmentLabels.js";
|
|
4
|
+
export * from "./assessmentProjection.js";
|
|
2
5
|
export * from "./formatInsight.js";
|
|
3
6
|
export * from "./riskVocabulary.js";
|
|
4
7
|
export * from "./selectTopAffectedAreas.js";
|
|
5
|
-
export * from "./deriveScanSummaryText.js";
|
|
6
8
|
export * from "./cardSummaryCopy.js";
|
|
7
9
|
export * from "./truncateCardSummary.js";
|
|
8
10
|
export * from "./formatCardAreaLabels.js";
|
|
9
|
-
export * from "./formatCardEvidenceCounts.js";
|
|
10
11
|
export * from "./formatCardExposureDisplay.js";
|
|
11
12
|
export * from "./cardObservationCatalog.js";
|
|
12
|
-
export * from "./deriveCardOperationalObservations.js";
|
|
13
|
-
export * from "./deriveCardDisplaySummary.js";
|
|
14
13
|
export * from "./scanNarrativeFacts.js";
|
|
15
14
|
export * from "./repoIntelligenceSchema.js";
|
|
16
15
|
export * from "./repoIntelligenceMappers.js";
|
|
@@ -20,17 +19,14 @@ export * from "./deriveScanNarrative.js";
|
|
|
20
19
|
export * from "./extractRepositoryContextFacts.js";
|
|
21
20
|
export * from "./narrativePresentation.js";
|
|
22
21
|
export * from "./normalizeGeneratedText.js";
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export * from "./
|
|
26
|
-
export * from "./deriveScanDetailRecommendations.js";
|
|
27
|
-
export * from "./deriveRiskScoreSummary.js";
|
|
28
|
-
export * from "./scanDetailViewModel.js";
|
|
22
|
+
export { presentGitHubPrCommentMarkdownFromResult } from "./presentGitHubPrComment.js";
|
|
23
|
+
export * from "./scanDetailViewModelTypes.js";
|
|
24
|
+
export * from "./scanCardPresentationState.js";
|
|
29
25
|
export * from "./scanResultSchema.js";
|
|
30
26
|
export * from "./scanSurfaceCopy.js";
|
|
27
|
+
export * from "./resolvePipelineStatus.js";
|
|
31
28
|
export * from "./trustedScanGuards.js";
|
|
32
29
|
export * from "./actionsStepSummary.js";
|
|
33
|
-
export * from "./prCheckRunPresentation.js";
|
|
34
30
|
export * from "./productMessaging.js";
|
|
35
31
|
export * from "./presentation/index.js";
|
|
36
32
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EAAE,wCAAwC,EAAE,MAAM,6BAA6B,CAAC;AACvF,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
export * from "./types.js";
|
|
2
|
+
export * from "./assessmentSchema.js";
|
|
3
|
+
export * from "./assessmentLabels.js";
|
|
4
|
+
export * from "./assessmentProjection.js";
|
|
2
5
|
export * from "./formatInsight.js";
|
|
3
6
|
export * from "./riskVocabulary.js";
|
|
4
7
|
export * from "./selectTopAffectedAreas.js";
|
|
5
|
-
export * from "./deriveScanSummaryText.js";
|
|
6
8
|
export * from "./cardSummaryCopy.js";
|
|
7
9
|
export * from "./truncateCardSummary.js";
|
|
8
10
|
export * from "./formatCardAreaLabels.js";
|
|
9
|
-
export * from "./formatCardEvidenceCounts.js";
|
|
10
11
|
export * from "./formatCardExposureDisplay.js";
|
|
11
12
|
export * from "./cardObservationCatalog.js";
|
|
12
|
-
export * from "./deriveCardOperationalObservations.js";
|
|
13
|
-
export * from "./deriveCardDisplaySummary.js";
|
|
14
13
|
export * from "./scanNarrativeFacts.js";
|
|
15
14
|
export * from "./repoIntelligenceSchema.js";
|
|
16
15
|
export * from "./repoIntelligenceMappers.js";
|
|
@@ -20,16 +19,13 @@ export * from "./deriveScanNarrative.js";
|
|
|
20
19
|
export * from "./extractRepositoryContextFacts.js";
|
|
21
20
|
export * from "./narrativePresentation.js";
|
|
22
21
|
export * from "./normalizeGeneratedText.js";
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export * from "./
|
|
26
|
-
export * from "./deriveScanDetailRecommendations.js";
|
|
27
|
-
export * from "./deriveRiskScoreSummary.js";
|
|
28
|
-
export * from "./scanDetailViewModel.js";
|
|
22
|
+
export { presentGitHubPrCommentMarkdownFromResult } from "./presentGitHubPrComment.js";
|
|
23
|
+
export * from "./scanDetailViewModelTypes.js";
|
|
24
|
+
export * from "./scanCardPresentationState.js";
|
|
29
25
|
export * from "./scanResultSchema.js";
|
|
30
26
|
export * from "./scanSurfaceCopy.js";
|
|
27
|
+
export * from "./resolvePipelineStatus.js";
|
|
31
28
|
export * from "./trustedScanGuards.js";
|
|
32
29
|
export * from "./actionsStepSummary.js";
|
|
33
|
-
export * from "./prCheckRunPresentation.js";
|
|
34
30
|
export * from "./productMessaging.js";
|
|
35
31
|
export * from "./presentation/index.js";
|
|
@@ -1,51 +1,20 @@
|
|
|
1
1
|
import { describe, expect, it } from "vitest";
|
|
2
2
|
import { buildScanPresentationBundle } from "./presentation/orchestration/buildScanPresentationBundle.js";
|
|
3
|
-
import {
|
|
3
|
+
import { presentDashboardCard } from "./presentation/presenters/presentDashboardCard.js";
|
|
4
4
|
import { presentScanDetails } from "./presentation/presenters/presentScanDetails.js";
|
|
5
5
|
import { presentGitHubPrComment } from "./presentation/presenters/presentGitHubPrComment.js";
|
|
6
6
|
import { renderGitHubCheckRunMarkdown } from "./presentation/render/renderGitHubCheckRunMarkdown.js";
|
|
7
7
|
import { presentGitHubCheckRun } from "./presentation/presenters/presentGitHubCheckRun.js";
|
|
8
|
-
import {
|
|
9
|
-
import { analysisPreparationWithValidRepoIntel } from "./fixtures/repoIntelligenceTestHelpers.js";
|
|
8
|
+
import { scanResultFastifyRuntime } from "./presentation/fixtures/scanResultFixtures.js";
|
|
10
9
|
const ORIGIN = "https://app.example.com";
|
|
11
10
|
const SCAN_ID = "22222222-2222-4222-8222-222222222222";
|
|
12
11
|
describe("narrative parity across consumers", () => {
|
|
13
12
|
it("card, detail, GitHub share primary package and reachability story", () => {
|
|
14
|
-
const result = {
|
|
15
|
-
totalScore: 55,
|
|
16
|
-
layerScores: {
|
|
17
|
-
security: 10,
|
|
18
|
-
maintainability: 20,
|
|
19
|
-
ecosystem: 30,
|
|
20
|
-
upgradeImpact: 15,
|
|
21
|
-
},
|
|
22
|
-
findings: [],
|
|
23
|
-
generatedAt: "2026-01-01T00:00:00.000Z",
|
|
24
|
-
changedPackages: ["fastify"],
|
|
25
|
-
analysisPreparation: analysisPreparationWithValidRepoIntel(),
|
|
26
|
-
repoIntelligence: fixtureRepoIntelligenceFastify,
|
|
27
|
-
decision: {
|
|
28
|
-
recommendation: "needs_review",
|
|
29
|
-
confidence: "medium",
|
|
30
|
-
reasoning: [],
|
|
31
|
-
},
|
|
32
|
-
insights: [
|
|
33
|
-
{
|
|
34
|
-
type: "usage_risk",
|
|
35
|
-
priority: "high",
|
|
36
|
-
confidence: "confirmed",
|
|
37
|
-
scope: "changed",
|
|
38
|
-
message: "Review fastify middleware ordering",
|
|
39
|
-
context: "apps/api/src/middleware/auth.ts",
|
|
40
|
-
remediation: "Run auth smoke tests",
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
};
|
|
44
13
|
const bundle = buildScanPresentationBundle({
|
|
45
|
-
result,
|
|
14
|
+
result: scanResultFastifyRuntime,
|
|
46
15
|
pipelineStatus: "done",
|
|
47
16
|
});
|
|
48
|
-
const card =
|
|
17
|
+
const card = presentDashboardCard(bundle);
|
|
49
18
|
const detail = presentScanDetails(bundle, {
|
|
50
19
|
scanId: SCAN_ID,
|
|
51
20
|
});
|
|
@@ -55,9 +24,9 @@ describe("narrative parity across consumers", () => {
|
|
|
55
24
|
baseline: false,
|
|
56
25
|
}));
|
|
57
26
|
const prComment = presentGitHubPrComment(bundle);
|
|
58
|
-
expect(card.primaryPackage).toBe("fastify");
|
|
59
27
|
expect(detail.narrative.primaryPackage).toBe("fastify");
|
|
60
|
-
expect(card.
|
|
28
|
+
expect(card.reachVisibility).toBe("prominent");
|
|
29
|
+
expect(card.verdict?.scopeLabel).toBeTruthy();
|
|
61
30
|
const asciiOnly = /^[\x00-\x7F]*$/;
|
|
62
31
|
expect(asciiOnly.test(checkRun)).toBe(true);
|
|
63
32
|
expect(checkRun.toLowerCase()).toContain("fastify");
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ScanResult } from "./types.js";
|
|
2
2
|
/**
|
|
3
3
|
* PR comment markdown from a completed scan (via presentation bundle).
|
|
4
4
|
*/
|
|
5
5
|
export declare function presentGitHubPrCommentMarkdownFromResult(result: ScanResult): string;
|
|
6
|
-
/** Backward-compatible entry: derives bundle then renders markdown. */
|
|
7
|
-
export declare function renderInsightsAsMarkdown(insights: PRInsight[], decision: PRDecision): string;
|
|
8
6
|
//# sourceMappingURL=presentGitHubPrComment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentGitHubPrComment.d.ts","sourceRoot":"","sources":["../src/presentGitHubPrComment.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"presentGitHubPrComment.d.ts","sourceRoot":"","sources":["../src/presentGitHubPrComment.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C;;GAEG;AACH,wBAAgB,wCAAwC,CACtD,MAAM,EAAE,UAAU,GACjB,MAAM,CAWR"}
|
|
@@ -15,20 +15,3 @@ export function presentGitHubPrCommentMarkdownFromResult(result) {
|
|
|
15
15
|
return "";
|
|
16
16
|
return renderGitHubPrCommentMarkdown(presentGitHubPrCommentFromBundle(bundle));
|
|
17
17
|
}
|
|
18
|
-
/** Backward-compatible entry: derives bundle then renders markdown. */
|
|
19
|
-
export function renderInsightsAsMarkdown(insights, decision) {
|
|
20
|
-
const result = {
|
|
21
|
-
totalScore: 0,
|
|
22
|
-
layerScores: {
|
|
23
|
-
security: 0,
|
|
24
|
-
maintainability: 0,
|
|
25
|
-
ecosystem: 0,
|
|
26
|
-
upgradeImpact: 0,
|
|
27
|
-
},
|
|
28
|
-
findings: [],
|
|
29
|
-
generatedAt: new Date().toISOString(),
|
|
30
|
-
insights,
|
|
31
|
-
decision,
|
|
32
|
-
};
|
|
33
|
-
return presentGitHubPrCommentMarkdownFromResult(result);
|
|
34
|
-
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { PresentationEvidenceRow } from "../dto/types.js";
|
|
2
|
+
import type { ScanPresentationBundle } from "../orchestration/scanPresentationBundle.js";
|
|
3
|
+
type NarrativeChannels = {
|
|
4
|
+
headline: string;
|
|
5
|
+
limitedContextMessage?: string;
|
|
6
|
+
reachLabel?: string;
|
|
7
|
+
insights: string[];
|
|
8
|
+
scopeAreas: string[];
|
|
9
|
+
evidence: PresentationEvidenceRow[];
|
|
10
|
+
verification: string[];
|
|
11
|
+
};
|
|
12
|
+
/** Canonical non-redundant narrative channels — single dedupe point for all surfaces. */
|
|
13
|
+
export declare function buildNarrativeChannels(bundle: ScanPresentationBundle): NarrativeChannels;
|
|
14
|
+
/** Merge distinct channels into one bullet list for single-column surfaces (GitHub check, CLI). */
|
|
15
|
+
export declare function projectCompactKeyPoints(channels: NarrativeChannels, max: number): string[];
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=narrativeChannels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"narrativeChannels.d.ts","sourceRoot":"","sources":["../../../src/presentation/compose/narrativeChannels.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAGzF,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,QAAQ,EAAE,uBAAuB,EAAE,CAAC;IACpC,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAqBF,yFAAyF;AACzF,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,sBAAsB,GAC7B,iBAAiB,CAmBnB;AAED,mGAAmG;AACnG,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,iBAAiB,EAC3B,GAAG,EAAE,MAAM,GACV,MAAM,EAAE,CAyBV"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { scanSurfaceCopy } from "../../scanSurfaceCopy.js";
|
|
2
|
+
import { applicationAreaLabels, formatAssessmentHeadline, projectInsightLines, projectVerificationActions, reachVisibilityLabel, } from "../../assessmentProjection.js";
|
|
3
|
+
import { safeParseRepoIntelligence } from "../../repoIntelligenceSchema.js";
|
|
4
|
+
import { labelBlastRadiusLevel } from "../../narrativePresentation.js";
|
|
5
|
+
function composeScopeAreaLabels(bundle, max) {
|
|
6
|
+
const parsed = safeParseRepoIntelligence(bundle.result.repoIntelligence);
|
|
7
|
+
const labels = parsed.ok ? applicationAreaLabels(parsed.value) : [];
|
|
8
|
+
return labels.slice(0, max);
|
|
9
|
+
}
|
|
10
|
+
function composeChannelEvidence(bundle, max) {
|
|
11
|
+
const blast = labelBlastRadiusLevel(bundle.facts);
|
|
12
|
+
const rows = [];
|
|
13
|
+
if (blast)
|
|
14
|
+
rows.push({ label: "Blast radius", value: blast });
|
|
15
|
+
return rows.slice(0, max);
|
|
16
|
+
}
|
|
17
|
+
/** Canonical non-redundant narrative channels — single dedupe point for all surfaces. */
|
|
18
|
+
export function buildNarrativeChannels(bundle) {
|
|
19
|
+
const { assessment, presentation, profile, result } = bundle;
|
|
20
|
+
const reachLabel = reachVisibilityLabel(presentation.reachVisibility);
|
|
21
|
+
return {
|
|
22
|
+
headline: formatAssessmentHeadline(assessment, result, profile.status),
|
|
23
|
+
limitedContextMessage: profile.degradedMessage ?? undefined,
|
|
24
|
+
reachLabel,
|
|
25
|
+
insights: projectInsightLines(assessment, result),
|
|
26
|
+
scopeAreas: composeScopeAreaLabels(bundle, 4),
|
|
27
|
+
evidence: composeChannelEvidence(bundle, 4),
|
|
28
|
+
verification: projectVerificationActions(assessment, presentation, result, 6),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
/** Merge distinct channels into one bullet list for single-column surfaces (GitHub check, CLI). */
|
|
32
|
+
export function projectCompactKeyPoints(channels, max) {
|
|
33
|
+
const bullets = [...channels.insights];
|
|
34
|
+
if (channels.scopeAreas.length > 0) {
|
|
35
|
+
bullets.push(scanSurfaceCopy.presentation.affectedAreasKeyPoint.replace("{areas}", channels.scopeAreas.slice(0, 2).join(", ")));
|
|
36
|
+
}
|
|
37
|
+
const blastRow = channels.evidence.find((r) => r.label === "Blast radius");
|
|
38
|
+
if (blastRow?.value === "Wide") {
|
|
39
|
+
bullets.push(scanSurfaceCopy.presentation.blastRadiusWideKeyPoint);
|
|
40
|
+
}
|
|
41
|
+
else if (blastRow?.value === "Moderate") {
|
|
42
|
+
bullets.push(scanSurfaceCopy.presentation.blastRadiusLevelKeyPoint.replace("{level}", "Moderate"));
|
|
43
|
+
}
|
|
44
|
+
return bullets.slice(0, max);
|
|
45
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"narrativeChannels.test.d.ts","sourceRoot":"","sources":["../../../src/presentation/compose/narrativeChannels.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
import { buildScanPresentationBundle } from "../orchestration/buildScanPresentationBundle.js";
|
|
3
|
+
import { scanResultFastifyRuntime } from "../fixtures/scanResultFixtures.js";
|
|
4
|
+
import { buildNarrativeChannels, projectCompactKeyPoints, } from "./narrativeChannels.js";
|
|
5
|
+
import { presentDashboardCard } from "../presenters/presentDashboardCard.js";
|
|
6
|
+
describe("buildNarrativeChannels", () => {
|
|
7
|
+
it("fastify: areas in scopeAreas only, blast in evidence only, not in insights", () => {
|
|
8
|
+
const bundle = buildScanPresentationBundle({
|
|
9
|
+
result: scanResultFastifyRuntime,
|
|
10
|
+
pipelineStatus: "done",
|
|
11
|
+
});
|
|
12
|
+
const channels = buildNarrativeChannels(bundle);
|
|
13
|
+
const insightText = channels.insights.join(" ");
|
|
14
|
+
expect(insightText).not.toMatch(/Affected areas:/i);
|
|
15
|
+
expect(insightText).not.toMatch(/Blast radius is/i);
|
|
16
|
+
expect(channels.scopeAreas.length).toBeGreaterThan(0);
|
|
17
|
+
expect(channels.evidence.some((r) => r.label === "Blast radius")).toBe(true);
|
|
18
|
+
expect(channels.evidence.some((r) => r.label === "Runtime")).toBe(false);
|
|
19
|
+
});
|
|
20
|
+
it("projectCompactKeyPoints merges channels for single-column surfaces", () => {
|
|
21
|
+
const bundle = buildScanPresentationBundle({
|
|
22
|
+
result: scanResultFastifyRuntime,
|
|
23
|
+
pipelineStatus: "done",
|
|
24
|
+
});
|
|
25
|
+
const channels = buildNarrativeChannels(bundle);
|
|
26
|
+
const compact = projectCompactKeyPoints(channels, 5);
|
|
27
|
+
expect(compact.some((p) => /Affected areas:/i.test(p))).toBe(true);
|
|
28
|
+
expect(compact.some((p) => /Blast radius is/i.test(p))).toBe(true);
|
|
29
|
+
});
|
|
30
|
+
it("presentDashboardCard does not duplicate areas across insights and scopeAreas", () => {
|
|
31
|
+
const bundle = buildScanPresentationBundle({
|
|
32
|
+
result: scanResultFastifyRuntime,
|
|
33
|
+
pipelineStatus: "done",
|
|
34
|
+
});
|
|
35
|
+
const card = presentDashboardCard(bundle);
|
|
36
|
+
const insightText = card.insights.join(" ");
|
|
37
|
+
expect(insightText).not.toMatch(/Affected areas:/i);
|
|
38
|
+
expect(card.scopeAreas?.length).toBeGreaterThan(0);
|
|
39
|
+
expect(card.verdict?.scopeLabel).toBeTruthy();
|
|
40
|
+
expect(card.verification.every((v) => v.startsWith("Verify"))).toBe(true);
|
|
41
|
+
});
|
|
42
|
+
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ScanPresentationBundle } from "../orchestration/scanPresentationBundle.js";
|
|
2
|
+
export { buildNarrativeChannels, projectCompactKeyPoints, } from "./narrativeChannels.js";
|
|
2
3
|
export declare function composeHeadline(bundle: ScanPresentationBundle): string;
|
|
3
4
|
export declare function composeSubheadline(bundle: ScanPresentationBundle): string | undefined;
|
|
4
5
|
export declare function composeKeyPoints(bundle: ScanPresentationBundle, max: number): string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"narrativeCompose.d.ts","sourceRoot":"","sources":["../../../src/presentation/compose/narrativeCompose.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"narrativeCompose.d.ts","sourceRoot":"","sources":["../../../src/presentation/compose/narrativeCompose.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAMzF,OAAO,EACL,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAShC,wBAAgB,eAAe,CAAC,MAAM,EAAE,sBAAsB,GAAG,MAAM,CAEtE;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,sBAAsB,GAC7B,MAAM,GAAG,SAAS,CAIpB;AAED,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,sBAAsB,EAC9B,GAAG,EAAE,MAAM,GACV,MAAM,EAAE,CAEV;AAED,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,sBAAsB,EAC9B,GAAG,EAAE,MAAM,GACV,MAAM,EAAE,CAEV;AAED,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,sBAAsB,EAC9B,GAAG,EAAE,MAAM,GACV,MAAM,EAAE,CAQV;AAED,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,sBAAsB,EAC9B,GAAG,EAAE,MAAM,GACV,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAmBzC;AAED,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,sBAAsB,GAC7B,MAAM,EAAE,GAAG,SAAS,CAwBtB;AAED,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,sBAAsB,GAAG;IAC1E,QAAQ,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACxC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAKA"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { formatCardAreaLabels } from "../../formatCardAreaLabels.js";
|
|
2
2
|
import { formatChangedPackagesShort, labelBlastRadiusLevel, labelReachabilityKind, labelRuntimeSurface, } from "../../narrativePresentation.js";
|
|
3
3
|
import { scanSurfaceCopy } from "../../scanSurfaceCopy.js";
|
|
4
|
-
import {
|
|
4
|
+
import { buildNarrativeChannels, projectCompactKeyPoints, } from "./narrativeChannels.js";
|
|
5
|
+
export { buildNarrativeChannels, projectCompactKeyPoints, } from "./narrativeChannels.js";
|
|
5
6
|
function topAreaLabel(bundle) {
|
|
6
7
|
const area = bundle.facts.affectedAreas[0];
|
|
7
8
|
if (!area)
|
|
@@ -10,8 +11,7 @@ function topAreaLabel(bundle) {
|
|
|
10
11
|
return formatted[0] ?? area.label;
|
|
11
12
|
}
|
|
12
13
|
export function composeHeadline(bundle) {
|
|
13
|
-
|
|
14
|
-
return formatPresentationHeadline(profile.interpretation, facts, profile.status);
|
|
14
|
+
return buildNarrativeChannels(bundle).headline;
|
|
15
15
|
}
|
|
16
16
|
export function composeSubheadline(bundle) {
|
|
17
17
|
const { profile } = bundle;
|
|
@@ -20,12 +20,10 @@ export function composeSubheadline(bundle) {
|
|
|
20
20
|
return undefined;
|
|
21
21
|
}
|
|
22
22
|
export function composeKeyPoints(bundle, max) {
|
|
23
|
-
|
|
24
|
-
return formatPresentationKeyPoints(profile.interpretation, facts, profile.status, max);
|
|
23
|
+
return projectCompactKeyPoints(buildNarrativeChannels(bundle), max);
|
|
25
24
|
}
|
|
26
25
|
export function composeVerificationActions(bundle, max) {
|
|
27
|
-
|
|
28
|
-
return formatPresentationVerification(profile.interpretation, profile.status, max);
|
|
26
|
+
return buildNarrativeChannels(bundle).verification.slice(0, max);
|
|
29
27
|
}
|
|
30
28
|
export function composeAffectedAreaLabels(bundle, max) {
|
|
31
29
|
const labels = [];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { MergeConcernKind } from "../../assessmentSchema.js";
|
|
2
|
+
import type { NarrativeIntensity, ReachVisibility } from "../../assessmentSchema.js";
|
|
3
|
+
/** Assessment-aligned fields projected identically across surfaces. */
|
|
4
|
+
export type AssessmentPresentationFields = {
|
|
5
|
+
posture: "safe" | "needs_review" | "risky";
|
|
6
|
+
primaryConcern: MergeConcernKind | null;
|
|
7
|
+
factors: string[];
|
|
8
|
+
reasoning: string[];
|
|
9
|
+
verificationFocus: string[];
|
|
10
|
+
reachVisibility: ReachVisibility;
|
|
11
|
+
narrativeIntensity: NarrativeIntensity;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=assessmentPresentationFields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assessmentPresentationFields.d.ts","sourceRoot":"","sources":["../../../src/presentation/dto/assessmentPresentationFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EACV,kBAAkB,EAClB,eAAe,EAEhB,MAAM,2BAA2B,CAAC;AAEnC,uEAAuE;AACvE,MAAM,MAAM,4BAA4B,GAAG;IACzC,OAAO,EAAE,MAAM,GAAG,cAAc,GAAG,OAAO,CAAC;IAC3C,cAAc,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACxC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,eAAe,EAAE,eAAe,CAAC;IACjC,kBAAkB,EAAE,kBAAkB,CAAC;CACxC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { AssessmentPresentationFields } from "./assessmentPresentationFields.js";
|
|
2
|
+
import type { PresentationEvidenceRow, PresentationStatus } from "./types.js";
|
|
3
|
+
export type DashboardCardLayout = "quiet" | "standard" | "expanded";
|
|
4
|
+
export type DashboardCardPresentation = Partial<AssessmentPresentationFields> & {
|
|
5
|
+
verdict?: {
|
|
6
|
+
posture: PresentationStatus;
|
|
7
|
+
postureLabel: string;
|
|
8
|
+
scopeLabel?: string;
|
|
9
|
+
};
|
|
10
|
+
headline: string;
|
|
11
|
+
pipeline?: {
|
|
12
|
+
status: "queued" | "running" | "failed";
|
|
13
|
+
headline: string;
|
|
14
|
+
subheadline?: string;
|
|
15
|
+
};
|
|
16
|
+
limitedContext?: {
|
|
17
|
+
message: string;
|
|
18
|
+
};
|
|
19
|
+
insights: string[];
|
|
20
|
+
scopeAreas?: string[];
|
|
21
|
+
verification: string[];
|
|
22
|
+
evidenceChips?: PresentationEvidenceRow[];
|
|
23
|
+
layout: DashboardCardLayout;
|
|
24
|
+
detailActionLabel: string;
|
|
25
|
+
sortKey: {
|
|
26
|
+
postureRank: number;
|
|
27
|
+
riskIndex: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=dashboardCardPresentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboardCardPresentation.d.ts","sourceRoot":"","sources":["../../../src/presentation/dto/dashboardCardPresentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,KAAK,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAE9E,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,CAAC;AAEpE,MAAM,MAAM,yBAAyB,GACnC,OAAO,CAAC,4BAA4B,CAAC,GAAG;IACtC,OAAO,CAAC,EAAE;QACR,OAAO,EAAE,kBAAkB,CAAC;QAC5B,YAAY,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IAEF,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,CAAC,EAAE;QACT,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;QACxC,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IAEF,cAAc,CAAC,EAAE;QACf,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IAEF,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,aAAa,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAE1C,MAAM,EAAE,mBAAmB,CAAC;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAE1B,OAAO,EAAE;QACP,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { AssessmentPresentationFields } from "./assessmentPresentationFields.js";
|
|
1
2
|
import type { PresentationConfidence, PresentationDensity, PresentationEvidenceContext, PresentationStatus } from "./types.js";
|
|
2
|
-
export type GitHubCheckRunPresentation = {
|
|
3
|
+
export type GitHubCheckRunPresentation = AssessmentPresentationFields & {
|
|
3
4
|
status: PresentationStatus;
|
|
4
5
|
density: PresentationDensity;
|
|
5
6
|
confidence: PresentationConfidence;
|
|
@@ -15,7 +16,7 @@ export type GitHubCheckRunPresentation = {
|
|
|
15
16
|
}>;
|
|
16
17
|
detailsUrl: string;
|
|
17
18
|
};
|
|
18
|
-
export type GitHubPrCommentPresentation = {
|
|
19
|
+
export type GitHubPrCommentPresentation = AssessmentPresentationFields & {
|
|
19
20
|
status: PresentationStatus;
|
|
20
21
|
density: PresentationDensity;
|
|
21
22
|
confidence: PresentationConfidence;
|
|
@@ -28,7 +29,7 @@ export type GitHubPrCommentPresentation = {
|
|
|
28
29
|
action?: string;
|
|
29
30
|
}>;
|
|
30
31
|
};
|
|
31
|
-
export type CliScanPresentation = {
|
|
32
|
+
export type CliScanPresentation = AssessmentPresentationFields & {
|
|
32
33
|
header: {
|
|
33
34
|
repoLabel: string;
|
|
34
35
|
methodology?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"githubAndCliPresentation.d.ts","sourceRoot":"","sources":["../../../src/presentation/dto/githubAndCliPresentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,mBAAmB,EACnB,2BAA2B,EAC3B,kBAAkB,EACnB,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,0BAA0B,GAAG;
|
|
1
|
+
{"version":3,"file":"githubAndCliPresentation.d.ts","sourceRoot":"","sources":["../../../src/presentation/dto/githubAndCliPresentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,KAAK,EACV,sBAAsB,EACtB,mBAAmB,EACnB,2BAA2B,EAC3B,kBAAkB,EACnB,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,0BAA0B,GAAG,4BAA4B,GAAG;IACtE,MAAM,EAAE,kBAAkB,CAAC;IAC3B,OAAO,EAAE,mBAAmB,CAAC;IAC7B,UAAU,EAAE,sBAAsB,CAAC;IACnC,eAAe,EAAE,2BAA2B,CAAC;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IAC9C,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC;QACd,EAAE,EAAE,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,aAAa,GAAG,QAAQ,GAAG,QAAQ,CAAC;QACtE,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB,CAAC,CAAC;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,4BAA4B,GAAG;IACvE,MAAM,EAAE,kBAAkB,CAAC;IAC3B,OAAO,EAAE,mBAAmB,CAAC;IAC7B,UAAU,EAAE,sBAAsB,CAAC;IACnC,eAAe,EAAE,2BAA2B,CAAC;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,cAAc,EAAE,KAAK,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;CACJ,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,4BAA4B,GAAG;IAC/D,MAAM,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACzE,MAAM,EAAE,kBAAkB,CAAC;IAC3B,OAAO,EAAE,mBAAmB,CAAC;IAC7B,UAAU,EAAE,sBAAsB,CAAC;IACnC,eAAe,EAAE,2BAA2B,CAAC;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,OAAO,CAAC,EAAE;QACR,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,YAAY,EAAE,MAAM,CAAC;QACrB,mBAAmB,EAAE,MAAM,CAAC;KAC7B,CAAC;IACF,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { AssessmentPresentationFields } from "./assessmentPresentationFields.js";
|
|
1
2
|
import type { PresentationConfidence, PresentationDensity, PresentationEvidenceContext, PresentationStatus } from "./types.js";
|
|
2
3
|
import type { PresentationIntent } from "../intent/presentationIntent.js";
|
|
3
4
|
import type { FindingSeverity, ScoreLayer } from "../../types.js";
|
|
4
|
-
export type ScanDetailsPresentation = {
|
|
5
|
+
export type ScanDetailsPresentation = AssessmentPresentationFields & {
|
|
5
6
|
evidenceContext: PresentationEvidenceContext;
|
|
6
7
|
status: PresentationStatus;
|
|
7
8
|
density: PresentationDensity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scanDetailsPresentation.d.ts","sourceRoot":"","sources":["../../../src/presentation/dto/scanDetailsPresentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,mBAAmB,EACnB,2BAA2B,EAC3B,kBAAkB,EACnB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,uBAAuB,GAAG;
|
|
1
|
+
{"version":3,"file":"scanDetailsPresentation.d.ts","sourceRoot":"","sources":["../../../src/presentation/dto/scanDetailsPresentation.ts"],"names":[],"mappings":"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"}
|
|
@@ -12,13 +12,4 @@ export type PresentationEvidenceContext = {
|
|
|
12
12
|
priority: PresentationPriority;
|
|
13
13
|
degradedMessage?: string;
|
|
14
14
|
};
|
|
15
|
-
export type FindingCountSummary = {
|
|
16
|
-
critical: number;
|
|
17
|
-
high: number;
|
|
18
|
-
medium: number;
|
|
19
|
-
low: number;
|
|
20
|
-
};
|
|
21
|
-
export declare function aggregateFindingCounts(findings: Array<{
|
|
22
|
-
severity: string;
|
|
23
|
-
}> | null | undefined): FindingCountSummary;
|
|
24
15
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/presentation/dto/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEtE,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,cAAc,GAAG,OAAO,CAAC;AAEnE,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;AAElE,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE/D,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,GAAG,SAAS,CAAC;AAEjE,MAAM,MAAM,uBAAuB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvE,8DAA8D;AAC9D,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/presentation/dto/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEtE,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,cAAc,GAAG,OAAO,CAAC;AAEnE,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;AAElE,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE/D,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,GAAG,SAAS,CAAC;AAEjE,MAAM,MAAM,uBAAuB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvE,8DAA8D;AAC9D,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC"}
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
const counts = {
|
|
3
|
-
critical: 0,
|
|
4
|
-
high: 0,
|
|
5
|
-
medium: 0,
|
|
6
|
-
low: 0,
|
|
7
|
-
};
|
|
8
|
-
if (!Array.isArray(findings))
|
|
9
|
-
return counts;
|
|
10
|
-
for (const f of findings) {
|
|
11
|
-
const s = f.severity;
|
|
12
|
-
if (s === "critical")
|
|
13
|
-
counts.critical += 1;
|
|
14
|
-
else if (s === "high")
|
|
15
|
-
counts.high += 1;
|
|
16
|
-
else if (s === "medium")
|
|
17
|
-
counts.medium += 1;
|
|
18
|
-
else if (s === "low")
|
|
19
|
-
counts.low += 1;
|
|
20
|
-
}
|
|
21
|
-
return counts;
|
|
22
|
-
}
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboardCardGolden.test.d.ts","sourceRoot":"","sources":["../../../src/presentation/fixtures/dashboardCardGolden.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
2
|
+
import { dirname, join } from "node:path";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
import { describe, expect, it } from "vitest";
|
|
5
|
+
import { buildScanCardPresentation } from "../orchestration/buildScanCardPresentation.js";
|
|
6
|
+
import { scanResultBullmq, scanResultEslint, scanResultFastifyRuntime, scanResultLimitedContext, scanResultMixedTypescriptFastify, scanResultNextAuth, scanResultPrettier, scanResultTypescriptPatch, scanResultUnknownSafe, scanResultVitest, } from "./presentationPersonaFixtures.js";
|
|
7
|
+
const goldenPath = join(dirname(fileURLToPath(import.meta.url)), "dashboardCardGolden.json");
|
|
8
|
+
const golden = JSON.parse(readFileSync(goldenPath, "utf8"));
|
|
9
|
+
const personaCases = [
|
|
10
|
+
{ key: "typescriptPatch", result: scanResultTypescriptPatch },
|
|
11
|
+
{ key: "eslint", result: scanResultEslint },
|
|
12
|
+
{ key: "prettier", result: scanResultPrettier },
|
|
13
|
+
{ key: "vitest", result: scanResultVitest },
|
|
14
|
+
{ key: "fastifyRuntime", result: scanResultFastifyRuntime },
|
|
15
|
+
{ key: "nextAuth", result: scanResultNextAuth },
|
|
16
|
+
{ key: "bullmq", result: scanResultBullmq },
|
|
17
|
+
{ key: "limitedContext", result: scanResultLimitedContext },
|
|
18
|
+
{ key: "unknownSafe", result: scanResultUnknownSafe },
|
|
19
|
+
{ key: "mixedTypescriptFastify", result: scanResultMixedTypescriptFastify },
|
|
20
|
+
];
|
|
21
|
+
describe("dashboardCardGolden fixtures", () => {
|
|
22
|
+
for (const { key, result } of personaCases) {
|
|
23
|
+
it(`matches live ${key} card`, () => {
|
|
24
|
+
const live = buildScanCardPresentation({
|
|
25
|
+
result,
|
|
26
|
+
pipelineStatus: "done",
|
|
27
|
+
});
|
|
28
|
+
expect(live).toEqual(golden[key]);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
it("fastify golden has deduplicated channels", () => {
|
|
32
|
+
const card = golden.fastifyRuntime;
|
|
33
|
+
const insightText = card.insights.join(" ");
|
|
34
|
+
expect(insightText).not.toMatch(/Affected areas:/i);
|
|
35
|
+
expect(card.scopeAreas?.length).toBeGreaterThan(0);
|
|
36
|
+
expect(card.evidenceChips?.some((e) => e.label === "Blast radius")).toBe(true);
|
|
37
|
+
});
|
|
38
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentationPersonaFixtures.d.ts","sourceRoot":"","sources":["../../../src/presentation/fixtures/presentationPersonaFixtures.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"presentationPersonaFixtures.d.ts","sourceRoot":"","sources":["../../../src/presentation/fixtures/presentationPersonaFixtures.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAkBjD,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,yBAAyB,CAAC;AA+KjC,eAAO,MAAM,gBAAgB,EAAE,UAG7B,CAAC;AAEH,eAAO,MAAM,kBAAkB,EAAE,UAG/B,CAAC;AAEH,eAAO,MAAM,gBAAgB,EAAE,UAG7B,CAAC;AAEH,eAAO,MAAM,kBAAkB,EAAE,UAI/B,CAAC;AAEH,eAAO,MAAM,gBAAgB,EAAE,UAa7B,CAAC;AAEH,eAAO,MAAM,qBAAqB,EAAE,UAMnC,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,UAO9C,CAAC;AAEF,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,GAC1B,CAAC"}
|