@lunora/testing 1.0.0-alpha.90 → 1.0.0-alpha.92
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/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -278,7 +278,7 @@ type InlineActionFunction<R> = (context: ActionCtx) => Promise<R> | R;
|
|
|
278
278
|
* The value type uses `any` because `RegisteredFunction` is contravariant in its
|
|
279
279
|
* args type parameter — a `RegisteredMutation` with concrete args is not assignable
|
|
280
280
|
* to `RegisteredMutation` with `ArgsValidator` at the type level even though at
|
|
281
|
-
* runtime it is sound (the fake scheduler passes `Record
|
|
281
|
+
* runtime it is sound (the fake scheduler passes `Record<string, unknown>` to
|
|
282
282
|
* `handler` and ignores the return value).
|
|
283
283
|
*/
|
|
284
284
|
type FunctionRegistry = Record<string, RegisteredAction<any, any> | RegisteredMutation<any, any> | RegisteredQuery<any, any>>;
|
|
@@ -560,7 +560,7 @@ declare const exactMatchScorer: () => Scorer;
|
|
|
560
560
|
/** Score the fraction of `keywords` (case-insensitive) present in the output. */
|
|
561
561
|
declare const keywordScorer: (keywords: ReadonlyArray<string>) => Scorer;
|
|
562
562
|
/**
|
|
563
|
-
* An LLM-as-judge scorer. `judge` is INJECTED — a `(prompt) => Promise
|
|
563
|
+
* An LLM-as-judge scorer. `judge` is INJECTED — a `(prompt) => Promise<string>`
|
|
564
564
|
* you wire to your model (e.g. via `ctx.ai` / `generateText`), so this module
|
|
565
565
|
* stays model-agnostic and the judge is mockable in tests. It returns the model's
|
|
566
566
|
* numeric verdict (`[0, 1]`) plus its reason.
|
package/dist/index.d.ts
CHANGED
|
@@ -278,7 +278,7 @@ type InlineActionFunction<R> = (context: ActionCtx) => Promise<R> | R;
|
|
|
278
278
|
* The value type uses `any` because `RegisteredFunction` is contravariant in its
|
|
279
279
|
* args type parameter — a `RegisteredMutation` with concrete args is not assignable
|
|
280
280
|
* to `RegisteredMutation` with `ArgsValidator` at the type level even though at
|
|
281
|
-
* runtime it is sound (the fake scheduler passes `Record
|
|
281
|
+
* runtime it is sound (the fake scheduler passes `Record<string, unknown>` to
|
|
282
282
|
* `handler` and ignores the return value).
|
|
283
283
|
*/
|
|
284
284
|
type FunctionRegistry = Record<string, RegisteredAction<any, any> | RegisteredMutation<any, any> | RegisteredQuery<any, any>>;
|
|
@@ -560,7 +560,7 @@ declare const exactMatchScorer: () => Scorer;
|
|
|
560
560
|
/** Score the fraction of `keywords` (case-insensitive) present in the output. */
|
|
561
561
|
declare const keywordScorer: (keywords: ReadonlyArray<string>) => Scorer;
|
|
562
562
|
/**
|
|
563
|
-
* An LLM-as-judge scorer. `judge` is INJECTED — a `(prompt) => Promise
|
|
563
|
+
* An LLM-as-judge scorer. `judge` is INJECTED — a `(prompt) => Promise<string>`
|
|
564
564
|
* you wire to your model (e.g. via `ctx.ai` / `generateText`), so this module
|
|
565
565
|
* stays model-agnostic and the judge is mockable in tests. It returns the model's
|
|
566
566
|
* numeric verdict (`[0, 1]`) plus its reason.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/testing",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.92",
|
|
4
4
|
"description": "Testing toolkit for Lunora: an in-memory harness for queries, mutations, and actions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@lunora/agent": "1.0.0-alpha.
|
|
54
|
-
"@lunora/errors": "1.0.0-alpha.
|
|
55
|
-
"@lunora/mail": "1.0.0-alpha.
|
|
56
|
-
"@lunora/server": "1.0.0-alpha.
|
|
57
|
-
"@lunora/shard-engine": "1.0.0-alpha.
|
|
53
|
+
"@lunora/agent": "1.0.0-alpha.41",
|
|
54
|
+
"@lunora/errors": "1.0.0-alpha.14",
|
|
55
|
+
"@lunora/mail": "1.0.0-alpha.41",
|
|
56
|
+
"@lunora/server": "1.0.0-alpha.62",
|
|
57
|
+
"@lunora/shard-engine": "1.0.0-alpha.12"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@playwright/test": "^1.61.1"
|