@resolveio/server-lib 22.3.223 → 22.3.225
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/package.json
CHANGED
|
@@ -1048,6 +1048,20 @@ function supportDiagnosisEvidenceIsTicketAttachment(entry) {
|
|
|
1048
1048
|
|| /(?:^|\/)manual-ticket\.request\.txt$/i.test(text)
|
|
1049
1049
|
|| /(?:^|\/)email\.metadata\.json$/i.test(text);
|
|
1050
1050
|
}
|
|
1051
|
+
function supportDiagnosisEvidencePathAlias(value) {
|
|
1052
|
+
var text = cleanText(value, 500);
|
|
1053
|
+
if (!text) {
|
|
1054
|
+
return '';
|
|
1055
|
+
}
|
|
1056
|
+
if (/\b(?:support_ticket|git_commit|mongo|browser|qa|log|ticket|code|commit)\b/i.test(text) && !/[/.]/.test(text)) {
|
|
1057
|
+
return '';
|
|
1058
|
+
}
|
|
1059
|
+
if (/(?:^|\/)(?:angular|server|client|src|lib|test|tests|docs|qa-artifacts|runner-evidence|\.resolveio-support-context|\.resolveio-context)\//i.test(text)
|
|
1060
|
+
|| /\.(?:ts|tsx|js|jsx|mjs|cjs|html|scss|css|json|md|png|jpe?g|webp|gif|pdf|csv|txt)(?::\d+(?:-\d+)?)?$/i.test(text)) {
|
|
1061
|
+
return text;
|
|
1062
|
+
}
|
|
1063
|
+
return '';
|
|
1064
|
+
}
|
|
1051
1065
|
function normalizeSupportDiagnosisEvidence(values, ownerFiles) {
|
|
1052
1066
|
if (ownerFiles === void 0) { ownerFiles = []; }
|
|
1053
1067
|
var allowed = new Set(['ticket', 'browser', 'mongo', 'log', 'code', 'commit', 'qa', 'other']);
|
|
@@ -1079,8 +1093,17 @@ function normalizeSupportDiagnosisEvidence(values, ownerFiles) {
|
|
|
1079
1093
|
.filter(function (entry) { return entry && typeof entry === 'object' && !Array.isArray(entry); })
|
|
1080
1094
|
.map(function (entry) {
|
|
1081
1095
|
var type = cleanText(entry.type, 80).toLowerCase();
|
|
1082
|
-
var artifactPath = cleanText(entry.artifactPath
|
|
1083
|
-
|
|
1096
|
+
var artifactPath = cleanText(entry.artifactPath
|
|
1097
|
+
|| entry.artifact_path
|
|
1098
|
+
|| entry.artifact
|
|
1099
|
+
|| entry.path
|
|
1100
|
+
|| entry.file
|
|
1101
|
+
|| entry.filePath
|
|
1102
|
+
|| entry.file_path
|
|
1103
|
+
|| supportDiagnosisEvidencePathAlias(entry.source)
|
|
1104
|
+
|| supportDiagnosisEvidencePathAlias(entry.sourcePath)
|
|
1105
|
+
|| supportDiagnosisEvidencePathAlias(entry.source_path), 500);
|
|
1106
|
+
var summary = cleanText(entry.summary || entry.detail || entry.observation || entry.supports || entry.support || entry.message || entry.evidence || entry.reason || entry.rejection_reason || entry.rejectionReason || entry.fact || entry.finding || entry.description || entry.proof || entry.proof_required || entry.proofRequired, 1200)
|
|
1084
1107
|
|| (artifactPath ? "Evidence from ".concat(artifactPath) : '');
|
|
1085
1108
|
var evidenceText = [summary, artifactPath].filter(Boolean).join(' ');
|
|
1086
1109
|
var inferredType = (function () {
|
|
@@ -2446,6 +2469,7 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
|
|
|
2446
2469
|
var rawFailingPath = source.failing_path || source.failingPath;
|
|
2447
2470
|
var rawProofPlan = source.proof_plan || source.proofPlan;
|
|
2448
2471
|
var issueCaseSource = cleanObject(rawIssueCase);
|
|
2472
|
+
var reproductionSource = cleanObject(issueCaseSource.reproduction || issueCaseSource.repro || source.reproduction || source.repro);
|
|
2449
2473
|
var hypothesisSource = cleanObject(source.accepted_hypothesis || source.acceptedHypothesis);
|
|
2450
2474
|
var failingPathSource = cleanObject(source.failing_path || source.failingPath);
|
|
2451
2475
|
var proofPlanSource = cleanObject(source.proof_plan || source.proofPlan);
|
|
@@ -2602,11 +2626,24 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
|
|
|
2602
2626
|
|| pickText(source, ['account_customer_context', 'accountCustomerContext', 'affected_account_user', 'affectedAccountUser', 'account_context', 'accountContext', 'customer_context', 'customerContext', 'client_context', 'clientContext', 'affected_customer', 'affectedCustomer', 'account', 'customer', 'client', 'user', 'context', 'reporter'], 800)
|
|
2603
2627
|
|| (issueCasePrimaryText ? 'Customer/account context from support ticket intake and hydrated support attachments.' : '')
|
|
2604
2628
|
|| (featureRequestClassified ? 'Customer/account context from support ticket intake.' : '');
|
|
2605
|
-
var rawReproductionStatus = issueCaseSource.reproduction_status
|
|
2606
|
-
|
|
2629
|
+
var rawReproductionStatus = issueCaseSource.reproduction_status
|
|
2630
|
+
|| issueCaseSource.reproductionStatus
|
|
2631
|
+
|| reproductionSource.reproduction_status
|
|
2632
|
+
|| reproductionSource.reproductionStatus
|
|
2633
|
+
|| reproductionSource.status
|
|
2634
|
+
|| source.reproduction_status;
|
|
2635
|
+
var blockingArtifactsText = cleanList(issueCaseSource.blocking_artifacts
|
|
2636
|
+
|| issueCaseSource.blockingArtifacts
|
|
2637
|
+
|| reproductionSource.blocking_artifacts
|
|
2638
|
+
|| reproductionSource.blockingArtifacts
|
|
2639
|
+
|| reproductionSource.missing_artifacts
|
|
2640
|
+
|| reproductionSource.missingArtifacts
|
|
2641
|
+
|| source.blocking_artifacts
|
|
2642
|
+
|| source.blockingArtifacts, 8, 500)
|
|
2607
2643
|
.join(' | ')
|
|
2608
2644
|
.slice(0, 1000);
|
|
2609
|
-
var explicitReproductionBlocker = pickText(issueCaseSource, ['reproduction_blocker', 'reproductionBlocker', 'runtime_blocker', 'runtimeBlocker', 'blocked_reason', 'blockedReason', 'blocker', 'blocked_by', 'blockedBy'], 1000)
|
|
2645
|
+
var explicitReproductionBlocker = pickText(issueCaseSource, ['reproduction_blocker', 'reproductionBlocker', 'runtime_blocker', 'runtimeBlocker', 'blocked_reason', 'blockedReason', 'blocker', 'blocked_by', 'blockedBy'], 1000)
|
|
2646
|
+
|| pickText(reproductionSource, ['reproduction_blocker', 'reproductionBlocker', 'runtime_blocker', 'runtimeBlocker', 'blocked_reason', 'blockedReason', 'reason', 'blocker', 'blocked_by', 'blockedBy'], 1000);
|
|
2610
2647
|
var inferredReproductionBlocked = /\b(?:runtime\s+)?reproduction\s+(?:is\s+)?blocked\b|\bno accessible staged runtime\b|\bstaged (?:mongo|log|runtime) artifacts?.{0,80}\b(?:not accessible|unavailable|missing)\b|\b(?:cannot|unable to) reproduce\b/i.test(issueCaseText);
|
|
2611
2648
|
var inferredReproductionBlocker = explicitReproductionBlocker
|
|
2612
2649
|
|| blockingArtifactsText
|
|
@@ -2618,10 +2655,16 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
|
|
|
2618
2655
|
hypothesisSource.evidenceRefs,
|
|
2619
2656
|
hypothesisSource.code_evidence,
|
|
2620
2657
|
hypothesisSource.codeEvidence,
|
|
2658
|
+
hypothesisSource.why_accepted,
|
|
2659
|
+
hypothesisSource.whyAccepted,
|
|
2621
2660
|
source.hypothesis_evidence,
|
|
2622
2661
|
source.hypothesisEvidence,
|
|
2623
2662
|
hypothesisSource
|
|
2624
2663
|
], 10, 800);
|
|
2664
|
+
var hypothesisFalsifiableBy = cleanList(hypothesisSource.falsifiable_by
|
|
2665
|
+
|| hypothesisSource.falsifiableBy
|
|
2666
|
+
|| hypothesisSource.falsifies_by
|
|
2667
|
+
|| hypothesisSource.falsifiesBy, 8, 500).join(' | ').slice(0, 1000);
|
|
2625
2668
|
var gate = {
|
|
2626
2669
|
issue_case: {
|
|
2627
2670
|
customer_complaint: explicitCustomerComplaint || customerIssueCaseText,
|
|
@@ -2636,9 +2679,10 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
|
|
|
2636
2679
|
},
|
|
2637
2680
|
issue_class: issueClass || 'missing_wrong_data',
|
|
2638
2681
|
accepted_hypothesis: {
|
|
2639
|
-
statement: pickText(hypothesisSource, ['statement', 'hypothesis', 'root_cause', 'rootCause', 'summary'], 1200)
|
|
2682
|
+
statement: pickText(hypothesisSource, ['statement', 'hypothesis', 'root_cause', 'rootCause', 'root_cause_theory', 'rootCauseTheory', 'theory', 'summary', 'why_accepted', 'whyAccepted'], 1200)
|
|
2640
2683
|
|| hypothesisText,
|
|
2641
2684
|
falsifiable_test: pickText(hypothesisSource, ['falsifiable_test', 'falsifiableTest', 'falsification_method', 'falsificationMethod', 'falsifiable_method', 'falsifiableMethod', 'test', 'proof', 'falsifier'], 1000)
|
|
2685
|
+
|| hypothesisFalsifiableBy
|
|
2642
2686
|
|| (failingPathText ? "Verify the accepted hypothesis against the failing path evidence: ".concat(failingPathText) : ''),
|
|
2643
2687
|
evidence: explicitHypothesisEvidence.length
|
|
2644
2688
|
? explicitHypothesisEvidence
|
|
@@ -2648,7 +2692,7 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
|
|
|
2648
2692
|
failing_path: {
|
|
2649
2693
|
frontend: pickText(failingPathSource, ['frontend', 'frontend_path', 'frontendPath', 'eventPath', 'frontend_event_data_path', 'frontendEventDataPath'], 700),
|
|
2650
2694
|
backend: pickText(failingPathSource, ['backend', 'backend_path', 'backendPath', 'methodPublicationPath', 'backend_method_publication_query_path', 'backendMethodPublicationQueryPath'], 700),
|
|
2651
|
-
shared_library: pickText(failingPathSource, ['shared_library', 'sharedLibrary', 'library', 'lib'], 700),
|
|
2695
|
+
shared_library: pickText(failingPathSource, ['shared_library', 'sharedLibrary', 'shared_library_path', 'sharedLibraryPath', 'library', 'lib'], 700),
|
|
2652
2696
|
data_query: pickText(failingPathSource, ['data_query', 'dataQuery', 'query', 'data_path', 'dataPath'], 700),
|
|
2653
2697
|
description: pickText(failingPathSource, ['description', 'path_chain', 'pathChain', 'chain', 'visibility_gate_trace', 'visibilityGateTrace', 'reported', 'verified', 'reported_path', 'reportedPath', 'verified_path', 'verifiedPath', 'path', 'assessment', 'summary', 'route', 'frontend_event_data_path', 'frontendEventDataPath', 'backend_method_publication_query_path', 'backendMethodPublicationQueryPath', 'data_path', 'dataPath'], 1200) || failingPathText
|
|
2654
2698
|
},
|