@lesliechan721/agent-skill-eval 0.1.0-beta.5 → 0.1.0-beta.50

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.
Files changed (117) hide show
  1. package/dist/bin.js +167 -39
  2. package/dist/bin.js.map +1 -1
  3. package/dist/codex-eval-app-server.d.ts +210 -0
  4. package/dist/codex-eval-app-server.js +1384 -0
  5. package/dist/codex-eval-app-server.js.map +1 -0
  6. package/dist/codex-eval-cases.d.ts +43 -0
  7. package/dist/codex-eval-cases.js +329 -0
  8. package/dist/codex-eval-cases.js.map +1 -0
  9. package/dist/codex-eval-isolation.d.ts +79 -0
  10. package/dist/codex-eval-isolation.js +420 -0
  11. package/dist/codex-eval-isolation.js.map +1 -0
  12. package/dist/codex-eval-process-tree.d.ts +42 -0
  13. package/dist/codex-eval-process-tree.js +860 -0
  14. package/dist/codex-eval-process-tree.js.map +1 -0
  15. package/dist/codex-eval-runtime-config.d.ts +43 -0
  16. package/dist/codex-eval-runtime-config.js +607 -0
  17. package/dist/codex-eval-runtime-config.js.map +1 -0
  18. package/dist/codex-trigger-eval.d.ts +84 -0
  19. package/dist/codex-trigger-eval.js +808 -0
  20. package/dist/codex-trigger-eval.js.map +1 -0
  21. package/dist/codex-workflow-evaluation.d.ts +91 -0
  22. package/dist/codex-workflow-evaluation.js +309 -0
  23. package/dist/codex-workflow-evaluation.js.map +1 -0
  24. package/dist/codex-workflow-fixtures.d.ts +37 -0
  25. package/dist/codex-workflow-fixtures.js +144 -0
  26. package/dist/codex-workflow-fixtures.js.map +1 -0
  27. package/dist/codex-workflow.d.ts +224 -0
  28. package/dist/codex-workflow.js +2198 -0
  29. package/dist/codex-workflow.js.map +1 -0
  30. package/dist/credentials.d.ts +5 -0
  31. package/dist/credentials.js +30 -0
  32. package/dist/credentials.js.map +1 -0
  33. package/dist/custom-process.d.ts +60 -0
  34. package/dist/custom-process.js +424 -0
  35. package/dist/custom-process.js.map +1 -0
  36. package/dist/eval-audit.d.ts +38 -0
  37. package/dist/eval-audit.js +71 -0
  38. package/dist/eval-audit.js.map +1 -0
  39. package/dist/eval-file.d.ts +9 -0
  40. package/dist/eval-file.js +15 -0
  41. package/dist/eval-file.js.map +1 -0
  42. package/dist/eval-process-management.d.ts +22 -0
  43. package/dist/eval-process-management.js +90 -0
  44. package/dist/eval-process-management.js.map +1 -0
  45. package/dist/eval-result.d.ts +79 -0
  46. package/dist/eval-result.js +144 -0
  47. package/dist/eval-result.js.map +1 -0
  48. package/dist/eval-run.d.ts +27 -0
  49. package/dist/eval-run.js +566 -0
  50. package/dist/eval-run.js.map +1 -0
  51. package/dist/eval-spec.d.ts +57 -0
  52. package/dist/eval-spec.js +120 -0
  53. package/dist/eval-spec.js.map +1 -0
  54. package/dist/eval-suite-binding.d.ts +4 -0
  55. package/dist/eval-suite-binding.js +19 -0
  56. package/dist/eval-suite-binding.js.map +1 -0
  57. package/dist/index.d.ts +44 -10
  58. package/dist/index.js +22 -6
  59. package/dist/index.js.map +1 -1
  60. package/dist/instruction-v2.d.ts +53 -0
  61. package/dist/instruction-v2.js +169 -0
  62. package/dist/instruction-v2.js.map +1 -0
  63. package/dist/json-schema.js +84 -5
  64. package/dist/json-schema.js.map +1 -1
  65. package/dist/output-path.js +2 -2
  66. package/dist/process-tree.d.ts +53 -1
  67. package/dist/process-tree.js +931 -160
  68. package/dist/process-tree.js.map +1 -1
  69. package/dist/process.d.ts +2 -2
  70. package/dist/process.js +99 -34
  71. package/dist/process.js.map +1 -1
  72. package/dist/provider-doctor.d.ts +46 -0
  73. package/dist/provider-doctor.js +120 -0
  74. package/dist/provider-doctor.js.map +1 -0
  75. package/dist/providers.d.ts +85 -0
  76. package/dist/providers.js +685 -0
  77. package/dist/providers.js.map +1 -0
  78. package/dist/run-paths.d.ts +8 -0
  79. package/dist/run-paths.js +71 -0
  80. package/dist/run-paths.js.map +1 -0
  81. package/dist/runtime-skill.d.ts +6 -0
  82. package/dist/runtime-skill.js +87 -3
  83. package/dist/runtime-skill.js.map +1 -1
  84. package/dist/schemas/digests.json +7 -3
  85. package/dist/schemas/eval-audit.schema.json +64 -0
  86. package/dist/schemas/eval-result.schema.json +232 -0
  87. package/dist/schemas/eval-spec.schema.json +109 -0
  88. package/dist/schemas/instruction-v2-receipt.schema.json +24 -0
  89. package/dist/schemas/instruction-v2-request.schema.json +51 -0
  90. package/dist/schemas/workflow-evaluation.schema.json +38 -0
  91. package/dist/schemas/workflow-fixture-action.schema.json +15 -0
  92. package/dist/schemas.d.ts +1 -3
  93. package/dist/schemas.js +22 -20
  94. package/dist/schemas.js.map +1 -1
  95. package/dist/selected-cases.d.ts +30 -0
  96. package/dist/selected-cases.js +388 -0
  97. package/dist/selected-cases.js.map +1 -0
  98. package/dist/types.d.ts +2 -34
  99. package/dist/windows-job.d.ts +26 -0
  100. package/dist/windows-job.js +97 -0
  101. package/dist/windows-job.js.map +1 -0
  102. package/package.json +22 -3
  103. package/dist/bundle.d.ts +0 -93
  104. package/dist/bundle.js +0 -216
  105. package/dist/bundle.js.map +0 -1
  106. package/dist/capabilities.d.ts +0 -2
  107. package/dist/capabilities.js +0 -38
  108. package/dist/capabilities.js.map +0 -1
  109. package/dist/plan.d.ts +0 -79
  110. package/dist/plan.js +0 -285
  111. package/dist/plan.js.map +0 -1
  112. package/dist/run.d.ts +0 -2
  113. package/dist/run.js +0 -592
  114. package/dist/run.js.map +0 -1
  115. package/dist/schemas/aw-skill-eval-execution-plan.schema.json +0 -220
  116. package/dist/schemas/eval-run-bundle.schema.json +0 -408
  117. 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, RuntimeCapabilities, SchemaName, ValidationResult } from './types.js';
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
- const source = new URL(`./schemas/${name}.schema.json`, import.meta.url);
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
- const digests = JSON.parse(await readFile(new URL('./schemas/digests.json', import.meta.url), 'utf8'));
17
- return digests[name];
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
- export async function validateRuntimeCapabilities(value) {
20
- const errors = validateJsonSchema(await getSchema('eval-runtime-capabilities'), value);
21
- return {
22
- valid: errors.length === 0,
23
- errors,
24
- calculated: errors.length === 0 ? value : null,
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
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAQrD,MAAM,WAAW,GAAG,IAAI,GAAG,CAAa;IACtC,8BAA8B;IAC9B,iBAAiB;IACjB,2BAA2B;CAC5B,CAAC,CAAA;AAE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C;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>>;