llm-testrunner-components 1.2.1 → 1.2.2
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/cjs/index.cjs.js +5 -2
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/llm-testrunner.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/llm-test-runner/llm-test-runner.js +33 -1
- package/dist/collection/components/llm-test-runner/llm-test-runner.js.map +1 -1
- package/dist/collection/lib/test-cases/test-case-factory.js +1 -1
- package/dist/collection/lib/test-cases/test-case-factory.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/llm-test-runner.js +1 -1
- package/dist/components/{p-JPMPoOC8.js → p-CJBscebi.js} +3 -3
- package/dist/components/p-CJBscebi.js.map +1 -0
- package/dist/esm/index.js +5 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/llm-testrunner.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/llm-testrunner/index.esm.js +2 -2
- package/dist/llm-testrunner/index.esm.js.map +1 -1
- package/dist/llm-testrunner/llm-testrunner.esm.js +1 -1
- package/dist/types/components/llm-test-runner/llm-test-runner.d.ts +1 -0
- package/dist/types/components.d.ts +3 -0
- package/package.json +5 -1
- package/dist/components/p-JPMPoOC8.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-DxzhGhec.js";export{s as setNonce}from"./p-DxzhGhec.js";import{g as a}from"./p-GQwFOmwJ.js";var r=()=>{const s=import.meta.url;const t={};if(s!==""){t.resourcesUrl=new URL(".",s).href}return e(t)};r().then((async e=>{await a();return t([["p-2cc09217",[[513,"llm-test-runner",{delayMs:[2,"delay-ms"],useSave:[4,"use-save"],usePromptEditor:[4,"use-prompt-editor"],initialTestCases:[16],defaultExpectedOutcomeSchema:[16],testCases:[32],isRunningAll:[32],error:[32],isExportingTestSuite:[32],isExportingTestResults:[32],isSaving:[32],resetSavingState:[64]}],[513,"app-chips",{value:[16],config:[16]}],[513,"app-select",{value:[1],config:[16]}],[513,"app-textarea",{value:[1],config:[16]}]]]],e)}));
|
|
1
|
+
import{p as e,b as t}from"./p-DxzhGhec.js";export{s as setNonce}from"./p-DxzhGhec.js";import{g as a}from"./p-GQwFOmwJ.js";var r=()=>{const s=import.meta.url;const t={};if(s!==""){t.resourcesUrl=new URL(".",s).href}return e(t)};r().then((async e=>{await a();return t([["p-2cc09217",[[513,"llm-test-runner",{delayMs:[2,"delay-ms"],useSave:[4,"use-save"],usePromptEditor:[4,"use-prompt-editor"],initialTestCases:[16],defaultExpectedOutcomeSchema:[16],testCases:[32],isRunningAll:[32],error:[32],isExportingTestSuite:[32],isExportingTestResults:[32],isSaving:[32],resetSavingState:[64],getTestCases:[64]}],[513,"app-chips",{value:[16],config:[16]}],[513,"app-select",{value:[1],config:[16]}],[513,"app-textarea",{value:[1],config:[16]}]]]],e)}));
|
|
2
2
|
//# sourceMappingURL=llm-testrunner.esm.js.map
|
|
@@ -20,6 +20,7 @@ export declare class LLMTestRunner {
|
|
|
20
20
|
componentDidLoad(): void;
|
|
21
21
|
disconnectedCallback(): void;
|
|
22
22
|
resetSavingState(): Promise<void>;
|
|
23
|
+
getTestCases(): Promise<TestCase[]>;
|
|
23
24
|
private handleTestCaseChange;
|
|
24
25
|
private addNewTestCase;
|
|
25
26
|
private updateTestCase;
|
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { ChipsConfig, SelectConfig, TextAreaConfig } from "./lib/form/schema";
|
|
9
9
|
import { ExpectedOutcomeSchema, LLMRequestPayload, SavePayload, TestCase } from "./types/llm-test-runner";
|
|
10
|
+
import { EvaluationResult } from "./lib/evaluation/types";
|
|
10
11
|
export { ChipsConfig, SelectConfig, TextAreaConfig } from "./lib/form/schema";
|
|
11
12
|
export { ExpectedOutcomeSchema, LLMRequestPayload, SavePayload, TestCase } from "./types/llm-test-runner";
|
|
13
|
+
export { EvaluationResult } from "./lib/evaluation/types";
|
|
12
14
|
export namespace Components {
|
|
13
15
|
interface AppChips {
|
|
14
16
|
"config": ChipsConfig;
|
|
@@ -31,6 +33,7 @@ export namespace Components {
|
|
|
31
33
|
* @default 500
|
|
32
34
|
*/
|
|
33
35
|
"delayMs"?: number;
|
|
36
|
+
"getTestCases": () => Promise<TestCase[]>;
|
|
34
37
|
"initialTestCases"?: TestCase[];
|
|
35
38
|
"resetSavingState": () => Promise<void>;
|
|
36
39
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "llm-testrunner-components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "A Stencil web component library for LLM test runner functionality",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
"./react/types": {
|
|
18
18
|
"types": "./dist/types/index.d.ts"
|
|
19
19
|
},
|
|
20
|
+
"./schema": {
|
|
21
|
+
"import": "./dist/collection/schemas/expected-outcome.js",
|
|
22
|
+
"types": "./dist/types/schemas/expected-outcome.d.ts"
|
|
23
|
+
},
|
|
20
24
|
"././dist/components/*": {
|
|
21
25
|
"import": "./dist/components/*",
|
|
22
26
|
"require": "./dist/components/*",
|