@resolveio/server-lib 22.3.202 → 22.3.203

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.
@@ -1429,6 +1429,8 @@ function ownerFileLooksBroad(value) {
1429
1429
  var normalized = normalizeOwnerFilePath(value);
1430
1430
  return !normalized
1431
1431
  || normalized.includes('*')
1432
+ || /^(?:private\/)?var\/app\/resolveio-ai-workspace\//i.test(normalized)
1433
+ || /^users\/[^/]+\/resolveio\//i.test(normalized)
1432
1434
  || normalized.endsWith('/')
1433
1435
  || !/\.[a-z0-9]+$/i.test(normalized)
1434
1436
  || /^(\.|src|server|angular|client|app|lib|packages?)$/i.test(normalized)
@@ -1437,6 +1439,8 @@ function ownerFileLooksBroad(value) {
1437
1439
  function ownerFileLooksNonProductEvidence(value) {
1438
1440
  var normalized = normalizeOwnerFilePath(value);
1439
1441
  return /(^|\/)(qa-artifacts?|screenshots?|screen-shots?|traces?|logs?|tmp|temp|coverage|dist|build|docs?)(\/|$)/i.test(normalized)
1442
+ || /(^|\/)(?:support-diagnosis-pack-[^/]+|diagnosis-evidence-pack|aiqa-business-assertion)\.json$/i.test(normalized)
1443
+ || /(^|\/)\.resolveio-(?:support|context|runner|qa)(\/|$)/i.test(normalized)
1440
1444
  || /(^|\/)(__tests__|tests?|spec)(\/|$)|\.(?:spec|test)\.[jt]sx?$/i.test(normalized)
1441
1445
  || /\.(?:png|jpe?g|gif|webp|svg|pdf|log|txt|md|markdown)$/i.test(normalized);
1442
1446
  }
@@ -6545,25 +6549,47 @@ function buildResolveIOSupportV5MicrotaskPrompt(input) {
6545
6549
  text: JSON.stringify({
6546
6550
  packId: diagnosisEvidencePack.packId,
6547
6551
  status: diagnosisEvidencePack.status,
6552
+ generatedAt: diagnosisEvidencePack.generatedAt,
6548
6553
  readOnly: diagnosisEvidencePack.readOnly,
6549
6554
  sourceEditsAllowed: diagnosisEvidencePack.sourceEditsAllowed,
6555
+ rootCauseFirstRequired: diagnosisEvidencePack.rootCauseFirstRequired,
6550
6556
  requiredOutputKey: diagnosisEvidencePack.requiredOutputKey,
6551
6557
  requiredFields: diagnosisEvidencePack.requiredFields,
6552
6558
  requiredEvidence: diagnosisEvidencePack.requiredEvidence,
6553
6559
  forbiddenActions: diagnosisEvidencePack.forbiddenActions,
6560
+ diagnosisValid: diagnosisEvidencePack.diagnosisValid,
6561
+ diagnosisStatus: diagnosisEvidencePack.diagnosisStatus,
6554
6562
  validationBlockers: diagnosisEvidencePack.validationBlockers,
6555
6563
  issueClassHint: diagnosisEvidencePack.issueClassHint,
6556
6564
  ownerFileHints: diagnosisEvidencePack.ownerFileHints,
6565
+ activeMicrotaskId: diagnosisEvidencePack.activeMicrotaskId,
6566
+ structuredFacts: diagnosisEvidencePack.structuredFacts,
6567
+ proofMatrix: diagnosisEvidencePack.proofMatrix,
6557
6568
  similarHintsAdvisoryOnly: true,
6558
6569
  similarHintCount: diagnosisEvidencePack.similarCaseSelection.ranked.length,
6570
+ similarCaseSelection: {
6571
+ ranked: diagnosisEvidencePack.similarCaseSelection.ranked.slice(0, 6)
6572
+ },
6559
6573
  issueClassProbeCatalog: diagnosisEvidencePack.issueClassProbeCatalog.map(function (entry) { return ({
6560
6574
  issue_class: entry.issue_class,
6561
6575
  action: entry.action,
6562
6576
  proof_required: entry.proof_required,
6563
6577
  acceptance_gate: entry.acceptance_gate,
6564
6578
  false_pass_blockers: entry.false_pass_blockers
6565
- }); })
6566
- })
6579
+ }); }),
6580
+ persistedEvidencePack: input.bundle.supportV5DiagnosisEvidencePack
6581
+ ? {
6582
+ packId: input.bundle.supportV5DiagnosisEvidencePack.packId,
6583
+ status: input.bundle.supportV5DiagnosisEvidencePack.status,
6584
+ validationBlockers: input.bundle.supportV5DiagnosisEvidencePack.validationBlockers,
6585
+ issueClassHint: input.bundle.supportV5DiagnosisEvidencePack.issueClassHint,
6586
+ ownerFileHints: input.bundle.supportV5DiagnosisEvidencePack.ownerFileHints,
6587
+ structuredFacts: input.bundle.supportV5DiagnosisEvidencePack.structuredFacts,
6588
+ proofMatrix: input.bundle.supportV5DiagnosisEvidencePack.proofMatrix
6589
+ }
6590
+ : undefined,
6591
+ instruction: 'This JSON block is the diagnosis evidence pack. Do not request or invent a support-diagnosis-pack JSON file unless a concrete named ticket attachment/log is still absent from the staged support evidence context.'
6592
+ }, null, 2)
6567
6593
  } : undefined,
6568
6594
  diagnosisActive && similarCaseHintsText ? {
6569
6595
  name: 'similar_accepted_fix_hints',