viza 1.7.47 → 1.7.48
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.
|
@@ -34,7 +34,14 @@ export function renderLog(zipBuffer, options) {
|
|
|
34
34
|
if (entry.isDirectory)
|
|
35
35
|
continue;
|
|
36
36
|
const text = entry.getData().toString("utf8");
|
|
37
|
-
|
|
37
|
+
// 1️⃣ Deterministic marker (preferred)
|
|
38
|
+
const marker = text.match(/VIZA_DISPATCH_ACTOR=([^\s"']+)/);
|
|
39
|
+
if (marker) {
|
|
40
|
+
detectedDispatcher = marker[1];
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
// 2️⃣ Fallback heuristic for legacy logs
|
|
44
|
+
const m = text.match(/Dispatch initiated by actor:\s*([^\s"']+)/i);
|
|
38
45
|
if (m) {
|
|
39
46
|
detectedDispatcher = m[1];
|
|
40
47
|
break;
|