@lesliechan721/agent-skill-eval 0.1.0-beta.4 → 0.1.0-beta.41
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/bin.js +167 -39
- package/dist/bin.js.map +1 -1
- package/dist/codex-eval-app-server.d.ts +208 -0
- package/dist/codex-eval-app-server.js +1382 -0
- package/dist/codex-eval-app-server.js.map +1 -0
- package/dist/codex-eval-cases.d.ts +43 -0
- package/dist/codex-eval-cases.js +329 -0
- package/dist/codex-eval-cases.js.map +1 -0
- package/dist/codex-eval-isolation.d.ts +79 -0
- package/dist/codex-eval-isolation.js +420 -0
- package/dist/codex-eval-isolation.js.map +1 -0
- package/dist/codex-eval-process-tree.d.ts +42 -0
- package/dist/codex-eval-process-tree.js +860 -0
- package/dist/codex-eval-process-tree.js.map +1 -0
- package/dist/codex-eval-runtime-config.d.ts +43 -0
- package/dist/codex-eval-runtime-config.js +607 -0
- package/dist/codex-eval-runtime-config.js.map +1 -0
- package/dist/codex-trigger-eval.d.ts +84 -0
- package/dist/codex-trigger-eval.js +807 -0
- package/dist/codex-trigger-eval.js.map +1 -0
- package/dist/codex-workflow-evaluation.d.ts +91 -0
- package/dist/codex-workflow-evaluation.js +309 -0
- package/dist/codex-workflow-evaluation.js.map +1 -0
- package/dist/codex-workflow-fixtures.d.ts +37 -0
- package/dist/codex-workflow-fixtures.js +144 -0
- package/dist/codex-workflow-fixtures.js.map +1 -0
- package/dist/codex-workflow.d.ts +224 -0
- package/dist/codex-workflow.js +2198 -0
- package/dist/codex-workflow.js.map +1 -0
- package/dist/credentials.d.ts +5 -0
- package/dist/credentials.js +30 -0
- package/dist/credentials.js.map +1 -0
- package/dist/custom-process.d.ts +60 -0
- package/dist/custom-process.js +424 -0
- package/dist/custom-process.js.map +1 -0
- package/dist/eval-audit.d.ts +38 -0
- package/dist/eval-audit.js +71 -0
- package/dist/eval-audit.js.map +1 -0
- package/dist/eval-file.d.ts +9 -0
- package/dist/eval-file.js +15 -0
- package/dist/eval-file.js.map +1 -0
- package/dist/eval-process-management.d.ts +22 -0
- package/dist/eval-process-management.js +90 -0
- package/dist/eval-process-management.js.map +1 -0
- package/dist/eval-result.d.ts +79 -0
- package/dist/eval-result.js +144 -0
- package/dist/eval-result.js.map +1 -0
- package/dist/eval-run.d.ts +27 -0
- package/dist/eval-run.js +566 -0
- package/dist/eval-run.js.map +1 -0
- package/dist/eval-spec.d.ts +57 -0
- package/dist/eval-spec.js +120 -0
- package/dist/eval-spec.js.map +1 -0
- package/dist/eval-suite-binding.d.ts +4 -0
- package/dist/eval-suite-binding.js +19 -0
- package/dist/eval-suite-binding.js.map +1 -0
- package/dist/index.d.ts +44 -10
- package/dist/index.js +22 -6
- package/dist/index.js.map +1 -1
- package/dist/instruction-v2.d.ts +53 -0
- package/dist/instruction-v2.js +169 -0
- package/dist/instruction-v2.js.map +1 -0
- package/dist/json-schema.js +84 -5
- package/dist/json-schema.js.map +1 -1
- package/dist/output-path.js +2 -2
- package/dist/process-tree.d.ts +53 -1
- package/dist/process-tree.js +931 -160
- package/dist/process-tree.js.map +1 -1
- package/dist/process.d.ts +2 -2
- package/dist/process.js +99 -34
- package/dist/process.js.map +1 -1
- package/dist/provider-doctor.d.ts +46 -0
- package/dist/provider-doctor.js +120 -0
- package/dist/provider-doctor.js.map +1 -0
- package/dist/providers.d.ts +85 -0
- package/dist/providers.js +685 -0
- package/dist/providers.js.map +1 -0
- package/dist/run-paths.d.ts +8 -0
- package/dist/run-paths.js +71 -0
- package/dist/run-paths.js.map +1 -0
- package/dist/runtime-skill.d.ts +6 -0
- package/dist/runtime-skill.js +87 -3
- package/dist/runtime-skill.js.map +1 -1
- package/dist/schemas/digests.json +7 -3
- package/dist/schemas/eval-audit.schema.json +64 -0
- package/dist/schemas/eval-result.schema.json +232 -0
- package/dist/schemas/eval-spec.schema.json +109 -0
- package/dist/schemas/instruction-v2-receipt.schema.json +24 -0
- package/dist/schemas/instruction-v2-request.schema.json +51 -0
- package/dist/schemas/workflow-evaluation.schema.json +38 -0
- package/dist/schemas/workflow-fixture-action.schema.json +15 -0
- package/dist/schemas.d.ts +1 -3
- package/dist/schemas.js +22 -20
- package/dist/schemas.js.map +1 -1
- package/dist/selected-cases.d.ts +30 -0
- package/dist/selected-cases.js +388 -0
- package/dist/selected-cases.js.map +1 -0
- package/dist/types.d.ts +2 -34
- package/dist/windows-job.d.ts +26 -0
- package/dist/windows-job.js +97 -0
- package/dist/windows-job.js.map +1 -0
- package/package.json +17 -3
- package/dist/bundle.d.ts +0 -93
- package/dist/bundle.js +0 -216
- package/dist/bundle.js.map +0 -1
- package/dist/capabilities.d.ts +0 -2
- package/dist/capabilities.js +0 -38
- package/dist/capabilities.js.map +0 -1
- package/dist/plan.d.ts +0 -79
- package/dist/plan.js +0 -285
- package/dist/plan.js.map +0 -1
- package/dist/run.d.ts +0 -2
- package/dist/run.js +0 -592
- package/dist/run.js.map +0 -1
- package/dist/schemas/aw-skill-eval-execution-plan.schema.json +0 -220
- package/dist/schemas/eval-run-bundle.schema.json +0 -408
- package/dist/schemas/eval-runtime-capabilities.schema.json +0 -85
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-skill-eval.invalid/schemas/eval-spec.schema.json",
|
|
4
|
+
"title": "EvalSpec",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["version", "source", "workspace", "target", "cases", "provider", "runs", "timeoutMs", "baseline", "outputDir"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"version": { "const": 1 },
|
|
9
|
+
"source": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"required": ["plugin", "skill", "suite", "profile"],
|
|
12
|
+
"properties": {
|
|
13
|
+
"plugin": { "type": "string", "minLength": 1 },
|
|
14
|
+
"skill": { "type": "string", "minLength": 1 },
|
|
15
|
+
"suite": { "type": "string", "minLength": 1 },
|
|
16
|
+
"profile": { "type": "string", "minLength": 1 }
|
|
17
|
+
},
|
|
18
|
+
"additionalProperties": false
|
|
19
|
+
},
|
|
20
|
+
"workspace": { "$ref": "#/$defs/pathDigest" },
|
|
21
|
+
"target": { "$ref": "#/$defs/pathDigest" },
|
|
22
|
+
"cases": { "$ref": "#/$defs/pathDigest" },
|
|
23
|
+
"provider": {
|
|
24
|
+
"oneOf": [
|
|
25
|
+
{ "enum": ["codex-trigger", "codex-conversation"] },
|
|
26
|
+
{
|
|
27
|
+
"type": "object",
|
|
28
|
+
"required": ["type", "command"],
|
|
29
|
+
"properties": {
|
|
30
|
+
"type": { "const": "custom-process" },
|
|
31
|
+
"command": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"minItems": 1,
|
|
34
|
+
"items": { "type": "string", "minLength": 1 }
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"additionalProperties": false
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "object",
|
|
41
|
+
"required": ["type", "command", "allowedModels"],
|
|
42
|
+
"properties": {
|
|
43
|
+
"type": { "const": "codex-workflow" },
|
|
44
|
+
"command": {
|
|
45
|
+
"type": "array",
|
|
46
|
+
"minItems": 1,
|
|
47
|
+
"items": { "type": "string", "minLength": 1 }
|
|
48
|
+
},
|
|
49
|
+
"allowedModels": {
|
|
50
|
+
"type": "array",
|
|
51
|
+
"items": { "type": "string", "minLength": 1 },
|
|
52
|
+
"uniqueItems": true
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"additionalProperties": false
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"runs": { "type": "integer", "minimum": 1 },
|
|
60
|
+
"timeoutMs": { "type": "integer", "minimum": 1 },
|
|
61
|
+
"baseline": {
|
|
62
|
+
"oneOf": [
|
|
63
|
+
{
|
|
64
|
+
"type": "object",
|
|
65
|
+
"required": ["type"],
|
|
66
|
+
"properties": { "type": { "const": "none" } },
|
|
67
|
+
"additionalProperties": false
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "object",
|
|
71
|
+
"required": ["type"],
|
|
72
|
+
"properties": { "type": { "const": "without-skill" } },
|
|
73
|
+
"additionalProperties": false
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "object",
|
|
77
|
+
"required": ["type", "target"],
|
|
78
|
+
"properties": {
|
|
79
|
+
"type": { "const": "previous-version" },
|
|
80
|
+
"target": { "$ref": "#/$defs/pathDigest" }
|
|
81
|
+
},
|
|
82
|
+
"additionalProperties": false
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
"outputDir": { "$ref": "#/$defs/relativePath" }
|
|
87
|
+
},
|
|
88
|
+
"$defs": {
|
|
89
|
+
"digest": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
92
|
+
},
|
|
93
|
+
"relativePath": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"minLength": 1,
|
|
96
|
+
"pattern": "^(?![\\\\/])(?![A-Za-z]:[\\\\/])(?!.*(?:^|[\\\\/])\\.\\.(?:[\\\\/]|$)).+"
|
|
97
|
+
},
|
|
98
|
+
"pathDigest": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"required": ["path", "digest"],
|
|
101
|
+
"properties": {
|
|
102
|
+
"path": { "$ref": "#/$defs/relativePath" },
|
|
103
|
+
"digest": { "$ref": "#/$defs/digest" }
|
|
104
|
+
},
|
|
105
|
+
"additionalProperties": false
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"additionalProperties": false
|
|
109
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://aw.dev/schemas/instruction-v2-receipt.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["protocolVersion", "outcome", "instructionChannel", "instructionsRevision"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"protocolVersion": { "const": 2 },
|
|
9
|
+
"outcome": { "enum": ["completed", "failed", "cancelled", "unknown"] },
|
|
10
|
+
"instructionChannel": { "enum": ["system", "developer", "equivalent-config", "user-prefix"] },
|
|
11
|
+
"instructionsRevision": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
12
|
+
"providerSessionId": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
13
|
+
"actualModel": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
14
|
+
"providerTerminal": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
15
|
+
"traceFile": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
16
|
+
"adapter": { "type": "object" },
|
|
17
|
+
"usage": {},
|
|
18
|
+
"generationStarted": { "type": "boolean" },
|
|
19
|
+
"localExitCode": { "type": ["integer", "null"], "minimum": 0 },
|
|
20
|
+
"code": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
21
|
+
"scopeViolation": { "type": "boolean" },
|
|
22
|
+
"remoteStopConfirmed": { "const": false }
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://aw.dev/schemas/instruction-v2-request.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["protocolVersion", "run", "instructions", "task", "materials"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"protocolVersion": { "const": 2 },
|
|
9
|
+
"run": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"additionalProperties": false,
|
|
12
|
+
"required": ["id", "mode", "access", "configRevision"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"id": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
15
|
+
"mode": { "enum": ["workspace", "bundle"] },
|
|
16
|
+
"access": { "enum": ["read-only", "workspace-write"] },
|
|
17
|
+
"configRevision": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
18
|
+
"model": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
19
|
+
"reasoningEffort": { "enum": ["minimal", "low", "medium", "high", "xhigh", "max"] },
|
|
20
|
+
"requiredIsolation": { "type": "boolean" },
|
|
21
|
+
"workspace": { "type": "string", "minLength": 1, "maxLength": 4096 }
|
|
22
|
+
},
|
|
23
|
+
"allOf": [{ "if": { "properties": { "mode": { "const": "bundle" } } }, "then": { "properties": { "access": { "const": "read-only" } } } }]
|
|
24
|
+
},
|
|
25
|
+
"instructions": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"required": ["workerKey", "revision", "text"],
|
|
29
|
+
"properties": {
|
|
30
|
+
"workerKey": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
31
|
+
"revision": { "type": "string", "pattern": "^(sha256:)?[a-f0-9]{64}$" },
|
|
32
|
+
"text": { "type": "string", "minLength": 1, "maxLength": 200000 }
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"task": { "type": "string", "minLength": 1, "maxLength": 200000 },
|
|
36
|
+
"materials": {
|
|
37
|
+
"type": "array", "maxItems": 128,
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "object", "additionalProperties": false,
|
|
40
|
+
"required": ["source", "path", "sha256", "startLine", "endLine"],
|
|
41
|
+
"properties": {
|
|
42
|
+
"source": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
43
|
+
"path": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
44
|
+
"sha256": { "type": "string", "pattern": "^(sha256:)?[a-f0-9]{64}$" },
|
|
45
|
+
"startLine": { "type": "integer", "minimum": 1 },
|
|
46
|
+
"endLine": { "type": "integer", "minimum": 1 }
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://aw.dev/schemas/workflow-evaluation.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["artifacts", "checks", "interactions"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"artifacts": { "type": "array", "maxItems": 64, "uniqueItems": true, "items": { "$ref": "#/$defs/path" } },
|
|
9
|
+
"checks": { "type": "array", "minItems": 1, "maxItems": 64, "items": {
|
|
10
|
+
"type": "object", "additionalProperties": false, "required": ["name", "criterion"],
|
|
11
|
+
"properties": { "name": { "type": "string", "minLength": 1, "maxLength": 200 }, "criterion": { "type": "string", "minLength": 1, "maxLength": 20000 } }
|
|
12
|
+
} },
|
|
13
|
+
"interactions": { "type": "array", "maxItems": 8, "items": {
|
|
14
|
+
"type": "object", "additionalProperties": false, "required": ["id", "when", "answer", "protectedPaths"],
|
|
15
|
+
"properties": {
|
|
16
|
+
"id": { "type": "string", "minLength": 1, "maxLength": 200 },
|
|
17
|
+
"when": { "type": "string", "minLength": 1, "maxLength": 20000 },
|
|
18
|
+
"answer": { "type": "string", "minLength": 1, "maxLength": 20000 },
|
|
19
|
+
"protectedPaths": { "type": "array", "maxItems": 64, "items": { "$ref": "#/$defs/path" } },
|
|
20
|
+
"action": { "$ref": "#/$defs/action" }
|
|
21
|
+
}
|
|
22
|
+
} },
|
|
23
|
+
"setupPrompt": { "type": "string", "minLength": 1, "maxLength": 20000 },
|
|
24
|
+
"setupActions": { "type": "array", "maxItems": 8, "items": { "$ref": "#/$defs/action" } },
|
|
25
|
+
"finalActions": { "type": "array", "maxItems": 8, "items": { "$ref": "#/$defs/action" } }
|
|
26
|
+
},
|
|
27
|
+
"$defs": {
|
|
28
|
+
"path": { "type": "string", "minLength": 1, "maxLength": 1024, "pattern": "^(?!/)(?!.*(?:^|/)\\.\\.?(?:/|$))(?!.*\\\\)(?!.*//).+$" },
|
|
29
|
+
"action": {
|
|
30
|
+
"type": "object", "additionalProperties": false, "required": ["command", "input"],
|
|
31
|
+
"properties": {
|
|
32
|
+
"command": { "type": "array", "minItems": 2, "maxItems": 2, "prefixItems": [{ "const": "node" }, { "$ref": "#/$defs/path" }] },
|
|
33
|
+
"input": {},
|
|
34
|
+
"pathPrepend": { "type": "array", "maxItems": 8, "uniqueItems": true, "items": { "$ref": "#/$defs/path" } }
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://aw.dev/schemas/workflow-fixture-action.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["command", "input"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"command": {
|
|
9
|
+
"type": "array", "minItems": 2, "maxItems": 2,
|
|
10
|
+
"prefixItems": [{ "const": "node" }, { "type": "string", "minLength": 1, "maxLength": 1024, "pattern": "^(?!/)(?!.*(?:^|/)\\.\\.?(?:/|$))(?!.*\\\\)(?!.*//).+$" }]
|
|
11
|
+
},
|
|
12
|
+
"input": {},
|
|
13
|
+
"pathPrepend": { "type": "array", "maxItems": 8, "uniqueItems": true, "items": { "type": "string", "minLength": 1, "maxLength": 1024, "pattern": "^(?!/)(?!.*(?:^|/)\\.\\.?(?:/|$))(?!.*\\\\)(?!.*//).+$" } }
|
|
14
|
+
}
|
|
15
|
+
}
|
package/dist/schemas.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { Digest,
|
|
2
|
-
export declare function isSchemaName(value: string): value is SchemaName;
|
|
1
|
+
import type { Digest, SchemaName } from './types.js';
|
|
3
2
|
export declare function getSchema(name: SchemaName): Promise<Record<string, unknown>>;
|
|
4
3
|
export declare function getSchemaDigest(name: SchemaName): Promise<Digest>;
|
|
5
|
-
export declare function validateRuntimeCapabilities(value: unknown): Promise<ValidationResult<RuntimeCapabilities>>;
|
package/dist/schemas.js
CHANGED
|
@@ -1,27 +1,29 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
1
2
|
import { readFile } from 'node:fs/promises';
|
|
2
|
-
import { validateJsonSchema } from './json-schema.js';
|
|
3
|
-
const schemaNames = new Set([
|
|
4
|
-
'aw-skill-eval-execution-plan',
|
|
5
|
-
'eval-run-bundle',
|
|
6
|
-
'eval-runtime-capabilities',
|
|
7
|
-
]);
|
|
8
|
-
export function isSchemaName(value) {
|
|
9
|
-
return schemaNames.has(value);
|
|
10
|
-
}
|
|
11
3
|
export async function getSchema(name) {
|
|
12
|
-
|
|
13
|
-
return JSON.parse(await readFile(source, 'utf8'));
|
|
4
|
+
return JSON.parse((await readSchema(name)).toString('utf8'));
|
|
14
5
|
}
|
|
15
6
|
export async function getSchemaDigest(name) {
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
try {
|
|
8
|
+
const digests = JSON.parse(await readFile(new URL('./schemas/digests.json', import.meta.url), 'utf8'));
|
|
9
|
+
return digests[name];
|
|
10
|
+
}
|
|
11
|
+
catch (error) {
|
|
12
|
+
if (error.code !== 'ENOENT')
|
|
13
|
+
throw error;
|
|
14
|
+
}
|
|
15
|
+
const schema = JSON.parse((await readSchema(name)).toString('utf8'));
|
|
16
|
+
return `sha256:${createHash('sha256').update(JSON.stringify(schema)).digest('hex')}`;
|
|
18
17
|
}
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
async function readSchema(name) {
|
|
19
|
+
const embedded = new URL(`./schemas/${name}.schema.json`, import.meta.url);
|
|
20
|
+
try {
|
|
21
|
+
return await readFile(embedded);
|
|
22
|
+
}
|
|
23
|
+
catch (error) {
|
|
24
|
+
if (error.code !== 'ENOENT')
|
|
25
|
+
throw error;
|
|
26
|
+
return readFile(new URL(`../schemas/${name}.schema.json`, import.meta.url));
|
|
27
|
+
}
|
|
26
28
|
}
|
|
27
29
|
//# sourceMappingURL=schemas.js.map
|
package/dist/schemas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAM3C,MAAM,CAAC,KAAK,UAAU,SAAS,CAAC,IAAgB;IAC9C,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAA4B,CAAA;AACzF,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,IAAgB;IACpD,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CACxB,MAAM,QAAQ,CAAC,IAAI,GAAG,CAAC,wBAAwB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAC7C,CAAA;QAC/B,OAAO,OAAO,CAAC,IAAI,CAAC,CAAA;IACtB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAK,KAA+B,CAAC,IAAI,KAAK,QAAQ;YAAE,MAAM,KAAK,CAAA;IACrE,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAA;IACpE,OAAO,UAAU,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAA;AACtF,CAAC;AAED,KAAK,UAAU,UAAU,CAAC,IAAgB;IACxC,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,aAAa,IAAI,cAAc,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAC1E,IAAI,CAAC;QACH,OAAO,MAAM,QAAQ,CAAC,QAAQ,CAAC,CAAA;IACjC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAK,KAA+B,CAAC,IAAI,KAAK,QAAQ;YAAE,MAAM,KAAK,CAAA;QACnE,OAAO,QAAQ,CAAC,IAAI,GAAG,CAAC,cAAc,IAAI,cAAc,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;IAC7E,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type AwSkillEvalTriggerCase, type AwSkillEvalTriggerSuiteCaseContract } from './codex-eval-cases.js';
|
|
2
|
+
import type { ValidationResult } from './types.js';
|
|
3
|
+
export type SelectedCaseSuiteKind = 'trigger' | 'conversation' | 'custom-process' | 'codex-workflow';
|
|
4
|
+
export interface SelectedCaseSuite {
|
|
5
|
+
kind: SelectedCaseSuiteKind;
|
|
6
|
+
unitUnderTest: string;
|
|
7
|
+
participants?: string[];
|
|
8
|
+
policy?: {
|
|
9
|
+
optimization?: string;
|
|
10
|
+
falseNegativeCost?: string;
|
|
11
|
+
falsePositiveCost?: string;
|
|
12
|
+
rationale?: string;
|
|
13
|
+
};
|
|
14
|
+
runtime?: Record<string, unknown>;
|
|
15
|
+
readonly providerSuite?: AwSkillEvalTriggerSuiteCaseContract;
|
|
16
|
+
}
|
|
17
|
+
export interface SelectedEvalCase extends Record<string, unknown> {
|
|
18
|
+
id: string;
|
|
19
|
+
split: string;
|
|
20
|
+
tags: string[];
|
|
21
|
+
readonly providerCase?: AwSkillEvalTriggerCase;
|
|
22
|
+
}
|
|
23
|
+
export interface SelectedCasesDocument {
|
|
24
|
+
version: 1;
|
|
25
|
+
suite: SelectedCaseSuite;
|
|
26
|
+
cases: SelectedEvalCase[];
|
|
27
|
+
}
|
|
28
|
+
export declare function parseSelectedCases(value: unknown): SelectedCasesDocument;
|
|
29
|
+
export declare function validateSelectedCases(value: unknown): Promise<ValidationResult<SelectedCasesDocument>>;
|
|
30
|
+
export declare function validateSelectedCasesFile(casesPath: string): Promise<ValidationResult<SelectedCasesDocument>>;
|