@wix/pathgrade 1.0.3 → 1.0.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.
package/dist/sdk/lifecycle.js
CHANGED
|
@@ -72,6 +72,9 @@ function recordResult(result, agent, attribution) {
|
|
|
72
72
|
meta: {
|
|
73
73
|
score: result.score,
|
|
74
74
|
scorers: result.scorers,
|
|
75
|
+
...(result.evaluationDefinitionKey
|
|
76
|
+
? { evaluationDefinitionKey: result.evaluationDefinitionKey }
|
|
77
|
+
: {}),
|
|
75
78
|
trial: result.trial,
|
|
76
79
|
resultKind: result.resultKind ?? 'evaluated',
|
|
77
80
|
...(result.scoringDurationMs !== undefined
|
|
@@ -39,7 +39,7 @@ export function emitEvalResult(event) {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
export function resetUserResultObservers() {
|
|
42
|
-
for (const subscription of
|
|
42
|
+
for (const subscription of observers) {
|
|
43
43
|
if (subscription.owner === 'user') {
|
|
44
44
|
observers.delete(subscription);
|
|
45
45
|
}
|
|
@@ -49,7 +49,7 @@ export function resetAllResultObserversForTests() {
|
|
|
49
49
|
observers.clear();
|
|
50
50
|
}
|
|
51
51
|
function removeObserverByOwnerAndKey(owner, key) {
|
|
52
|
-
for (const subscription of
|
|
52
|
+
for (const subscription of observers) {
|
|
53
53
|
if (subscription.owner === owner && subscription.key === key) {
|
|
54
54
|
observers.delete(subscription);
|
|
55
55
|
}
|
package/dist/sdk/types.d.ts
CHANGED
|
@@ -367,6 +367,8 @@ export interface ScorerResultEntry {
|
|
|
367
367
|
export interface PathgradeTestMeta {
|
|
368
368
|
score: number;
|
|
369
369
|
scorers: ScorerResultEntry[];
|
|
370
|
+
/** Stable identity for this evaluation definition across separate runs. */
|
|
371
|
+
evaluationDefinitionKey?: string;
|
|
370
372
|
trial?: TrialResult;
|
|
371
373
|
diagnostics?: DiagnosticsReport;
|
|
372
374
|
resultKind?: EvaluationResultKind;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/pathgrade",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"packageManager": "yarn@4.12.0",
|
|
5
5
|
"description": "Evaluate whether AI agents discover and use your skills correctly",
|
|
6
6
|
"exports": {
|
|
@@ -126,5 +126,5 @@
|
|
|
126
126
|
"typescript": "^5.9.3",
|
|
127
127
|
"zod": "4.3.6"
|
|
128
128
|
},
|
|
129
|
-
"falconPackageHash": "
|
|
129
|
+
"falconPackageHash": "112cde138733c678a01778b225c1b3891d22417d98bbf2c479f8734c"
|
|
130
130
|
}
|