@lesliechan721/agent-skill-eval 0.1.0-beta.2 → 0.1.0-beta.20
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 +199 -0
- package/dist/codex-eval-app-server.js +1372 -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 +327 -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 +41 -0
- package/dist/codex-eval-process-tree.js +858 -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 +82 -0
- package/dist/codex-trigger-eval.js +790 -0
- package/dist/codex-trigger-eval.js.map +1 -0
- package/dist/codex-workflow.d.ts +191 -0
- package/dist/codex-workflow.js +1832 -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 +564 -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 +38 -9
- package/dist/index.js +20 -6
- package/dist/index.js.map +1 -1
- package/dist/json-schema.js +75 -5
- package/dist/json-schema.js.map +1 -1
- package/dist/output-path.js +2 -2
- package/dist/process-tree.d.ts +21 -1
- package/dist/process-tree.js +797 -158
- 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 +83 -0
- package/dist/providers.js +632 -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 +3 -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.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,83 @@
|
|
|
1
|
+
import { runCodexConversationProviderCase, type AppServerRunEvidence, type CodexEvalProcessManagementEvidence } from './codex-eval-app-server.js';
|
|
2
|
+
import { type AwSkillEvalIsolation, type AwSkillEvalTriggerSuiteCaseContract } from './codex-eval-cases.js';
|
|
3
|
+
import { type CodexEvalRuntimeConfig } from './codex-eval-runtime-config.js';
|
|
4
|
+
import { type TriggerRunEvidence } from './codex-trigger-eval.js';
|
|
5
|
+
import { type EvalProviderGrade, type EvalProviderRunInput, type EvalProviderRunResult } from './custom-process.js';
|
|
6
|
+
export declare const BUILTIN_EVAL_PROVIDER_IDS: readonly ["codex-trigger", "codex-conversation"];
|
|
7
|
+
export type BuiltinEvalProviderId = typeof BUILTIN_EVAL_PROVIDER_IDS[number];
|
|
8
|
+
export interface BuiltinEvalProviderRunInput extends EvalProviderRunInput {
|
|
9
|
+
evalRoot: string;
|
|
10
|
+
}
|
|
11
|
+
export interface CodexTriggerProviderCase {
|
|
12
|
+
suite: AwSkillEvalTriggerSuiteCaseContract;
|
|
13
|
+
value: Record<string, unknown>;
|
|
14
|
+
}
|
|
15
|
+
export interface CodexConversationProviderCase {
|
|
16
|
+
value: Record<string, unknown>;
|
|
17
|
+
skillName: string;
|
|
18
|
+
skillNames: string[];
|
|
19
|
+
isolation: AwSkillEvalIsolation;
|
|
20
|
+
suitePathPrepend?: string[];
|
|
21
|
+
assertions: unknown;
|
|
22
|
+
allowedVariance?: unknown;
|
|
23
|
+
}
|
|
24
|
+
export interface CodexTriggerTransportInput extends Omit<BuiltinEvalProviderRunInput, 'case'> {
|
|
25
|
+
case: CodexTriggerProviderCase;
|
|
26
|
+
}
|
|
27
|
+
export interface CodexConversationTransportInput extends Omit<BuiltinEvalProviderRunInput, 'case'> {
|
|
28
|
+
case: CodexConversationProviderCase;
|
|
29
|
+
}
|
|
30
|
+
export interface CodexGraderTransportInput {
|
|
31
|
+
prompt: string;
|
|
32
|
+
outputDir: string;
|
|
33
|
+
timeoutMs: number;
|
|
34
|
+
signal?: AbortSignal;
|
|
35
|
+
}
|
|
36
|
+
export interface CodexTriggerTransportResult {
|
|
37
|
+
evidence: TriggerRunEvidence;
|
|
38
|
+
usage: unknown;
|
|
39
|
+
}
|
|
40
|
+
export interface CodexConversationTransportResult {
|
|
41
|
+
evidence: AppServerRunEvidence;
|
|
42
|
+
modelOutput: string;
|
|
43
|
+
usage: unknown;
|
|
44
|
+
}
|
|
45
|
+
export interface CodexGraderTransportResult {
|
|
46
|
+
output: string;
|
|
47
|
+
usage: unknown;
|
|
48
|
+
mechanicalPassed: boolean;
|
|
49
|
+
diagnostics?: string[];
|
|
50
|
+
}
|
|
51
|
+
export interface CodexEvalTransport {
|
|
52
|
+
runTrigger(input: CodexTriggerTransportInput): Promise<CodexTriggerTransportResult>;
|
|
53
|
+
runConversation(input: CodexConversationTransportInput): Promise<CodexConversationTransportResult>;
|
|
54
|
+
runGrader(input: CodexGraderTransportInput): Promise<CodexGraderTransportResult>;
|
|
55
|
+
}
|
|
56
|
+
export interface BuiltinEvalProviderDependencies {
|
|
57
|
+
transport?: CodexEvalTransport;
|
|
58
|
+
runConversationProviderCase?: typeof runCodexConversationProviderCase;
|
|
59
|
+
sourceEnv?: NodeJS.ProcessEnv;
|
|
60
|
+
codexBin?: string;
|
|
61
|
+
model?: string;
|
|
62
|
+
codexRuntime?: CodexEvalRuntimeConfig;
|
|
63
|
+
processManagement?: CodexEvalProcessManagementEvidence;
|
|
64
|
+
}
|
|
65
|
+
export interface BuiltinEvalProvider {
|
|
66
|
+
readonly id: BuiltinEvalProviderId;
|
|
67
|
+
run(input: BuiltinEvalProviderRunInput, dependencies?: BuiltinEvalProviderDependencies): Promise<EvalProviderRunResult>;
|
|
68
|
+
}
|
|
69
|
+
export declare class EvalProviderExecutionError extends Error {
|
|
70
|
+
readonly providerId: BuiltinEvalProviderId;
|
|
71
|
+
readonly stage: 'evaluation' | 'grader' | 'output';
|
|
72
|
+
constructor(providerId: BuiltinEvalProviderId, stage: 'evaluation' | 'grader' | 'output', message: string);
|
|
73
|
+
}
|
|
74
|
+
export declare function conversationModelOutputOf(evidence: AppServerRunEvidence): string;
|
|
75
|
+
export declare function createConversationGraderPrompt(options: {
|
|
76
|
+
assertions: unknown;
|
|
77
|
+
allowedVariance?: unknown;
|
|
78
|
+
modelOutput: string;
|
|
79
|
+
mechanicalEvidence: Record<string, unknown>;
|
|
80
|
+
}): string;
|
|
81
|
+
export declare function parseConversationGraderOutput(output: string): EvalProviderGrade;
|
|
82
|
+
export declare function getBuiltinEvalProvider(id: string): BuiltinEvalProvider;
|
|
83
|
+
export declare function runBuiltinEvalProvider(id: string, input: BuiltinEvalProviderRunInput, dependencies?: BuiltinEvalProviderDependencies): Promise<EvalProviderRunResult>;
|