@mergesignal/shared 0.4.3 → 0.6.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 +22 -2
- 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 +4 -34
- package/dist/presentGitHubPrComment.d.ts +1 -3
- package/dist/presentGitHubPrComment.d.ts.map +1 -1
- package/dist/presentGitHubPrComment.js +0 -17
- package/dist/presentation/buildGitHubCheckRunOutput.d.ts +20 -0
- package/dist/presentation/buildGitHubCheckRunOutput.d.ts.map +1 -0
- package/dist/presentation/buildGitHubCheckRunOutput.js +42 -0
- package/dist/presentation/buildGitHubCheckRunOutput.test.d.ts +2 -0
- package/dist/presentation/buildGitHubCheckRunOutput.test.d.ts.map +1 -0
- package/dist/presentation/buildGitHubCheckRunOutput.test.js +188 -0
- package/dist/presentation/compose/narrativeChannels.d.ts.map +1 -1
- package/dist/presentation/compose/narrativeChannels.js +13 -43
- package/dist/presentation/compose/narrativeCompose.d.ts.map +1 -1
- package/dist/presentation/compose/narrativeCompose.js +2 -5
- package/dist/presentation/dto/assessmentPresentationFields.d.ts +13 -0
- package/dist/presentation/dto/assessmentPresentationFields.d.ts.map +1 -0
- package/dist/presentation/dto/assessmentPresentationFields.js +1 -0
- package/dist/presentation/dto/dashboardCardPresentation.d.ts +2 -1
- package/dist/presentation/dto/dashboardCardPresentation.d.ts.map +1 -1
- 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/fixtures/dashboardCardGolden.test.js +21 -14
- 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 +2 -2
- package/dist/presentation/index.d.ts.map +1 -1
- package/dist/presentation/index.js +2 -2
- package/dist/presentation/orchestration/buildScanCardPresentation.d.ts.map +1 -1
- package/dist/presentation/orchestration/buildScanCardPresentation.js +8 -3
- 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/presentationPersonas.test.js +6 -6
- package/dist/presentation/presenters/presentCliScanSummary.d.ts.map +1 -1
- package/dist/presentation/presenters/presentCliScanSummary.js +2 -0
- package/dist/presentation/presenters/presentDashboardCard.d.ts +1 -0
- package/dist/presentation/presenters/presentDashboardCard.d.ts.map +1 -1
- package/dist/presentation/presenters/presentDashboardCard.js +18 -0
- package/dist/presentation/presenters/presentGitHubCheckRun.d.ts.map +1 -1
- package/dist/presentation/presenters/presentGitHubCheckRun.js +2 -0
- 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 +52 -129
- 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 +10 -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/scanSurfaceCopy.d.ts +2 -0
- package/dist/scanSurfaceCopy.d.ts.map +1 -1
- package/dist/scanSurfaceCopy.js +2 -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/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 -8
- package/dist/presentation/intent/formatPresentationCopy.d.ts.map +0 -1
- package/dist/presentation/intent/formatPresentationCopy.js +0 -140
- 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/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 -58
- 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
|
@@ -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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"}
|
|
@@ -3,24 +3,31 @@ import { dirname, join } from "node:path";
|
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
import { describe, expect, it } from "vitest";
|
|
5
5
|
import { buildScanCardPresentation } from "../orchestration/buildScanCardPresentation.js";
|
|
6
|
-
import { scanResultFastifyRuntime, scanResultTypescriptPatch, } from "./presentationPersonaFixtures.js";
|
|
6
|
+
import { scanResultBullmq, scanResultEslint, scanResultFastifyRuntime, scanResultLimitedContext, scanResultMixedTypescriptFastify, scanResultNextAuth, scanResultPrettier, scanResultTypescriptPatch, scanResultUnknownSafe, scanResultVitest, } from "./presentationPersonaFixtures.js";
|
|
7
7
|
const goldenPath = join(dirname(fileURLToPath(import.meta.url)), "dashboardCardGolden.json");
|
|
8
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
|
+
];
|
|
9
21
|
describe("dashboardCardGolden fixtures", () => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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]);
|
|
14
29
|
});
|
|
15
|
-
|
|
16
|
-
});
|
|
17
|
-
it("matches live fastify runtime card", () => {
|
|
18
|
-
const live = buildScanCardPresentation({
|
|
19
|
-
result: scanResultFastifyRuntime,
|
|
20
|
-
pipelineStatus: "done",
|
|
21
|
-
});
|
|
22
|
-
expect(live).toEqual(golden.fastifyRuntime);
|
|
23
|
-
});
|
|
30
|
+
}
|
|
24
31
|
it("fastify golden has deduplicated channels", () => {
|
|
25
32
|
const card = golden.fastifyRuntime;
|
|
26
33
|
const insightText = card.insights.join(" ");
|
|
@@ -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"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { assessmentBullmq, assessmentEslint, assessmentMixedTypescriptFastify, assessmentNextAuth, assessmentPrettier, assessmentUnknownSafe, assessmentVitest, } from "../../fixtures/assessmentFixtures.js";
|
|
1
2
|
import { fixtureRepoIntelligenceFastify, fixtureRepoIntelligenceTypescript, } from "../../fixtures/repoIntelligenceFixtures.js";
|
|
2
3
|
import { analysisPreparationWithValidRepoIntel } from "../../fixtures/repoIntelligenceTestHelpers.js";
|
|
3
4
|
import { scanResultFastifyRuntime, scanResultLimitedContext, scanResultTypescriptPatch, } from "./scanResultFixtures.js";
|
|
@@ -128,7 +129,22 @@ const fixtureRepoIntelligenceMixedToolingRuntime = {
|
|
|
128
129
|
blastRadius: fixtureRepoIntelligenceFastify.blastRadius,
|
|
129
130
|
applicationAreas: fixtureRepoIntelligenceFastify.applicationAreas,
|
|
130
131
|
};
|
|
131
|
-
function
|
|
132
|
+
function decisionForAssessment(assessment) {
|
|
133
|
+
return {
|
|
134
|
+
recommendation: assessment.posture,
|
|
135
|
+
confidence: assessment.confidence,
|
|
136
|
+
reasoning: assessment.posture === "safe"
|
|
137
|
+
? [
|
|
138
|
+
"No dedicated dependency review required beyond normal engineering process.",
|
|
139
|
+
]
|
|
140
|
+
: assessment.primaryConcern === "confirmed_runtime_usage"
|
|
141
|
+
? [
|
|
142
|
+
"Changed package has confirmed usage on runtime application paths in this repository.",
|
|
143
|
+
]
|
|
144
|
+
: ["Explicit human review warranted before merge."],
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
function scanBase(assessment, over = {}) {
|
|
132
148
|
return {
|
|
133
149
|
totalScore: 18,
|
|
134
150
|
layerScores: {
|
|
@@ -139,59 +155,50 @@ function scanBase(over = {}) {
|
|
|
139
155
|
},
|
|
140
156
|
findings: [],
|
|
141
157
|
generatedAt: "2026-01-01T00:00:00.000Z",
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
confidence: "high",
|
|
145
|
-
reasoning: [],
|
|
146
|
-
},
|
|
158
|
+
assessment,
|
|
159
|
+
decision: decisionForAssessment(assessment),
|
|
147
160
|
analysisPreparation: basePrep,
|
|
148
161
|
...over,
|
|
149
162
|
};
|
|
150
163
|
}
|
|
151
|
-
export const scanResultEslint = scanBase({
|
|
164
|
+
export const scanResultEslint = scanBase(assessmentEslint, {
|
|
152
165
|
changedPackages: ["eslint"],
|
|
153
166
|
repoIntelligence: fixtureRepoIntelligenceEslint,
|
|
154
167
|
});
|
|
155
|
-
export const scanResultPrettier = scanBase({
|
|
168
|
+
export const scanResultPrettier = scanBase(assessmentPrettier, {
|
|
156
169
|
changedPackages: ["prettier"],
|
|
157
170
|
repoIntelligence: fixtureRepoIntelligencePrettier,
|
|
158
171
|
});
|
|
159
|
-
export const scanResultVitest = scanBase({
|
|
172
|
+
export const scanResultVitest = scanBase(assessmentVitest, {
|
|
160
173
|
changedPackages: ["vitest"],
|
|
161
174
|
repoIntelligence: fixtureRepoIntelligenceVitest,
|
|
162
175
|
});
|
|
163
|
-
export const scanResultNextAuth = scanBase({
|
|
176
|
+
export const scanResultNextAuth = scanBase(assessmentNextAuth, {
|
|
164
177
|
totalScore: 52,
|
|
165
178
|
changedPackages: ["next-auth"],
|
|
166
179
|
repoIntelligence: fixtureRepoIntelligenceNextAuth,
|
|
167
|
-
decision: {
|
|
168
|
-
recommendation: "needs_review",
|
|
169
|
-
confidence: "medium",
|
|
170
|
-
reasoning: [],
|
|
171
|
-
},
|
|
172
180
|
});
|
|
173
|
-
export const scanResultBullmq = scanBase({
|
|
181
|
+
export const scanResultBullmq = scanBase(assessmentBullmq, {
|
|
174
182
|
totalScore: 48,
|
|
175
183
|
changedPackages: ["bullmq"],
|
|
176
184
|
repoIntelligence: fixtureRepoIntelligenceBullmq,
|
|
177
185
|
decision: {
|
|
178
186
|
recommendation: "needs_review",
|
|
179
187
|
confidence: "medium",
|
|
180
|
-
reasoning: [
|
|
188
|
+
reasoning: [
|
|
189
|
+
"Changed package has confirmed usage on runtime application paths in this repository.",
|
|
190
|
+
"Queue infrastructure",
|
|
191
|
+
"Verification focus required",
|
|
192
|
+
],
|
|
181
193
|
},
|
|
182
194
|
});
|
|
183
|
-
export const scanResultUnknownSafe = scanBase({
|
|
195
|
+
export const scanResultUnknownSafe = scanBase(assessmentUnknownSafe, {
|
|
184
196
|
changedPackages: ["opaque-pkg"],
|
|
185
197
|
repoIntelligence: fixtureRepoIntelligenceUnknown,
|
|
186
198
|
});
|
|
187
|
-
export const scanResultMixedTypescriptFastify = scanBase({
|
|
199
|
+
export const scanResultMixedTypescriptFastify = scanBase(assessmentMixedTypescriptFastify, {
|
|
188
200
|
totalScore: 55,
|
|
189
201
|
changedPackages: ["typescript", "fastify"],
|
|
190
202
|
repoIntelligence: fixtureRepoIntelligenceMixedToolingRuntime,
|
|
191
|
-
decision: {
|
|
192
|
-
recommendation: "needs_review",
|
|
193
|
-
confidence: "medium",
|
|
194
|
-
reasoning: [],
|
|
195
|
-
},
|
|
196
203
|
});
|
|
197
204
|
export { scanResultFastifyRuntime, scanResultLimitedContext, scanResultTypescriptPatch, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scanResultFixtures.d.ts","sourceRoot":"","sources":["../../../src/presentation/fixtures/scanResultFixtures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"scanResultFixtures.d.ts","sourceRoot":"","sources":["../../../src/presentation/fixtures/scanResultFixtures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAYjD,eAAO,MAAM,wBAAwB,EAAE,UAiCtC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,UA2BvC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,UA4BtC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { assessmentFastifyRuntime, assessmentLimitedContext, assessmentTypescriptPatch, } from "../../fixtures/assessmentFixtures.js";
|
|
1
2
|
import { fixtureRepoIntelligenceFastify, fixtureRepoIntelligenceTypescript, } from "../../fixtures/repoIntelligenceFixtures.js";
|
|
2
3
|
import { analysisPreparationWithValidRepoIntel } from "../../fixtures/repoIntelligenceTestHelpers.js";
|
|
3
4
|
export const scanResultFastifyRuntime = {
|
|
@@ -13,10 +14,14 @@ export const scanResultFastifyRuntime = {
|
|
|
13
14
|
changedPackages: ["fastify"],
|
|
14
15
|
analysisPreparation: analysisPreparationWithValidRepoIntel(),
|
|
15
16
|
repoIntelligence: fixtureRepoIntelligenceFastify,
|
|
17
|
+
assessment: assessmentFastifyRuntime,
|
|
16
18
|
decision: {
|
|
17
19
|
recommendation: "needs_review",
|
|
18
20
|
confidence: "medium",
|
|
19
|
-
reasoning: [
|
|
21
|
+
reasoning: [
|
|
22
|
+
"Changed package has confirmed usage on runtime application paths in this repository.",
|
|
23
|
+
"HTTP framework infrastructure",
|
|
24
|
+
],
|
|
20
25
|
},
|
|
21
26
|
insights: [
|
|
22
27
|
{
|
|
@@ -43,10 +48,13 @@ export const scanResultTypescriptPatch = {
|
|
|
43
48
|
changedPackages: ["typescript"],
|
|
44
49
|
analysisPreparation: analysisPreparationWithValidRepoIntel(),
|
|
45
50
|
repoIntelligence: fixtureRepoIntelligenceTypescript,
|
|
51
|
+
assessment: assessmentTypescriptPatch,
|
|
46
52
|
decision: {
|
|
47
53
|
recommendation: "safe",
|
|
48
54
|
confidence: "high",
|
|
49
|
-
reasoning: [
|
|
55
|
+
reasoning: [
|
|
56
|
+
"No dedicated dependency review required beyond normal engineering process.",
|
|
57
|
+
],
|
|
50
58
|
},
|
|
51
59
|
graphInsights: {
|
|
52
60
|
maxDepth: 4,
|
|
@@ -67,6 +75,7 @@ export const scanResultLimitedContext = {
|
|
|
67
75
|
generatedAt: "2026-01-01T00:00:00.000Z",
|
|
68
76
|
changedPackages: ["lodash"],
|
|
69
77
|
repoIntelligence: { invalid: true },
|
|
78
|
+
assessment: assessmentLimitedContext,
|
|
70
79
|
graphInsights: {
|
|
71
80
|
maxDepth: 5,
|
|
72
81
|
nodes: 200,
|
|
@@ -78,6 +87,8 @@ export const scanResultLimitedContext = {
|
|
|
78
87
|
decision: {
|
|
79
88
|
recommendation: "needs_review",
|
|
80
89
|
confidence: "low",
|
|
81
|
-
reasoning: [
|
|
90
|
+
reasoning: [
|
|
91
|
+
"Collection evidence is partial; confidence is reduced but review posture is preserved when runtime signals exist.",
|
|
92
|
+
],
|
|
82
93
|
},
|
|
83
94
|
};
|
|
@@ -7,7 +7,6 @@ export { buildScanDetailsPresentation } from "./orchestration/buildScanDetailsPr
|
|
|
7
7
|
export type { BuildScanDetailsPresentationInput } from "./orchestration/buildScanDetailsPresentation.js";
|
|
8
8
|
export type { PresentationProfile } from "./profile/presentationProfile.js";
|
|
9
9
|
export type { PresentationIntent, PresentationInterpretation, } from "./intent/presentationIntent.js";
|
|
10
|
-
export { derivePresentationInterpretation } from "./intent/derivePresentationInterpretation.js";
|
|
11
10
|
export type { PipelineStatus, PresentationStatus, PresentationDensity, PresentationConfidence, PresentationPriority, PresentationEvidenceContext, PresentationEvidenceRow, } from "./dto/types.js";
|
|
12
11
|
export type { DashboardCardPresentation } from "./dto/dashboardCardPresentation.js";
|
|
13
12
|
export type { DashboardCardLayout } from "./dto/dashboardCardPresentation.js";
|
|
@@ -15,13 +14,14 @@ export type { DashboardCardLayout } from "./dto/dashboardCardPresentation.js";
|
|
|
15
14
|
export type { DashboardCardPresentation as ScanCardPresentation } from "./dto/dashboardCardPresentation.js";
|
|
16
15
|
export type { ScanDetailsPresentation } from "./dto/scanDetailsPresentation.js";
|
|
17
16
|
export type { GitHubCheckRunPresentation, GitHubPrCommentPresentation, CliScanPresentation, } from "./dto/githubAndCliPresentation.js";
|
|
18
|
-
export { presentDashboardCard, presentPipelineDashboardCard, } from "./presenters/presentDashboardCard.js";
|
|
17
|
+
export { presentDashboardCard, presentPipelineDashboardCard, presentSurfacesIncompleteDashboardCard, } from "./presenters/presentDashboardCard.js";
|
|
19
18
|
export { presentScanDetails } from "./presenters/presentScanDetails.js";
|
|
20
19
|
export type { PresentScanDetailsContext } from "./presenters/presentScanDetails.js";
|
|
21
20
|
export { presentGitHubCheckRun } from "./presenters/presentGitHubCheckRun.js";
|
|
22
21
|
export { presentGitHubPrComment } from "./presenters/presentGitHubPrComment.js";
|
|
23
22
|
export { presentCliScanSummary } from "./presenters/presentCliScanSummary.js";
|
|
24
23
|
export { renderGitHubCheckRunMarkdown } from "./render/renderGitHubCheckRunMarkdown.js";
|
|
24
|
+
export { buildGitHubCheckRunOutput, resolveWebAppOrigin, type GitHubCheckRunConclusion, type GitHubCheckRunOutput, type BuildGitHubCheckRunOutputOptions, } from "./buildGitHubCheckRunOutput.js";
|
|
25
25
|
export { renderGitHubPrCommentMarkdown } from "./render/renderGitHubPrCommentMarkdown.js";
|
|
26
26
|
export { renderCliScanSummaryText } from "./render/renderCliScanSummaryText.js";
|
|
27
27
|
export { buildNarrativeChannels, projectCompactKeyPoints, composeHeadline, composeSubheadline, composeKeyPoints, composeVerificationActions, composeAffectedAreaLabels, composeEvidenceRows, composeSupportingContext, evidenceContextFromProfile, } from "./compose/narrativeCompose.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/presentation/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACxF,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,YAAY,EAAE,gCAAgC,EAAE,MAAM,gDAAgD,CAAC;AACvG,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AACzF,YAAY,EAAE,8BAA8B,EAAE,MAAM,8CAA8C,CAAC;AACnG,OAAO,EAAE,4BAA4B,EAAE,MAAM,iDAAiD,CAAC;AAC/F,YAAY,EAAE,iCAAiC,EAAE,MAAM,iDAAiD,CAAC;AAEzG,YAAY,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,YAAY,EACV,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,gCAAgC,CAAC;AACxC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/presentation/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACxF,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,YAAY,EAAE,gCAAgC,EAAE,MAAM,gDAAgD,CAAC;AACvG,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AACzF,YAAY,EAAE,8BAA8B,EAAE,MAAM,8CAA8C,CAAC;AACnG,OAAO,EAAE,4BAA4B,EAAE,MAAM,iDAAiD,CAAC;AAC/F,YAAY,EAAE,iCAAiC,EAAE,MAAM,iDAAiD,CAAC;AAEzG,YAAY,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,YAAY,EACV,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,gCAAgC,CAAC;AACxC,YAAY,EACV,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,2BAA2B,EAC3B,uBAAuB,GACxB,MAAM,gBAAgB,CAAC;AAExB,YAAY,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AACpF,YAAY,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,gDAAgD;AAChD,YAAY,EAAE,yBAAyB,IAAI,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC5G,YAAY,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAChF,YAAY,EACV,0BAA0B,EAC1B,2BAA2B,EAC3B,mBAAmB,GACpB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EACL,oBAAoB,EACpB,4BAA4B,EAC5B,sCAAsC,GACvC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,YAAY,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EACL,yBAAyB,EACzB,mBAAmB,EACnB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,GACtC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAEhF,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,0BAA0B,EAC1B,yBAAyB,EACzB,mBAAmB,EACnB,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,+BAA+B,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export { buildScanPresentationBundle } from "./orchestration/buildScanPresentationBundle.js";
|
|
2
2
|
export { buildScanCardPresentation } from "./orchestration/buildScanCardPresentation.js";
|
|
3
3
|
export { buildScanDetailsPresentation } from "./orchestration/buildScanDetailsPresentation.js";
|
|
4
|
-
export {
|
|
5
|
-
export { presentDashboardCard, presentPipelineDashboardCard, } from "./presenters/presentDashboardCard.js";
|
|
4
|
+
export { presentDashboardCard, presentPipelineDashboardCard, presentSurfacesIncompleteDashboardCard, } from "./presenters/presentDashboardCard.js";
|
|
6
5
|
export { presentScanDetails } from "./presenters/presentScanDetails.js";
|
|
7
6
|
export { presentGitHubCheckRun } from "./presenters/presentGitHubCheckRun.js";
|
|
8
7
|
export { presentGitHubPrComment } from "./presenters/presentGitHubPrComment.js";
|
|
9
8
|
export { presentCliScanSummary } from "./presenters/presentCliScanSummary.js";
|
|
10
9
|
export { renderGitHubCheckRunMarkdown } from "./render/renderGitHubCheckRunMarkdown.js";
|
|
10
|
+
export { buildGitHubCheckRunOutput, resolveWebAppOrigin, } from "./buildGitHubCheckRunOutput.js";
|
|
11
11
|
export { renderGitHubPrCommentMarkdown } from "./render/renderGitHubPrCommentMarkdown.js";
|
|
12
12
|
export { renderCliScanSummaryText } from "./render/renderCliScanSummaryText.js";
|
|
13
13
|
export { buildNarrativeChannels, projectCompactKeyPoints, composeHeadline, composeSubheadline, composeKeyPoints, composeVerificationActions, composeAffectedAreaLabels, composeEvidenceRows, composeSupportingContext, evidenceContextFromProfile, } from "./compose/narrativeCompose.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildScanCardPresentation.d.ts","sourceRoot":"","sources":["../../../src/presentation/orchestration/buildScanCardPresentation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"buildScanCardPresentation.d.ts","sourceRoot":"","sources":["../../../src/presentation/orchestration/buildScanCardPresentation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAUjD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAErF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,cAAc,EAAE,cAAc,CAAC;IAC/B,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B,CAAC;AA+BF,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,8BAA8B,GACpC,yBAAyB,CA2B3B"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { assessmentLimitedContext } from "../../fixtures/assessmentFixtures.js";
|
|
2
|
+
import { mergePostureFromDecision, } from "../../riskVocabulary.js";
|
|
2
3
|
import { buildScanPresentationBundle } from "./buildScanPresentationBundle.js";
|
|
3
4
|
import { presentDashboardCard, presentPipelineDashboardCard, } from "../presenters/presentDashboardCard.js";
|
|
4
5
|
function minimalResultFromDenormalized(decision, totalScore) {
|
|
@@ -6,6 +7,7 @@ function minimalResultFromDenormalized(decision, totalScore) {
|
|
|
6
7
|
if (!posture && (totalScore == null || !Number.isFinite(totalScore))) {
|
|
7
8
|
return null;
|
|
8
9
|
}
|
|
10
|
+
const resolvedPosture = posture;
|
|
9
11
|
return {
|
|
10
12
|
totalScore: totalScore ?? 0,
|
|
11
13
|
layerScores: {
|
|
@@ -16,8 +18,11 @@ function minimalResultFromDenormalized(decision, totalScore) {
|
|
|
16
18
|
},
|
|
17
19
|
findings: [],
|
|
18
20
|
generatedAt: new Date().toISOString(),
|
|
19
|
-
decision:
|
|
20
|
-
? { recommendation:
|
|
21
|
+
decision: resolvedPosture
|
|
22
|
+
? { recommendation: resolvedPosture, confidence: "medium", reasoning: [] }
|
|
23
|
+
: undefined,
|
|
24
|
+
assessment: resolvedPosture
|
|
25
|
+
? { ...assessmentLimitedContext, posture: resolvedPosture }
|
|
21
26
|
: undefined,
|
|
22
27
|
};
|
|
23
28
|
}
|
|
@@ -9,7 +9,7 @@ export type BuildScanPresentationBundleInput = {
|
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Mandatory orchestration entrypoint for completed-scan presentation.
|
|
12
|
-
*
|
|
12
|
+
* Assessment is the sole authority; profile is a thin projection.
|
|
13
13
|
*/
|
|
14
14
|
export declare function buildScanPresentationBundle(input: BuildScanPresentationBundleInput): ScanPresentationBundle | null;
|
|
15
15
|
//# sourceMappingURL=buildScanPresentationBundle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildScanPresentationBundle.d.ts","sourceRoot":"","sources":["../../../src/presentation/orchestration/buildScanPresentationBundle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"buildScanPresentationBundle.d.ts","sourceRoot":"","sources":["../../../src/presentation/orchestration/buildScanPresentationBundle.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAE1E,MAAM,MAAM,gCAAgC,GAAG;IAC7C,MAAM,EAAE,UAAU,CAAC;IACnB,cAAc,EAAE,cAAc,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,gCAAgC,GACtC,sBAAsB,GAAG,IAAI,CAsB/B"}
|
|
@@ -1,23 +1,25 @@
|
|
|
1
|
+
import { parseAssessmentOrThrow, toPublicPresentation, } from "../../assessmentSchema.js";
|
|
1
2
|
import { deriveScanNarrative } from "../../deriveScanNarrative.js";
|
|
2
|
-
import {
|
|
3
|
+
import { buildProfileFromAssessment } from "../profile/buildProfileFromAssessment.js";
|
|
3
4
|
/**
|
|
4
5
|
* Mandatory orchestration entrypoint for completed-scan presentation.
|
|
5
|
-
*
|
|
6
|
+
* Assessment is the sole authority; profile is a thin projection.
|
|
6
7
|
*/
|
|
7
8
|
export function buildScanPresentationBundle(input) {
|
|
8
9
|
if (input.pipelineStatus !== "done" || !input.result)
|
|
9
10
|
return null;
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
pipelineStatus: input.pipelineStatus,
|
|
13
|
-
decision: input.decision,
|
|
14
|
-
totalScore: input.totalScore ?? input.result.totalScore,
|
|
15
|
-
});
|
|
16
|
-
if (!profile)
|
|
11
|
+
const assessment = input.result.assessment;
|
|
12
|
+
if (!assessment)
|
|
17
13
|
return null;
|
|
14
|
+
parseAssessmentOrThrow(assessment);
|
|
15
|
+
const presentation = toPublicPresentation(assessment.presentation);
|
|
16
|
+
const profile = buildProfileFromAssessment(assessment, presentation, input.result);
|
|
17
|
+
const facts = deriveScanNarrative(input.result);
|
|
18
18
|
return {
|
|
19
|
-
|
|
19
|
+
assessment,
|
|
20
|
+
presentation,
|
|
20
21
|
profile,
|
|
22
|
+
facts,
|
|
21
23
|
result: input.result,
|
|
22
24
|
};
|
|
23
25
|
}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
+
import type { Assessment, AssessmentPresentationPublic } from "../../assessmentSchema.js";
|
|
1
2
|
import type { ScanNarrativeFacts } from "../../scanNarrativeFacts.js";
|
|
2
3
|
import type { ScanResult } from "../../types.js";
|
|
3
4
|
import type { PresentationProfile } from "../profile/presentationProfile.js";
|
|
4
5
|
export type ScanPresentationBundle = {
|
|
5
|
-
|
|
6
|
+
assessment: Assessment;
|
|
7
|
+
presentation: AssessmentPresentationPublic;
|
|
6
8
|
profile: PresentationProfile;
|
|
9
|
+
/**
|
|
10
|
+
* Evidence layout only — not an authority for posture, concern, or intensity.
|
|
11
|
+
* @deprecated Prefer assessment + repoIntelligence on result for new code.
|
|
12
|
+
*/
|
|
13
|
+
facts: ScanNarrativeFacts;
|
|
7
14
|
/**
|
|
8
15
|
* Projection-only reference to the raw scan payload.
|
|
9
16
|
* Presenters may read fields for formatting but must NOT re-derive interpretation.
|
|
10
17
|
*/
|
|
11
18
|
result: ScanResult;
|
|
12
|
-
/** Extension point for future shared derived artifacts */
|
|
13
|
-
shared?: Record<string, unknown>;
|
|
14
19
|
};
|
|
15
20
|
//# sourceMappingURL=scanPresentationBundle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scanPresentationBundle.d.ts","sourceRoot":"","sources":["../../../src/presentation/orchestration/scanPresentationBundle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,MAAM,MAAM,sBAAsB,GAAG;IACnC,
|
|
1
|
+
{"version":3,"file":"scanPresentationBundle.d.ts","sourceRoot":"","sources":["../../../src/presentation/orchestration/scanPresentationBundle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,4BAA4B,EAC7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,MAAM,MAAM,sBAAsB,GAAG;IACnC,UAAU,EAAE,UAAU,CAAC;IACvB,YAAY,EAAE,4BAA4B,CAAC;IAC3C,OAAO,EAAE,mBAAmB,CAAC;IAC7B;;;OAGG;IACH,KAAK,EAAE,kBAAkB,CAAC;IAC1B;;;OAGG;IACH,MAAM,EAAE,UAAU,CAAC;CACpB,CAAC"}
|
|
@@ -25,9 +25,9 @@ const personas = [
|
|
|
25
25
|
intent: "tooling_upgrade",
|
|
26
26
|
status: "safe",
|
|
27
27
|
density: "minimal",
|
|
28
|
-
headlineMatch: /
|
|
28
|
+
headlineMatch: /patch upgrade/i,
|
|
29
29
|
headlineMustNot: /needs review/i,
|
|
30
|
-
verificationIncludes: ["
|
|
30
|
+
verificationIncludes: ["ci", "lint"],
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
name: "prettier",
|
|
@@ -35,7 +35,7 @@ const personas = [
|
|
|
35
35
|
intent: "tooling_upgrade",
|
|
36
36
|
status: "safe",
|
|
37
37
|
density: "minimal",
|
|
38
|
-
headlineMatch: /
|
|
38
|
+
headlineMatch: /patch upgrade/i,
|
|
39
39
|
headlineMustNot: /needs review/i,
|
|
40
40
|
verificationIncludes: ["format"],
|
|
41
41
|
},
|
|
@@ -45,9 +45,9 @@ const personas = [
|
|
|
45
45
|
intent: "tooling_upgrade",
|
|
46
46
|
status: "safe",
|
|
47
47
|
density: "minimal",
|
|
48
|
-
headlineMatch: /
|
|
48
|
+
headlineMatch: /patch upgrade|dependency upgrade/i,
|
|
49
49
|
headlineMustNot: /needs review/i,
|
|
50
|
-
verificationIncludes: ["test
|
|
50
|
+
verificationIncludes: ["test"],
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
name: "fastify runtime",
|
|
@@ -65,7 +65,7 @@ const personas = [
|
|
|
65
65
|
status: "needs_review",
|
|
66
66
|
density: "rich",
|
|
67
67
|
headlineMatch: /runtime upgrade affects/i,
|
|
68
|
-
verificationIncludes: ["
|
|
68
|
+
verificationIncludes: ["auth_flow"],
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
name: "bullmq runtime",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentCliScanSummary.d.ts","sourceRoot":"","sources":["../../../src/presentation/presenters/presentCliScanSummary.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"presentCliScanSummary.d.ts","sourceRoot":"","sources":["../../../src/presentation/presenters/presentCliScanSummary.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAGzF,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,sBAAsB,EAC9B,GAAG,GAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,GAC/B,mBAAmB,CA8BrB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { buildNarrativeChannels, composeHeadline, composeSubheadline, composeSupportingContext, composeVerificationActions, evidenceContextFromProfile, projectCompactKeyPoints, } from "../compose/narrativeCompose.js";
|
|
2
|
+
import { projectAssessmentFields } from "../projectAssessmentFields.js";
|
|
2
3
|
export function presentCliScanSummary(bundle, ctx = {}) {
|
|
3
4
|
const { facts, profile, result } = bundle;
|
|
4
5
|
const layers = result.layerScores;
|
|
@@ -6,6 +7,7 @@ export function presentCliScanSummary(bundle, ctx = {}) {
|
|
|
6
7
|
? `security=${layers.security} maintainability=${layers.maintainability} ecosystem=${layers.ecosystem} upgradeImpact=${layers.upgradeImpact}`
|
|
7
8
|
: "";
|
|
8
9
|
return {
|
|
10
|
+
...projectAssessmentFields(bundle),
|
|
9
11
|
header: {
|
|
10
12
|
repoLabel: ctx.repoLabel ?? "scan",
|
|
11
13
|
methodology: result.methodologyVersion ?? undefined,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DashboardCardPresentation } from "../dto/dashboardCardPresentation.js";
|
|
2
2
|
import type { ScanPresentationBundle } from "../orchestration/scanPresentationBundle.js";
|
|
3
3
|
export declare function presentDashboardCard(bundle: ScanPresentationBundle): DashboardCardPresentation;
|
|
4
|
+
export declare function presentSurfacesIncompleteDashboardCard(): DashboardCardPresentation;
|
|
4
5
|
export declare function presentPipelineDashboardCard(pipelineStatus: "queued" | "running" | "failed"): DashboardCardPresentation;
|
|
5
6
|
//# sourceMappingURL=presentDashboardCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentDashboardCard.d.ts","sourceRoot":"","sources":["../../../src/presentation/presenters/presentDashboardCard.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAErF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"presentDashboardCard.d.ts","sourceRoot":"","sources":["../../../src/presentation/presenters/presentDashboardCard.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAErF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAoEzF,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,sBAAsB,GAC7B,yBAAyB,CA8C3B;AAED,wBAAgB,sCAAsC,IAAI,yBAAyB,CAelF;AAED,wBAAgB,4BAA4B,CAC1C,cAAc,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAC9C,yBAAyB,CAqB3B"}
|
|
@@ -2,6 +2,7 @@ import { MERGE_POSTURE_LABEL, MERGE_POSTURE_SORT_ORDER, } from "../../riskVocabu
|
|
|
2
2
|
import { normalizeGeneratedText, normalizeGeneratedTextNullable, } from "../../normalizeGeneratedText.js";
|
|
3
3
|
import { scanSurfaceCopy } from "../../scanSurfaceCopy.js";
|
|
4
4
|
import { buildNarrativeChannels } from "../compose/narrativeChannels.js";
|
|
5
|
+
import { projectAssessmentFields } from "../projectAssessmentFields.js";
|
|
5
6
|
const INSIGHTS_CAP = 3;
|
|
6
7
|
const SCOPE_AREAS_CAP = 2;
|
|
7
8
|
const EVIDENCE_CAP = 2;
|
|
@@ -72,6 +73,7 @@ export function presentDashboardCard(bundle) {
|
|
|
72
73
|
.slice(0, VERIFICATION_CAP)
|
|
73
74
|
.map(formatVerificationLine);
|
|
74
75
|
const card = {
|
|
76
|
+
...projectAssessmentFields(bundle),
|
|
75
77
|
verdict: {
|
|
76
78
|
posture,
|
|
77
79
|
postureLabel: MERGE_POSTURE_LABEL[posture],
|
|
@@ -94,6 +96,22 @@ export function presentDashboardCard(bundle) {
|
|
|
94
96
|
};
|
|
95
97
|
return normalizeDashboardCard(card);
|
|
96
98
|
}
|
|
99
|
+
export function presentSurfacesIncompleteDashboardCard() {
|
|
100
|
+
const headline = scanSurfaceCopy.pipeline.surfacesNotSynchronized;
|
|
101
|
+
return normalizeDashboardCard({
|
|
102
|
+
pipeline: {
|
|
103
|
+
status: "failed",
|
|
104
|
+
headline,
|
|
105
|
+
subheadline: scanSurfaceCopy.pipeline.surfacesNotSynchronizedDetail,
|
|
106
|
+
},
|
|
107
|
+
headline,
|
|
108
|
+
insights: [],
|
|
109
|
+
verification: [],
|
|
110
|
+
layout: "standard",
|
|
111
|
+
detailActionLabel: scanSurfaceCopy.presentation.actionLabelReview,
|
|
112
|
+
sortKey: { postureRank: -1, riskIndex: -1 },
|
|
113
|
+
});
|
|
114
|
+
}
|
|
97
115
|
export function presentPipelineDashboardCard(pipelineStatus) {
|
|
98
116
|
const isRunning = pipelineStatus === "queued" || pipelineStatus === "running";
|
|
99
117
|
const headline = isRunning
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentGitHubCheckRun.d.ts","sourceRoot":"","sources":["../../../src/presentation/presenters/presentGitHubCheckRun.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AACrF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"presentGitHubCheckRun.d.ts","sourceRoot":"","sources":["../../../src/presentation/presenters/presentGitHubCheckRun.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AACrF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAGzF,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,sBAAsB,EAC9B,GAAG,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,GAChE,0BAA0B,CAmC5B"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { buildNarrativeChannels, composeHeadline, composeSubheadline, composeVerificationActions, evidenceContextFromProfile, projectCompactKeyPoints, } from "../compose/narrativeCompose.js";
|
|
2
|
+
import { projectAssessmentFields } from "../projectAssessmentFields.js";
|
|
2
3
|
export function presentGitHubCheckRun(bundle, ctx) {
|
|
3
4
|
const { profile } = bundle;
|
|
4
5
|
const headline = composeHeadline(bundle);
|
|
@@ -19,6 +20,7 @@ export function presentGitHubCheckRun(bundle, ctx) {
|
|
|
19
20
|
}
|
|
20
21
|
sections.push({ id: "footer", bullets: [`Full scan: ${detailsUrl}`] });
|
|
21
22
|
return {
|
|
23
|
+
...projectAssessmentFields(bundle),
|
|
22
24
|
status: profile.status,
|
|
23
25
|
density: profile.density,
|
|
24
26
|
confidence: profile.confidence,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentGitHubPrComment.d.ts","sourceRoot":"","sources":["../../../src/presentation/presenters/presentGitHubPrComment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"presentGitHubPrComment.d.ts","sourceRoot":"","sources":["../../../src/presentation/presenters/presentGitHubPrComment.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAGzF,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,sBAAsB,GAC7B,2BAA2B,CA8B7B"}
|