@resolveio/server-lib 22.3.219 → 22.3.220

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "22.3.219",
3
+ "version": "22.3.220",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "package": "./build_package.sh",
@@ -1041,6 +1041,13 @@ function supportLooseEvidenceOwnerFiles(value, ownerFiles) {
1041
1041
  .filter(function (ownerFile) { return supportLooseOwnerFileMatch(value, ownerFile); })
1042
1042
  .slice(0, 8);
1043
1043
  }
1044
+ function supportDiagnosisEvidenceIsTicketAttachment(entry) {
1045
+ var text = cleanText([entry.artifactPath, entry.summary].filter(Boolean).join(' '), 1200);
1046
+ return /(?:^|\/)\.resolveio-support-context\/attachments\//i.test(text)
1047
+ || /(?:^|\/)\.resolveio-context\/attachments\//i.test(text)
1048
+ || /(?:^|\/)manual-ticket\.request\.txt$/i.test(text)
1049
+ || /(?:^|\/)email\.metadata\.json$/i.test(text);
1050
+ }
1044
1051
  function normalizeSupportDiagnosisEvidence(values, ownerFiles) {
1045
1052
  if (ownerFiles === void 0) { ownerFiles = []; }
1046
1053
  var allowed = new Set(['ticket', 'browser', 'mongo', 'log', 'code', 'commit', 'qa', 'other']);
@@ -2588,7 +2595,7 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
2588
2595
  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);
2589
2596
  var inferredReproductionBlocker = explicitReproductionBlocker
2590
2597
  || (inferredReproductionBlocked ? issueCaseText : '');
2591
- var hasRuntimeReproductionEvidence = diagnosisEvidence.some(function (entry) { return SUPPORT_REPRODUCTION_EVIDENCE_TYPES.has(entry.type); });
2598
+ var hasRuntimeReproductionEvidence = diagnosisEvidence.some(function (entry) { return SUPPORT_REPRODUCTION_EVIDENCE_TYPES.has(entry.type) && !supportDiagnosisEvidenceIsTicketAttachment(entry); });
2592
2599
  var explicitHypothesisEvidence = collectSupportDiagnosisTextListFromValues([
2593
2600
  hypothesisSource.evidence,
2594
2601
  hypothesisSource.evidence_refs,