@andrii_kremlovskyi/playwright-traces-reader 4.1.0 → 4.2.1
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/README.md +98 -92
- package/dist/digestTrace.d.ts +2 -2
- package/dist/digestTrace.d.ts.map +1 -1
- package/dist/digestTrace.js +74 -49
- package/dist/digestTrace.js.map +1 -1
- package/dist/extractors.d.ts +15 -12
- package/dist/extractors.d.ts.map +1 -1
- package/dist/extractors.js +273 -171
- package/dist/extractors.js.map +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/parseTrace.d.ts +8 -5
- package/dist/parseTrace.d.ts.map +1 -1
- package/dist/parseTrace.js +83 -33
- package/dist/parseTrace.js.map +1 -1
- package/dist/traceCompatibility.d.ts +1 -1
- package/dist/traceCompatibility.d.ts.map +1 -1
- package/dist/traceCompatibility.js +68 -36
- package/dist/traceCompatibility.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traceCompatibility.d.ts","sourceRoot":"","sources":["../src/traceCompatibility.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"traceCompatibility.d.ts","sourceRoot":"","sources":["../src/traceCompatibility.ts"],"names":[],"mappings":"AAGA,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAEtE,eAAO,MAAM,2BAA2B,IAAI,CAAC;AAQ7C,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,KAAK,EAAE,sBAAsB,EAAE,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,qBAAa,4BAA6B,SAAQ,KAAK;aAEnC,YAAY,EAAE,MAAM;aACpB,mBAAmB,EAAE,MAAM;gBAD3B,YAAY,EAAE,MAAM,EACpB,mBAAmB,EAAE,MAAM;CAO9C;AAED,qBAAa,6BAA8B,SAAQ,KAAK;aAC1B,aAAa,EAAE,MAAM,EAAE;gBAAvB,aAAa,EAAE,MAAM,EAAE;CAMpD;AA0ED,wBAAsB,2BAA2B,CAC/C,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CAwBf;AAED,wBAAsB,yBAAyB,CAC7C,YAAY,EAAE,YAAY,GACzB,OAAO,CAAC,wBAAwB,CAAC,CAoEnC"}
|
|
@@ -39,21 +39,22 @@ exports.inspectTraceCompatibility = inspectTraceCompatibility;
|
|
|
39
39
|
const fs = __importStar(require("fs"));
|
|
40
40
|
const path = __importStar(require("path"));
|
|
41
41
|
const ndjson_1 = require("./ndjson");
|
|
42
|
+
const parseTrace_1 = require("./parseTrace");
|
|
42
43
|
exports.MAX_SUPPORTED_TRACE_VERSION = 8;
|
|
43
44
|
class UnsupportedTraceVersionError extends Error {
|
|
44
45
|
constructor(traceVersion, maxSupportedVersion) {
|
|
45
46
|
super(`Trace schema version ${traceVersion} is newer than the maximum supported version ${maxSupportedVersion}. Update playwright-traces-reader before parsing this trace.`);
|
|
46
47
|
this.traceVersion = traceVersion;
|
|
47
48
|
this.maxSupportedVersion = maxSupportedVersion;
|
|
48
|
-
this.name =
|
|
49
|
+
this.name = "UnsupportedTraceVersionError";
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
exports.UnsupportedTraceVersionError = UnsupportedTraceVersionError;
|
|
52
53
|
class InconsistentTraceVersionError extends Error {
|
|
53
54
|
constructor(traceVersions) {
|
|
54
|
-
super(`Trace contains inconsistent schema versions: ${traceVersions.join(
|
|
55
|
+
super(`Trace contains inconsistent schema versions: ${traceVersions.join(", ")}.`);
|
|
55
56
|
this.traceVersions = traceVersions;
|
|
56
|
-
this.name =
|
|
57
|
+
this.name = "InconsistentTraceVersionError";
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
exports.InconsistentTraceVersionError = InconsistentTraceVersionError;
|
|
@@ -63,21 +64,45 @@ function increment(counts, key) {
|
|
|
63
64
|
function sortedRecord(counts) {
|
|
64
65
|
return Object.fromEntries([...counts].sort(([left], [right]) => left.localeCompare(right)));
|
|
65
66
|
}
|
|
66
|
-
function
|
|
67
|
-
if (typeof
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
function addResourceReference(result, file, legacySha1) {
|
|
68
|
+
if (typeof file === "string" && file)
|
|
69
|
+
result.add(file);
|
|
70
|
+
else if (typeof legacySha1 === "string" && legacySha1)
|
|
71
|
+
result.add(legacySha1);
|
|
72
|
+
}
|
|
73
|
+
function collectResourceReferences(event, result) {
|
|
74
|
+
if (event.type === "resource-snapshot") {
|
|
75
|
+
const snapshot = event.snapshot;
|
|
76
|
+
const request = snapshot?.request;
|
|
77
|
+
const postData = request?.postData;
|
|
78
|
+
const response = snapshot?.response;
|
|
79
|
+
const content = response?.content;
|
|
80
|
+
addResourceReference(result, postData?._file, postData?._sha1);
|
|
81
|
+
addResourceReference(result, content?._file, content?._sha1);
|
|
71
82
|
}
|
|
72
|
-
if (
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
83
|
+
if (event.type === "frame-snapshot") {
|
|
84
|
+
const snapshot = event.snapshot;
|
|
85
|
+
const overrides = Array.isArray(snapshot?.resourceOverrides)
|
|
86
|
+
? snapshot.resourceOverrides
|
|
87
|
+
: [];
|
|
88
|
+
for (const override of overrides) {
|
|
89
|
+
const resource = override;
|
|
90
|
+
addResourceReference(result, resource.file, resource.sha1);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
if (event.type === "screencast-frame" ||
|
|
94
|
+
event.type === "screenshot" ||
|
|
95
|
+
event.type === "aria-snapshot")
|
|
96
|
+
addResourceReference(result, event.file, event.sha1);
|
|
97
|
+
if (event.type === "after" || event.type === "action") {
|
|
98
|
+
const attachments = Array.isArray(event.attachments)
|
|
99
|
+
? event.attachments
|
|
100
|
+
: [];
|
|
101
|
+
for (const attachment of attachments) {
|
|
102
|
+
const resource = attachment;
|
|
103
|
+
addResourceReference(result, resource.file, resource.sha1);
|
|
104
|
+
}
|
|
76
105
|
}
|
|
77
|
-
if (!value || typeof value !== 'object')
|
|
78
|
-
return;
|
|
79
|
-
for (const [childKey, childValue] of Object.entries(value))
|
|
80
|
-
collectResourceReferences(childValue, childKey, result);
|
|
81
106
|
}
|
|
82
107
|
function assertVersions(traceVersions) {
|
|
83
108
|
const versions = [...traceVersions].sort((left, right) => left - right);
|
|
@@ -89,15 +114,17 @@ function assertVersions(traceVersions) {
|
|
|
89
114
|
async function assertSupportedTraceVersion(traceDir) {
|
|
90
115
|
const entries = await fs.promises.readdir(traceDir, { withFileTypes: true });
|
|
91
116
|
const traceFiles = entries
|
|
92
|
-
.filter(entry => entry.isFile() &&
|
|
93
|
-
.
|
|
117
|
+
.filter((entry) => entry.isFile() &&
|
|
118
|
+
entry.name.endsWith(".trace") &&
|
|
119
|
+
entry.name !== "test.trace")
|
|
120
|
+
.map((entry) => entry.name)
|
|
94
121
|
.sort();
|
|
95
122
|
const traceVersions = new Set();
|
|
96
123
|
for (const traceFile of traceFiles) {
|
|
97
124
|
for await (const event of (0, ndjson_1.readNdjson)(path.join(traceDir, traceFile))) {
|
|
98
|
-
if (event.type !==
|
|
125
|
+
if (event.type !== "context-options")
|
|
99
126
|
continue;
|
|
100
|
-
if (typeof event.version ===
|
|
127
|
+
if (typeof event.version === "number")
|
|
101
128
|
traceVersions.add(event.version);
|
|
102
129
|
break;
|
|
103
130
|
}
|
|
@@ -105,10 +132,13 @@ async function assertSupportedTraceVersion(traceDir) {
|
|
|
105
132
|
assertVersions(traceVersions);
|
|
106
133
|
}
|
|
107
134
|
async function inspectTraceCompatibility(traceContext) {
|
|
108
|
-
const entries = await fs.promises.readdir(traceContext.traceDir, {
|
|
135
|
+
const entries = await fs.promises.readdir(traceContext.traceDir, {
|
|
136
|
+
withFileTypes: true,
|
|
137
|
+
});
|
|
109
138
|
const eventFiles = entries
|
|
110
|
-
.filter(entry => entry.isFile() &&
|
|
111
|
-
.
|
|
139
|
+
.filter((entry) => entry.isFile() &&
|
|
140
|
+
(entry.name.endsWith(".trace") || entry.name.endsWith(".network")))
|
|
141
|
+
.map((entry) => entry.name)
|
|
112
142
|
.sort();
|
|
113
143
|
const traceVersions = new Set();
|
|
114
144
|
const playwrightVersions = new Set();
|
|
@@ -120,29 +150,31 @@ async function inspectTraceCompatibility(traceContext) {
|
|
|
120
150
|
let eventCount = 0;
|
|
121
151
|
for await (const event of (0, ndjson_1.readNdjson)(path.join(traceContext.traceDir, eventFile))) {
|
|
122
152
|
eventCount += 1;
|
|
123
|
-
const eventType = typeof event.type ===
|
|
153
|
+
const eventType = typeof event.type === "string" ? event.type : "<missing>";
|
|
124
154
|
increment(eventTypes, eventType);
|
|
125
155
|
increment(allEventTypes, eventType);
|
|
126
|
-
collectResourceReferences(event,
|
|
127
|
-
if (event.type ===
|
|
128
|
-
if (typeof event.version ===
|
|
156
|
+
collectResourceReferences(event, referencedResources);
|
|
157
|
+
if (event.type === "context-options") {
|
|
158
|
+
if (typeof event.version === "number")
|
|
129
159
|
traceVersions.add(event.version);
|
|
130
|
-
if (typeof event.playwrightVersion ===
|
|
160
|
+
if (typeof event.playwrightVersion === "string")
|
|
131
161
|
playwrightVersions.add(event.playwrightVersion);
|
|
132
162
|
}
|
|
133
163
|
}
|
|
134
|
-
files.push({
|
|
164
|
+
files.push({
|
|
165
|
+
file: eventFile,
|
|
166
|
+
eventCount,
|
|
167
|
+
eventTypes: sortedRecord(eventTypes),
|
|
168
|
+
});
|
|
135
169
|
}
|
|
136
170
|
assertVersions(traceVersions);
|
|
137
|
-
const resourcesDir = path.join(traceContext.traceDir, 'resources');
|
|
138
|
-
const resourceNames = fs.existsSync(resourcesDir)
|
|
139
|
-
? new Set(await fs.promises.readdir(resourcesDir))
|
|
140
|
-
: new Set();
|
|
141
171
|
const references = [...referencedResources].sort();
|
|
142
|
-
const missingResources = references.filter(reference => {
|
|
143
|
-
if (
|
|
172
|
+
const missingResources = references.filter((reference) => {
|
|
173
|
+
if ((0, parseTrace_1.traceResourceExists)(traceContext, reference))
|
|
144
174
|
return false;
|
|
145
|
-
if (reference.
|
|
175
|
+
if (!reference.includes("/") &&
|
|
176
|
+
reference.endsWith(".bin") &&
|
|
177
|
+
(0, parseTrace_1.traceResourceExists)(traceContext, reference.slice(0, -4)))
|
|
146
178
|
return false;
|
|
147
179
|
return true;
|
|
148
180
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traceCompatibility.js","sourceRoot":"","sources":["../src/traceCompatibility.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"traceCompatibility.js","sourceRoot":"","sources":["../src/traceCompatibility.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0HA,kEA0BC;AAED,8DAsEC;AA5ND,uCAAyB;AACzB,2CAA6B;AAC7B,qCAAsC;AACtC,6CAAsE;AAEzD,QAAA,2BAA2B,GAAG,CAAC,CAAC;AAwB7C,MAAa,4BAA6B,SAAQ,KAAK;IACrD,YACkB,YAAoB,EACpB,mBAA2B;QAE3C,KAAK,CACH,wBAAwB,YAAY,gDAAgD,mBAAmB,8DAA8D,CACtK,CAAC;QALc,iBAAY,GAAZ,YAAY,CAAQ;QACpB,wBAAmB,GAAnB,mBAAmB,CAAQ;QA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,CAAC,MAAM,CAAC;YAC1B,IAAA,gCAAmB,EAAC,YAAY,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAEzD,OAAO,KAAK,CAAC;QACf,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CAAC;IACH,MAAM,QAAQ,GAAG,CAAC,GAAG,aAAa,CAAC,CAAC;IAEpC,OAAO;QACL,QAAQ,EAAE,YAAY,CAAC,QAAQ;QAC/B,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC,IAAI,IAAI;QACjC,kBAAkB,EAAE,CAAC,GAAG,kBAAkB,CAAC,CAAC,IAAI,EAAE;QAClD,KAAK;QACL,UAAU,EAAE,YAAY,CAAC,aAAa,CAAC;QACvC,mBAAmB,EAAE,UAAU;QAC/B,gBAAgB;KACjB,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@andrii_kremlovskyi/playwright-traces-reader",
|
|
3
|
-
"version": "4.1
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "Parse Playwright trace files into structured data for AI agents and tooling",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"typescript": "^5.9.3"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"adm-zip": "^0.
|
|
51
|
+
"adm-zip": "^0.6.0",
|
|
52
52
|
"commander": "^13.1.0"
|
|
53
53
|
},
|
|
54
54
|
"jest": {
|