visual-ai-assertions 0.2.0 → 0.4.0
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 +2 -3
- package/package.json +18 -36
package/README.md
CHANGED
|
@@ -5,12 +5,11 @@ AI-powered visual assertions for E2E tests. Send screenshots to Claude, GPT, or
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
# Install the library
|
|
8
|
+
# Install the library (includes OpenAI SDK by default)
|
|
9
9
|
npm install visual-ai-assertions
|
|
10
10
|
|
|
11
|
-
#
|
|
11
|
+
# Optional: install additional provider SDKs
|
|
12
12
|
npm install @anthropic-ai/sdk # for Claude
|
|
13
|
-
npm install openai # for GPT
|
|
14
13
|
npm install @google/genai # for Gemini
|
|
15
14
|
|
|
16
15
|
# Zod is a peer dependency
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "visual-ai-assertions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "AI-powered visual assertions for E2E tests — send screenshots to Claude, GPT, or Gemini and get structured results",
|
|
5
5
|
"author": "Risko Ruus",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/
|
|
8
|
+
"url": "git+https://github.com/nullp2ike/visual-reasoning.git"
|
|
9
9
|
},
|
|
10
|
-
"homepage": "https://github.com/
|
|
10
|
+
"homepage": "https://github.com/nullp2ike/visual-reasoning#readme",
|
|
11
11
|
"bugs": {
|
|
12
|
-
"url": "https://github.com/
|
|
12
|
+
"url": "https://github.com/nullp2ike/visual-reasoning/issues"
|
|
13
13
|
},
|
|
14
14
|
"type": "module",
|
|
15
15
|
"sideEffects": false,
|
|
@@ -34,36 +34,13 @@
|
|
|
34
34
|
"engines": {
|
|
35
35
|
"node": ">=18"
|
|
36
36
|
},
|
|
37
|
-
"scripts": {
|
|
38
|
-
"build": "tsup",
|
|
39
|
-
"test": "vitest run",
|
|
40
|
-
"test:watch": "vitest",
|
|
41
|
-
"test:ci": "vitest run --coverage",
|
|
42
|
-
"test:smoke": "vitest run --config vitest.config.smoke.ts",
|
|
43
|
-
"lint": "eslint .",
|
|
44
|
-
"format": "prettier --write .",
|
|
45
|
-
"format:check": "prettier --check .",
|
|
46
|
-
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.typecheck.json",
|
|
47
|
-
"prepare": "husky"
|
|
48
|
-
},
|
|
49
37
|
"peerDependencies": {
|
|
50
|
-
"@anthropic-ai/sdk": ">=0.30.0",
|
|
51
|
-
"@google/genai": ">=0.1.0",
|
|
52
|
-
"openai": ">=4.60.0",
|
|
53
38
|
"zod": "^3.22.0"
|
|
54
39
|
},
|
|
55
|
-
"peerDependenciesMeta": {
|
|
56
|
-
"@anthropic-ai/sdk": {
|
|
57
|
-
"optional": true
|
|
58
|
-
},
|
|
59
|
-
"openai": {
|
|
60
|
-
"optional": true
|
|
61
|
-
},
|
|
62
|
-
"@google/genai": {
|
|
63
|
-
"optional": true
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
40
|
"dependencies": {
|
|
41
|
+
"@anthropic-ai/sdk": ">=0.30.0",
|
|
42
|
+
"@google/genai": ">=0.1.0",
|
|
43
|
+
"openai": ">=4.60.0",
|
|
67
44
|
"sharp": "^0.33.0"
|
|
68
45
|
},
|
|
69
46
|
"devDependencies": {
|
|
@@ -103,10 +80,15 @@
|
|
|
103
80
|
"gemini"
|
|
104
81
|
],
|
|
105
82
|
"license": "MIT",
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
83
|
+
"scripts": {
|
|
84
|
+
"build": "tsup",
|
|
85
|
+
"test": "vitest run",
|
|
86
|
+
"test:watch": "vitest",
|
|
87
|
+
"test:ci": "vitest run --coverage",
|
|
88
|
+
"test:smoke": "vitest run --config vitest.config.smoke.ts",
|
|
89
|
+
"lint": "eslint .",
|
|
90
|
+
"format": "prettier --write .",
|
|
91
|
+
"format:check": "prettier --check .",
|
|
92
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.typecheck.json"
|
|
111
93
|
}
|
|
112
|
-
}
|
|
94
|
+
}
|