@xyit/wellspring 1.1.0 → 1.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/package.json +5 -1
- package/scripts/run-tests.mjs +11 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyit/wellspring",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Wellspring 源泉 —— 插件式 Agent 平台与 CLI(Plugin-based AI agent platform and CLI)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
],
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"author": "xyit-team",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/xyit-team/wellspring.git"
|
|
18
|
+
},
|
|
15
19
|
"bin": {
|
|
16
20
|
"wellspring": "./dist/index.js"
|
|
17
21
|
},
|
package/scripts/run-tests.mjs
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { spawnSync } from "node:child_process"
|
|
9
9
|
import { readdirSync } from "node:fs"
|
|
10
|
-
import { join } from "node:path"
|
|
10
|
+
import { join, relative } from "node:path"
|
|
11
11
|
import { fileURLToPath } from "node:url"
|
|
12
12
|
|
|
13
13
|
const TEST_ROOT = fileURLToPath(new URL("../test/", import.meta.url))
|
|
@@ -25,7 +25,16 @@ function collect(dir) {
|
|
|
25
25
|
return files
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
const
|
|
28
|
+
const skipped = (process.env["WELLSPRING_TEST_SKIP"] ?? "")
|
|
29
|
+
.split(",")
|
|
30
|
+
.map((item) => item.trim())
|
|
31
|
+
.filter((item) => item !== "")
|
|
32
|
+
const files = collect(TEST_ROOT)
|
|
33
|
+
.sort()
|
|
34
|
+
.filter((file) => {
|
|
35
|
+
const rel = relative(process.cwd(), file).split("\\").join("/")
|
|
36
|
+
return !skipped.some((item) => rel === item || file.endsWith(item))
|
|
37
|
+
})
|
|
29
38
|
if (files.length === 0) {
|
|
30
39
|
console.error("没有找到测试文件")
|
|
31
40
|
process.exit(1)
|