qazen-cli 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. package/dist/lib/api.js +8 -1
  2. package/package.json +1 -1
package/dist/lib/api.js CHANGED
@@ -59,11 +59,18 @@ export async function uploadVisionDiscovery(apiUrl, cliToken, projectId, result)
59
59
  primaryWorkflows: result.primaryWorkflows,
60
60
  screenshots: result.screenshots.slice(0, 5),
61
61
  };
62
+ // Strip base64 screenshots from upload — they balloon the payload and
63
+ // aren't needed for test case generation.
64
+ const appMapNoScreenshots = {
65
+ ...appMap,
66
+ pages: appMap.pages.map((p) => ({ ...p, screenshot: undefined })),
67
+ screenshots: [],
68
+ };
62
69
  const res = await fetch(`${apiUrl}/api/cli/projects/${projectId}/vision-discovery`, {
63
70
  method: "POST",
64
71
  headers: { "Content-Type": "application/json", ...authHeaders(cliToken) },
65
72
  body: JSON.stringify({
66
- appMap,
73
+ appMap: appMapNoScreenshots,
67
74
  totalPages: result.pages.length,
68
75
  totalElements: result.totalElements,
69
76
  primaryWorkflows: result.primaryWorkflows,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qazen-cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "QAZen CLI — capture authenticated browser sessions for enterprise SSO testing",
5
5
  "license": "MIT",
6
6
  "author": "QAZen",