@mergesignal/shared 0.2.7 → 0.2.8
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.map +1 -1
- package/dist/actionsStepSummary.js +2 -29
- package/dist/collectNarrativeWhyBullets.d.ts +12 -0
- package/dist/collectNarrativeWhyBullets.d.ts.map +1 -0
- package/dist/collectNarrativeWhyBullets.js +104 -0
- package/dist/deriveScanNarrative.d.ts.map +1 -1
- package/dist/deriveScanNarrative.js +157 -54
- package/dist/deriveScanNarrative.test.js +56 -1
- package/dist/fixtures/repoIntelligenceFixtures.d.ts +2 -0
- package/dist/fixtures/repoIntelligenceFixtures.d.ts.map +1 -1
- package/dist/fixtures/repoIntelligenceFixtures.js +46 -0
- package/dist/formatInsight.d.ts +2 -2
- package/dist/formatInsight.d.ts.map +1 -1
- package/dist/formatInsight.js +2 -7
- package/dist/formatInsight.test.js +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/narrativeParity.test.d.ts +2 -0
- package/dist/narrativeParity.test.d.ts.map +1 -0
- package/dist/narrativeParity.test.js +64 -0
- package/dist/narrativePresentation.d.ts +50 -0
- package/dist/narrativePresentation.d.ts.map +1 -0
- package/dist/narrativePresentation.js +180 -0
- package/dist/narrativePresentation.test.d.ts +2 -0
- package/dist/narrativePresentation.test.d.ts.map +1 -0
- package/dist/narrativePresentation.test.js +53 -0
- package/dist/normalizeGeneratedText.d.ts +8 -0
- package/dist/normalizeGeneratedText.d.ts.map +1 -0
- package/dist/normalizeGeneratedText.js +31 -0
- package/dist/normalizeGeneratedText.test.d.ts +2 -0
- package/dist/normalizeGeneratedText.test.d.ts.map +1 -0
- package/dist/normalizeGeneratedText.test.js +18 -0
- package/dist/prCheckRunPresentation.d.ts +4 -3
- package/dist/prCheckRunPresentation.d.ts.map +1 -1
- package/dist/prCheckRunPresentation.js +56 -51
- package/dist/prCheckRunPresentation.test.js +2 -2
- package/dist/presentGitHubPrComment.d.ts +9 -0
- package/dist/presentGitHubPrComment.d.ts.map +1 -0
- package/dist/presentGitHubPrComment.js +80 -0
- package/dist/presentScanCardSummary.d.ts.map +1 -1
- package/dist/presentScanCardSummary.js +69 -64
- package/dist/riskVocabulary.js +1 -1
- package/dist/scanCardSummary.d.ts +9 -1
- package/dist/scanCardSummary.d.ts.map +1 -1
- package/dist/scanCardSummary.js +1 -1
- package/dist/scanCardSummary.test.js +12 -8
- package/dist/scanDetailViewModel.d.ts +9 -1
- package/dist/scanDetailViewModel.d.ts.map +1 -1
- package/dist/scanDetailViewModel.js +164 -37
- package/dist/scanDetailViewModel.test.js +27 -1
- package/dist/scanNarrativeFacts.d.ts +21 -8
- package/dist/scanNarrativeFacts.d.ts.map +1 -1
- package/dist/scanNarrativeFacts.js +6 -0
- package/dist/scanSurfaceCopy.d.ts +26 -26
- package/dist/scanSurfaceCopy.d.ts.map +1 -1
- package/dist/scanSurfaceCopy.js +26 -26
- package/package.json +1 -1
package/dist/scanSurfaceCopy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Single source for short scan pipeline / Actions copy (not i18n
|
|
2
|
+
* Single source for short scan pipeline / Actions copy (not i18n - keep flat and small).
|
|
3
3
|
* Risk / merge posture labels stay in riskVocabulary / MERGE_POSTURE_LABEL.
|
|
4
4
|
*/
|
|
5
5
|
export const scanSurfaceCopy = {
|
|
@@ -14,7 +14,7 @@ export const scanSurfaceCopy = {
|
|
|
14
14
|
failureTitle: "MergeSignal",
|
|
15
15
|
failureBody: "Analysis could not be completed. Check the workflow logs for details.",
|
|
16
16
|
demoSummaryTitle: "MergeSignal (demo output)",
|
|
17
|
-
demoSummaryBanner: "Sample analysis only
|
|
17
|
+
demoSummaryBanner: "Sample analysis only - not production MergeSignal results. Do not use for merge decisions.",
|
|
18
18
|
trustedSummaryMethodologyLine: "Methodology",
|
|
19
19
|
/** Dogfood workflow: secret missing on same-repo runs (annotation + logs). */
|
|
20
20
|
trustedWorkflowSecretMissing: "Trusted MergeSignal analysis is unavailable in this repository. Complete engine access setup, then re-run the workflow.",
|
|
@@ -35,7 +35,7 @@ export const scanSurfaceCopy = {
|
|
|
35
35
|
pushTrustedScanSkippedNoEngineToken: "Trusted MergeSignal analysis was skipped because no engine access token is configured for this repository.",
|
|
36
36
|
/** Step summary when trusted scan cannot start (canonical repo, token missing). */
|
|
37
37
|
trustedWorkflowCredentialHintBody: "The engine checkout token was not available to this workflow run. Add it under this repository's Actions secrets, or grant this repository access to an organization secret. Secrets that exist only on a GitHub Environment are not available here unless this job declares that environment.",
|
|
38
|
-
/** Trusted step summary H1 product line (before posture
|
|
38
|
+
/** Trusted step summary H1 product line (before posture | risk index). */
|
|
39
39
|
trustedStepSummaryTitlePrefix: "MergeSignal dependency review",
|
|
40
40
|
/** GitHub Actions step summary: risk index direction (shared with web/CLI where imported). */
|
|
41
41
|
riskIndexDirectionShort: "0 = lowest merge risk, 100 = highest merge risk",
|
|
@@ -43,13 +43,13 @@ export const scanSurfaceCopy = {
|
|
|
43
43
|
mergePostureUnavailableShort: "Posture unavailable",
|
|
44
44
|
mergePostureUnavailableDetail: "This scan did not include a merge posture verdict; use the risk index as a coarse signal only.",
|
|
45
45
|
/** `<summary>` lines for collapsible sections (keep short for GitHub UI). */
|
|
46
|
-
scoreBreakdownDetailsSummary: "Layer scores
|
|
46
|
+
scoreBreakdownDetailsSummary: "Layer scores - this scan",
|
|
47
47
|
dependencyGraphDetailsSummary: "Graph context",
|
|
48
48
|
moreActionsDetailsSummary: "More guidance",
|
|
49
49
|
moreInsightsDetailsSummary: "More insights",
|
|
50
50
|
/** Inside dependency graph `<details>`. */
|
|
51
|
-
supportingGraphContextNote: "Supporting context
|
|
52
|
-
layerScoreGlossary: "*Higher column scores = more risk in that dimension (0 best
|
|
51
|
+
supportingGraphContextNote: "Supporting context - not a merge verdict by itself.",
|
|
52
|
+
layerScoreGlossary: "*Higher column scores = more risk in that dimension (0 best ??? 100 worst).*",
|
|
53
53
|
/** After layer table: scan-specific drivers from explain/contributions. */
|
|
54
54
|
layerDriversHeading: "Signals behind elevated scores",
|
|
55
55
|
/** When surfacing recommendation rationale first (trusted default fold). */
|
|
@@ -58,7 +58,7 @@ export const scanSurfaceCopy = {
|
|
|
58
58
|
/** Development profile: no recommendations or actionable insights. */
|
|
59
59
|
devNoImmediateActions: "No immediate actions required",
|
|
60
60
|
},
|
|
61
|
-
/** GitHub App Check Run (PR)
|
|
61
|
+
/** GitHub App Check Run (PR) - calm, concise; not Actions step summary. */
|
|
62
62
|
checkRun: {
|
|
63
63
|
titleBase: "PR dependency change",
|
|
64
64
|
titleBaselineSuffix: "baseline scan only",
|
|
@@ -73,9 +73,9 @@ export const scanSurfaceCopy = {
|
|
|
73
73
|
},
|
|
74
74
|
product: {
|
|
75
75
|
/** Single line for UI/CLI/Actions parity (risk index semantics). */
|
|
76
|
-
riskIndexDirectionShort: "0 is best
|
|
76
|
+
riskIndexDirectionShort: "0 is best | 100 is worst",
|
|
77
77
|
},
|
|
78
|
-
/** Scan detail page (`/scan/[id]`)
|
|
78
|
+
/** Scan detail page (`/scan/[id]`) - show-don't-teach reviewer copy. */
|
|
79
79
|
scanDetail: {
|
|
80
80
|
recommendedActionsHeading: "Recommended actions",
|
|
81
81
|
signalSummaryHeading: "Signal summary",
|
|
@@ -88,7 +88,7 @@ export const scanSurfaceCopy = {
|
|
|
88
88
|
proofHeading: "Proof",
|
|
89
89
|
nextStepsHeading: "Recommended next steps",
|
|
90
90
|
topologySummary: "Dependency topology",
|
|
91
|
-
topologyCollapsedHint: "Supporting detail
|
|
91
|
+
topologyCollapsedHint: "Supporting detail - graph paths and depth",
|
|
92
92
|
whereLabel: "Where",
|
|
93
93
|
verifyLabel: "Verify",
|
|
94
94
|
moreImpactsSummary: "More impacts",
|
|
@@ -101,15 +101,15 @@ export const scanSurfaceCopy = {
|
|
|
101
101
|
wide: "Wide reach",
|
|
102
102
|
},
|
|
103
103
|
verdictLine: {
|
|
104
|
-
safeNoBlockersNarrow: "No merge blockers
|
|
105
|
-
safeNoBlockersModerate: "No merge blockers
|
|
106
|
-
safeNoBlockersWide: "No merge blockers
|
|
107
|
-
reviewBeforeMergeNarrow: "Review before merge
|
|
108
|
-
reviewBeforeMergeModerate: "Review before merge
|
|
109
|
-
reviewBeforeMergeWide: "Review before merge
|
|
110
|
-
riskyResolveNarrow: "Resolve blockers before merge
|
|
111
|
-
riskyResolveModerate: "Resolve blockers before merge
|
|
112
|
-
riskyResolveWide: "Resolve blockers before merge
|
|
104
|
+
safeNoBlockersNarrow: "No merge blockers - narrow footprint",
|
|
105
|
+
safeNoBlockersModerate: "No merge blockers - moderate dependency footprint",
|
|
106
|
+
safeNoBlockersWide: "No merge blockers - wide upgrade footprint",
|
|
107
|
+
reviewBeforeMergeNarrow: "Review before merge - narrow footprint",
|
|
108
|
+
reviewBeforeMergeModerate: "Review before merge - moderate dependency footprint",
|
|
109
|
+
reviewBeforeMergeWide: "Review before merge - wide dependency footprint",
|
|
110
|
+
riskyResolveNarrow: "Resolve blockers before merge - focused footprint",
|
|
111
|
+
riskyResolveModerate: "Resolve blockers before merge - moderate dependency footprint",
|
|
112
|
+
riskyResolveWide: "Resolve blockers before merge - wide transitive tree",
|
|
113
113
|
},
|
|
114
114
|
tier1Fallback: {
|
|
115
115
|
/** Graph-only / lightweight PR baseline (pattern F3). */
|
|
@@ -123,9 +123,9 @@ export const scanSurfaceCopy = {
|
|
|
123
123
|
},
|
|
124
124
|
confidenceCaveat: {
|
|
125
125
|
medium: "Based on partial dependency signal",
|
|
126
|
-
low: "Limited signal
|
|
126
|
+
low: "Limited signal - treat this as directional",
|
|
127
127
|
},
|
|
128
|
-
codeAnalysisTimeout: "Code analysis timed out
|
|
128
|
+
codeAnalysisTimeout: "Code analysis timed out - runtime impact may be incomplete",
|
|
129
129
|
scanPipelineNote: "This page updates automatically.",
|
|
130
130
|
recommendationDetail: {
|
|
131
131
|
selectPrompt: "Select a recommendation to understand it",
|
|
@@ -192,7 +192,7 @@ export const scanSurfaceCopy = {
|
|
|
192
192
|
why: "Dependency health is stable now but benefits from ongoing observation.",
|
|
193
193
|
whyNow: "Monitoring catches regressions that appear only after merge.",
|
|
194
194
|
expectedBenefit: "Earlier detection of dependency regressions in production.",
|
|
195
|
-
signals: ["No immediate blockers
|
|
195
|
+
signals: ["No immediate blockers - monitor after merge"],
|
|
196
196
|
},
|
|
197
197
|
mergeAfterVerification: {
|
|
198
198
|
why: "Wide upgrade footprints warrant a quick sanity check before merge.",
|
|
@@ -252,7 +252,7 @@ export const scanSurfaceCopy = {
|
|
|
252
252
|
signalSummary: {
|
|
253
253
|
scoreCaption: "Dependency signal score",
|
|
254
254
|
layersHeading: "Layer signals",
|
|
255
|
-
gaugeAriaLabel: "Dependency signal score {score}
|
|
255
|
+
gaugeAriaLabel: "Dependency signal score {score} - {band}",
|
|
256
256
|
followUpImprovementIdentified: "1 follow-up improvement was identified",
|
|
257
257
|
followUpImprovementsIdentified: "{count} follow-up improvements were identified",
|
|
258
258
|
bandLabel: {
|
|
@@ -267,7 +267,7 @@ export const scanSurfaceCopy = {
|
|
|
267
267
|
},
|
|
268
268
|
},
|
|
269
269
|
},
|
|
270
|
-
/** PR narrative presentation
|
|
270
|
+
/** PR narrative presentation - channel-specific copy built from ScanNarrativeFacts. */
|
|
271
271
|
narrativeCard: {
|
|
272
272
|
structuralOnlyDisclaimer: "Structural dependency analysis only",
|
|
273
273
|
runtimeSurface: {
|
|
@@ -288,8 +288,8 @@ export const scanSurfaceCopy = {
|
|
|
288
288
|
moderate: "Moderate",
|
|
289
289
|
wide: "Wide",
|
|
290
290
|
},
|
|
291
|
-
areasSeparator: "
|
|
292
|
-
contextSeparator: "
|
|
291
|
+
areasSeparator: " | ",
|
|
292
|
+
contextSeparator: " | ",
|
|
293
293
|
},
|
|
294
294
|
cli: {
|
|
295
295
|
stderrAnalysisIncomplete: "Analysis could not be completed.",
|