@resolveio/server-lib 22.3.223 → 22.3.224

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.223",
3
+ "version": "22.3.224",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "package": "./build_package.sh",
@@ -1080,7 +1080,7 @@ function normalizeSupportDiagnosisEvidence(values, ownerFiles) {
1080
1080
  .map(function (entry) {
1081
1081
  var type = cleanText(entry.type, 80).toLowerCase();
1082
1082
  var artifactPath = cleanText(entry.artifactPath || entry.artifact_path || entry.artifact || entry.path || entry.file, 500);
1083
- var summary = cleanText(entry.summary || entry.detail || 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)
1083
+ 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
1084
  || (artifactPath ? "Evidence from ".concat(artifactPath) : '');
1085
1085
  var evidenceText = [summary, artifactPath].filter(Boolean).join(' ');
1086
1086
  var inferredType = (function () {
@@ -2446,6 +2446,7 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
2446
2446
  var rawFailingPath = source.failing_path || source.failingPath;
2447
2447
  var rawProofPlan = source.proof_plan || source.proofPlan;
2448
2448
  var issueCaseSource = cleanObject(rawIssueCase);
2449
+ var reproductionSource = cleanObject(issueCaseSource.reproduction || issueCaseSource.repro || source.reproduction || source.repro);
2449
2450
  var hypothesisSource = cleanObject(source.accepted_hypothesis || source.acceptedHypothesis);
2450
2451
  var failingPathSource = cleanObject(source.failing_path || source.failingPath);
2451
2452
  var proofPlanSource = cleanObject(source.proof_plan || source.proofPlan);
@@ -2602,11 +2603,24 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
2602
2603
  || 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
2604
  || (issueCasePrimaryText ? 'Customer/account context from support ticket intake and hydrated support attachments.' : '')
2604
2605
  || (featureRequestClassified ? 'Customer/account context from support ticket intake.' : '');
2605
- var rawReproductionStatus = issueCaseSource.reproduction_status || issueCaseSource.reproductionStatus || source.reproduction_status;
2606
- var blockingArtifactsText = cleanList(issueCaseSource.blocking_artifacts || issueCaseSource.blockingArtifacts || source.blocking_artifacts || source.blockingArtifacts, 8, 500)
2606
+ var rawReproductionStatus = issueCaseSource.reproduction_status
2607
+ || issueCaseSource.reproductionStatus
2608
+ || reproductionSource.reproduction_status
2609
+ || reproductionSource.reproductionStatus
2610
+ || reproductionSource.status
2611
+ || source.reproduction_status;
2612
+ var blockingArtifactsText = cleanList(issueCaseSource.blocking_artifacts
2613
+ || issueCaseSource.blockingArtifacts
2614
+ || reproductionSource.blocking_artifacts
2615
+ || reproductionSource.blockingArtifacts
2616
+ || reproductionSource.missing_artifacts
2617
+ || reproductionSource.missingArtifacts
2618
+ || source.blocking_artifacts
2619
+ || source.blockingArtifacts, 8, 500)
2607
2620
  .join(' | ')
2608
2621
  .slice(0, 1000);
2609
- var explicitReproductionBlocker = pickText(issueCaseSource, ['reproduction_blocker', 'reproductionBlocker', 'runtime_blocker', 'runtimeBlocker', 'blocked_reason', 'blockedReason', 'blocker', 'blocked_by', 'blockedBy'], 1000);
2622
+ var explicitReproductionBlocker = pickText(issueCaseSource, ['reproduction_blocker', 'reproductionBlocker', 'runtime_blocker', 'runtimeBlocker', 'blocked_reason', 'blockedReason', 'blocker', 'blocked_by', 'blockedBy'], 1000)
2623
+ || pickText(reproductionSource, ['reproduction_blocker', 'reproductionBlocker', 'runtime_blocker', 'runtimeBlocker', 'blocked_reason', 'blockedReason', 'reason', 'blocker', 'blocked_by', 'blockedBy'], 1000);
2610
2624
  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
2625
  var inferredReproductionBlocker = explicitReproductionBlocker
2612
2626
  || blockingArtifactsText
@@ -2618,10 +2632,16 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
2618
2632
  hypothesisSource.evidenceRefs,
2619
2633
  hypothesisSource.code_evidence,
2620
2634
  hypothesisSource.codeEvidence,
2635
+ hypothesisSource.why_accepted,
2636
+ hypothesisSource.whyAccepted,
2621
2637
  source.hypothesis_evidence,
2622
2638
  source.hypothesisEvidence,
2623
2639
  hypothesisSource
2624
2640
  ], 10, 800);
2641
+ var hypothesisFalsifiableBy = cleanList(hypothesisSource.falsifiable_by
2642
+ || hypothesisSource.falsifiableBy
2643
+ || hypothesisSource.falsifies_by
2644
+ || hypothesisSource.falsifiesBy, 8, 500).join(' | ').slice(0, 1000);
2625
2645
  var gate = {
2626
2646
  issue_case: {
2627
2647
  customer_complaint: explicitCustomerComplaint || customerIssueCaseText,
@@ -2636,9 +2656,10 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
2636
2656
  },
2637
2657
  issue_class: issueClass || 'missing_wrong_data',
2638
2658
  accepted_hypothesis: {
2639
- statement: pickText(hypothesisSource, ['statement', 'hypothesis', 'root_cause', 'rootCause', 'summary'], 1200)
2659
+ statement: pickText(hypothesisSource, ['statement', 'hypothesis', 'root_cause', 'rootCause', 'root_cause_theory', 'rootCauseTheory', 'theory', 'summary', 'why_accepted', 'whyAccepted'], 1200)
2640
2660
  || hypothesisText,
2641
2661
  falsifiable_test: pickText(hypothesisSource, ['falsifiable_test', 'falsifiableTest', 'falsification_method', 'falsificationMethod', 'falsifiable_method', 'falsifiableMethod', 'test', 'proof', 'falsifier'], 1000)
2662
+ || hypothesisFalsifiableBy
2642
2663
  || (failingPathText ? "Verify the accepted hypothesis against the failing path evidence: ".concat(failingPathText) : ''),
2643
2664
  evidence: explicitHypothesisEvidence.length
2644
2665
  ? explicitHypothesisEvidence
@@ -2648,7 +2669,7 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
2648
2669
  failing_path: {
2649
2670
  frontend: pickText(failingPathSource, ['frontend', 'frontend_path', 'frontendPath', 'eventPath', 'frontend_event_data_path', 'frontendEventDataPath'], 700),
2650
2671
  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),
2672
+ shared_library: pickText(failingPathSource, ['shared_library', 'sharedLibrary', 'shared_library_path', 'sharedLibraryPath', 'library', 'lib'], 700),
2652
2673
  data_query: pickText(failingPathSource, ['data_query', 'dataQuery', 'query', 'data_path', 'dataPath'], 700),
2653
2674
  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
2675
  },