@resolveio/server-lib 22.3.201 → 22.3.202
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
|
@@ -619,6 +619,17 @@ function hostStatusProofForBackendTarget(records, target, allowLegacyGlobalStatu
|
|
|
619
619
|
}
|
|
620
620
|
return undefined;
|
|
621
621
|
}
|
|
622
|
+
function backendHotfixTargetTouchesRunnerControlPlane(target) {
|
|
623
|
+
var path = cleanText((target === null || target === void 0 ? void 0 : target.path) || (target === null || target === void 0 ? void 0 : target.artifactPath), 500).replace(/\\/g, '/').toLowerCase();
|
|
624
|
+
return /(^|\/)(managers\/ai-dashboard|methods\/support-ticket-automation|http\/runner-manager-selftest|http\/support|node_modules\/@resolveio\/server-lib\/(?:server-app|util\/(?:support-runner-v5|ai-runner-manager-policy|ai-run-evidence|ai-runner-qa-tools)))/i.test(path);
|
|
625
|
+
}
|
|
626
|
+
function backendHotfixRestartProofIncludesSupportManagers(evidence) {
|
|
627
|
+
var text = __spreadArray([
|
|
628
|
+
evidence.restartEvidence,
|
|
629
|
+
evidence.serviceRestartEvidence
|
|
630
|
+
], __read((evidence.restartResults || []).map(function (entry) { return "".concat(entry.status || '', " ").concat(entry.evidence || ''); })), false).join('\n');
|
|
631
|
+
return /\b(resolveio_support_ticket_codex_manager|support[_ -]?(?:ticket[_ -]?)?(?:codex[_ -]?)?manager|support[_ -]?manager)\b/i.test(text);
|
|
632
|
+
}
|
|
622
633
|
function validateBackendHotfixTargetCoverage(evidence, blockers) {
|
|
623
634
|
var targets = hotfixTargetsForBackendEvidence(evidence);
|
|
624
635
|
var structuredMultiTarget = targets.length > 1;
|
|
@@ -634,6 +645,9 @@ function validateBackendHotfixTargetCoverage(evidence, blockers) {
|
|
|
634
645
|
if (structuredMultiTarget && !(evidence.selfTests || []).length) {
|
|
635
646
|
blockers.push('Backend JS hotfix with multiple targets requires selfTests[] with passed status per host.');
|
|
636
647
|
}
|
|
648
|
+
if (targets.some(backendHotfixTargetTouchesRunnerControlPlane) && !backendHotfixRestartProofIncludesSupportManagers(evidence)) {
|
|
649
|
+
blockers.push('Runner/control-plane backend hotfix requires restart evidence for resolveio_support_ticket_codex_manager on affected backend hosts; restarting nodejs alone can leave stale manager code running.');
|
|
650
|
+
}
|
|
637
651
|
targets.forEach(function (target, index) {
|
|
638
652
|
var label = hotfixTargetLabel(target, index);
|
|
639
653
|
pushMissing(blockers, !!target.host, "Backend JS hotfix ".concat(label, " requires target host."));
|