@wix/pathgrade 1.0.35 → 1.0.37
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.
|
@@ -28,19 +28,34 @@ export function pathgrade(opts) {
|
|
|
28
28
|
}
|
|
29
29
|
return {
|
|
30
30
|
name: 'pathgrade',
|
|
31
|
+
enforce: 'post',
|
|
31
32
|
// Surface the user's options to pre-vitest CLI commands
|
|
32
33
|
// (`pathgrade affected`, `pathgrade run --changed`) so they can
|
|
33
34
|
// read `affected.global` after loading vitest.config.ts.
|
|
34
35
|
// See `src/affected/config.ts`.
|
|
35
36
|
__pathgradeOptions: opts ?? {},
|
|
36
|
-
config() {
|
|
37
|
+
config(config = {}) {
|
|
38
|
+
const root = config.root ?? process.cwd();
|
|
39
|
+
const include = [
|
|
40
|
+
...(config.test?.include ?? []),
|
|
41
|
+
...(opts?.include ?? DEFAULT_EVAL_INCLUDE),
|
|
42
|
+
];
|
|
43
|
+
const exclude = [
|
|
44
|
+
...(config.test?.exclude ?? []),
|
|
45
|
+
...(opts?.exclude ?? DEFAULT_EVAL_EXCLUDE),
|
|
46
|
+
];
|
|
47
|
+
if (config.test) {
|
|
48
|
+
// Vite concatenates config arrays, so clear the input patterns before returning the canonical list.
|
|
49
|
+
config.test.include = [];
|
|
50
|
+
config.test.exclude = [];
|
|
51
|
+
}
|
|
37
52
|
return {
|
|
38
53
|
resolve: {
|
|
39
54
|
alias: resolveLocalAliases(),
|
|
40
55
|
},
|
|
41
56
|
test: {
|
|
42
|
-
include:
|
|
43
|
-
exclude
|
|
57
|
+
include: discoverPathgradeEvalFiles({ cwd: root, include, exclude }),
|
|
58
|
+
exclude,
|
|
44
59
|
testTimeout: (timeoutSec + 30) * 1000,
|
|
45
60
|
setupFiles: [resolveSetupFile()],
|
|
46
61
|
reporters: [
|
|
@@ -50,16 +65,6 @@ export function pathgrade(opts) {
|
|
|
50
65
|
},
|
|
51
66
|
};
|
|
52
67
|
},
|
|
53
|
-
configResolved(resolved) {
|
|
54
|
-
const root = resolved.root ?? process.cwd();
|
|
55
|
-
const include = resolved.test?.include ?? opts?.include ?? DEFAULT_EVAL_INCLUDE;
|
|
56
|
-
const exclude = resolved.test?.exclude ?? opts?.exclude ?? DEFAULT_EVAL_EXCLUDE;
|
|
57
|
-
const discovered = discoverPathgradeEvalFiles({ cwd: root, include, exclude });
|
|
58
|
-
if (!resolved.test) {
|
|
59
|
-
resolved.test = {};
|
|
60
|
-
}
|
|
61
|
-
resolved.test.include = discovered;
|
|
62
|
-
},
|
|
63
68
|
};
|
|
64
69
|
}
|
|
65
70
|
/**
|
|
@@ -2,7 +2,7 @@ const TOKEN_KEYS = [
|
|
|
2
2
|
'totalTokens', 'inputTokens', 'cachedInputTokens',
|
|
3
3
|
'cacheWriteInputTokens', 'outputTokens', 'reasoningOutputTokens',
|
|
4
4
|
];
|
|
5
|
-
|
|
5
|
+
const WIX_CODEX_USD_PER_CREDIT = 0.034;
|
|
6
6
|
const USAGE_READ_FALLBACK_TIMEOUT_MS = 5_000;
|
|
7
7
|
export class CodexTurnUsageAccounting {
|
|
8
8
|
baseline;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/pathgrade",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.37",
|
|
4
4
|
"packageManager": "yarn@4.12.0",
|
|
5
5
|
"description": "Evaluate whether AI agents discover and use your skills correctly",
|
|
6
6
|
"exports": {
|
|
@@ -141,5 +141,5 @@
|
|
|
141
141
|
"typescript": "^5.9.3",
|
|
142
142
|
"zod": "4.3.6"
|
|
143
143
|
},
|
|
144
|
-
"falconPackageHash": "
|
|
144
|
+
"falconPackageHash": "f09fc542f60a4327a1e66eed12cb32899949f10edc82ae397902743f"
|
|
145
145
|
}
|