jev-compare 0.1.0 → 0.1.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 +16 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -345,6 +345,22 @@ pnpm test # 单元测试(不访问网络)
|
|
|
345
345
|
pnpm test:e2e # 用 test/ 里的图片调用真实 API(读取 .env 中的 JEV_KEY)
|
|
346
346
|
```
|
|
347
347
|
|
|
348
|
+
## 发布(维护者)
|
|
349
|
+
|
|
350
|
+
推送版本 tag 会通过 GitHub Actions 自动发布到 npm(`.github/workflows/release.yml`),使用 npm trusted publishing,不需要保存任何 npm token,并自动附带 provenance 证明:
|
|
351
|
+
|
|
352
|
+
```sh
|
|
353
|
+
npm version patch # 或 minor / major;预发布用 npm version prerelease --preid beta
|
|
354
|
+
git push --follow-tags # 推送 v* tag 触发发布
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
- tag 必须和 `package.json` 的版本一致,否则发布失败。
|
|
358
|
+
- 带 `-` 的预发布版本(如 `v0.2.0-beta.1`)发布到 `next` 标签,不影响 `latest`。
|
|
359
|
+
- 发布前会跑类型检查和单元测试;仓库设置了 `JEV_KEY` secret 时还会跑调用真实 API 的端到端测试。
|
|
360
|
+
- 发布成功后自动创建 GitHub Release。
|
|
361
|
+
|
|
362
|
+
每次推送到 `main` 和每个 PR 都会跑 CI(`.github/workflows/ci.yml`):Node 22 / 24 下的类型检查、单元测试,以及 publint、arethetypeswrong 包检查。
|
|
363
|
+
|
|
348
364
|
## License
|
|
349
365
|
|
|
350
366
|
MIT
|
package/dist/index.cjs
CHANGED
|
@@ -533,7 +533,7 @@ async function writeReport(result, reference, candidate, options) {
|
|
|
533
533
|
createdAt: createdAt.toISOString(),
|
|
534
534
|
tool: {
|
|
535
535
|
name: "jev-compare",
|
|
536
|
-
version: "0.1.
|
|
536
|
+
version: "0.1.1"
|
|
537
537
|
},
|
|
538
538
|
inputs: {
|
|
539
539
|
reference: inputRecord(reference, refHash, refFile),
|
package/dist/index.mjs
CHANGED
|
@@ -532,7 +532,7 @@ async function writeReport(result, reference, candidate, options) {
|
|
|
532
532
|
createdAt: createdAt.toISOString(),
|
|
533
533
|
tool: {
|
|
534
534
|
name: "jev-compare",
|
|
535
|
-
version: "0.1.
|
|
535
|
+
version: "0.1.1"
|
|
536
536
|
},
|
|
537
537
|
inputs: {
|
|
538
538
|
reference: inputRecord(reference, refHash, refFile),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jev-compare",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "AI visual image comparison for UI review: a 1–10 similarity score, located differences with bounding boxes, and fix suggestions. Built on the TypeSafe AI (Jev) SDK.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"image",
|
|
@@ -79,5 +79,6 @@
|
|
|
79
79
|
"rolldown": "^1.2.14",
|
|
80
80
|
"rolldown-plugin-dts": "^0.28.8",
|
|
81
81
|
"typescript": "^5.9.0"
|
|
82
|
-
}
|
|
82
|
+
},
|
|
83
|
+
"packageManager": "pnpm@10.6.3"
|
|
83
84
|
}
|