@fre4x/benchmark 1.1.0-beta.4 → 1.1.0
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/README.md +13 -13
- package/dist/index.js +16 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,22 +8,22 @@ The rebuilt core is organized around challenge catalogs, typed task assets, and
|
|
|
8
8
|
|
|
9
9
|
| Tool | Purpose |
|
|
10
10
|
|------|---------|
|
|
11
|
-
| `
|
|
12
|
-
| `
|
|
13
|
-
| `
|
|
14
|
-
| `
|
|
15
|
-
| `
|
|
16
|
-
| `
|
|
17
|
-
| `
|
|
18
|
-
| `
|
|
11
|
+
| `list_challenges` | List deterministic benchmark suites with family, runner, and checker metadata |
|
|
12
|
+
| `get_catalog_status` | Inspect catalog source configuration, cache state, and availability |
|
|
13
|
+
| `sync_catalog` | Fetch and cache the remote benchmark catalog when a URL source is configured |
|
|
14
|
+
| `start_challenge` | Start an attempt and return the first task |
|
|
15
|
+
| `submit_solution` | Grade one task and return checker evidence plus the next task or final score |
|
|
16
|
+
| `get_asset` | Read an attached benchmark asset by `asset_id` |
|
|
17
|
+
| `get_attempt` | Inspect attempt status, current task, and paginated evaluation history |
|
|
18
|
+
| `cancel_attempt` | Cancel an active attempt |
|
|
19
19
|
|
|
20
20
|
## Workflow
|
|
21
21
|
|
|
22
|
-
1. Call `
|
|
22
|
+
1. Call `list_challenges`
|
|
23
23
|
2. Pick a `challenge_id`
|
|
24
|
-
3. Call `
|
|
25
|
-
4. If the task has assets, call `
|
|
26
|
-
5. Call `
|
|
24
|
+
3. Call `start_challenge`
|
|
25
|
+
4. If the task has assets, call `get_asset`
|
|
26
|
+
5. Call `submit_solution`
|
|
27
27
|
6. Repeat until `done: true`
|
|
28
28
|
|
|
29
29
|
Each response includes machine-readable guidance for the most likely next tool call.
|
|
@@ -77,7 +77,7 @@ BENCHMARK_MOCK=true
|
|
|
77
77
|
|
|
78
78
|
`BENCHMARK_GAIA_DATA_FILE` is still accepted as a backward-compatible alias, but the rebuilt package is no longer GAIA-first.
|
|
79
79
|
|
|
80
|
-
When `BENCHMARK_CATALOG_URL` is set, the package will reuse a fresh cached copy when available and can be explicitly refreshed with `
|
|
80
|
+
When `BENCHMARK_CATALOG_URL` is set, the package will reuse a fresh cached copy when available and can be explicitly refreshed with `sync_catalog`.
|
|
81
81
|
|
|
82
82
|
## Catalog shape
|
|
83
83
|
|
package/dist/index.js
CHANGED
|
@@ -31455,7 +31455,7 @@ function getTaskGuidance(attemptId, task) {
|
|
|
31455
31455
|
return {
|
|
31456
31456
|
primary: createGuidanceStep(
|
|
31457
31457
|
"review_asset",
|
|
31458
|
-
"
|
|
31458
|
+
"get_asset",
|
|
31459
31459
|
"This task includes an attachment.",
|
|
31460
31460
|
{
|
|
31461
31461
|
attempt_id: attemptId,
|
|
@@ -31465,7 +31465,7 @@ function getTaskGuidance(attemptId, task) {
|
|
|
31465
31465
|
alternatives: [
|
|
31466
31466
|
createGuidanceStep(
|
|
31467
31467
|
"submit_solution",
|
|
31468
|
-
"
|
|
31468
|
+
"submit_solution",
|
|
31469
31469
|
"Submit after reviewing the attachment.",
|
|
31470
31470
|
{
|
|
31471
31471
|
attempt_id: attemptId,
|
|
@@ -31478,7 +31478,7 @@ function getTaskGuidance(attemptId, task) {
|
|
|
31478
31478
|
return {
|
|
31479
31479
|
primary: createGuidanceStep(
|
|
31480
31480
|
"submit_solution",
|
|
31481
|
-
"
|
|
31481
|
+
"submit_solution",
|
|
31482
31482
|
"This task is ready for deterministic grading.",
|
|
31483
31483
|
{
|
|
31484
31484
|
attempt_id: attemptId,
|
|
@@ -31488,7 +31488,7 @@ function getTaskGuidance(attemptId, task) {
|
|
|
31488
31488
|
alternatives: [
|
|
31489
31489
|
createGuidanceStep(
|
|
31490
31490
|
"inspect_attempt",
|
|
31491
|
-
"
|
|
31491
|
+
"get_attempt",
|
|
31492
31492
|
"Review the current attempt state.",
|
|
31493
31493
|
{
|
|
31494
31494
|
attempt_id: attemptId,
|
|
@@ -31622,7 +31622,7 @@ async function handleListChallenges(params) {
|
|
|
31622
31622
|
const paginated = applyPagination(challenges, params);
|
|
31623
31623
|
const guidance = paginated.items.length > 0 ? createGuidanceStep(
|
|
31624
31624
|
"start_challenge",
|
|
31625
|
-
"
|
|
31625
|
+
"start_challenge",
|
|
31626
31626
|
"Begin with the first listed challenge.",
|
|
31627
31627
|
{ challenge_id: paginated.items[0].challenge_id }
|
|
31628
31628
|
) : createGuidanceStep(
|
|
@@ -31774,7 +31774,7 @@ async function handleSubmitSolution(params) {
|
|
|
31774
31774
|
alternatives: [
|
|
31775
31775
|
createGuidanceStep(
|
|
31776
31776
|
"inspect_attempt",
|
|
31777
|
-
"
|
|
31777
|
+
"get_attempt",
|
|
31778
31778
|
"Review the completed attempt summary.",
|
|
31779
31779
|
{
|
|
31780
31780
|
attempt_id: updatedAttempt.attempt_id,
|
|
@@ -31904,7 +31904,7 @@ async function handleGetAsset(params) {
|
|
|
31904
31904
|
const guidance = {
|
|
31905
31905
|
primary: createGuidanceStep(
|
|
31906
31906
|
"submit_solution",
|
|
31907
|
-
"
|
|
31907
|
+
"submit_solution",
|
|
31908
31908
|
"Submit the answer after reviewing the asset.",
|
|
31909
31909
|
{
|
|
31910
31910
|
attempt_id: attempt.attempt_id,
|
|
@@ -31914,7 +31914,7 @@ async function handleGetAsset(params) {
|
|
|
31914
31914
|
alternatives: [
|
|
31915
31915
|
createGuidanceStep(
|
|
31916
31916
|
"inspect_attempt",
|
|
31917
|
-
"
|
|
31917
|
+
"get_attempt",
|
|
31918
31918
|
"Review the current task again.",
|
|
31919
31919
|
{
|
|
31920
31920
|
attempt_id: attempt.attempt_id,
|
|
@@ -32103,7 +32103,7 @@ async function handleCancelAttempt(params) {
|
|
|
32103
32103
|
}
|
|
32104
32104
|
}
|
|
32105
32105
|
server.registerTool(
|
|
32106
|
-
"
|
|
32106
|
+
"list_challenges",
|
|
32107
32107
|
{
|
|
32108
32108
|
title: "List Challenges",
|
|
32109
32109
|
description: "List deterministic benchmark suites and metadata.",
|
|
@@ -32116,7 +32116,7 @@ server.registerTool(
|
|
|
32116
32116
|
handleListChallenges
|
|
32117
32117
|
);
|
|
32118
32118
|
server.registerTool(
|
|
32119
|
-
"
|
|
32119
|
+
"get_catalog_status",
|
|
32120
32120
|
{
|
|
32121
32121
|
title: "Get Catalog Status",
|
|
32122
32122
|
description: "Inspect catalog source and cache status.",
|
|
@@ -32129,7 +32129,7 @@ server.registerTool(
|
|
|
32129
32129
|
handleGetCatalogStatus
|
|
32130
32130
|
);
|
|
32131
32131
|
server.registerTool(
|
|
32132
|
-
"
|
|
32132
|
+
"sync_catalog",
|
|
32133
32133
|
{
|
|
32134
32134
|
title: "Sync Catalog",
|
|
32135
32135
|
description: "Fetch and cache the remote benchmark catalog.",
|
|
@@ -32141,7 +32141,7 @@ server.registerTool(
|
|
|
32141
32141
|
handleSyncCatalog
|
|
32142
32142
|
);
|
|
32143
32143
|
server.registerTool(
|
|
32144
|
-
"
|
|
32144
|
+
"start_challenge",
|
|
32145
32145
|
{
|
|
32146
32146
|
title: "Start Challenge",
|
|
32147
32147
|
description: "Start an attempt and return the first task.",
|
|
@@ -32150,7 +32150,7 @@ server.registerTool(
|
|
|
32150
32150
|
handleStartChallenge
|
|
32151
32151
|
);
|
|
32152
32152
|
server.registerTool(
|
|
32153
|
-
"
|
|
32153
|
+
"submit_solution",
|
|
32154
32154
|
{
|
|
32155
32155
|
title: "Submit Solution",
|
|
32156
32156
|
description: "Grade one task and advance the attempt.",
|
|
@@ -32159,7 +32159,7 @@ server.registerTool(
|
|
|
32159
32159
|
handleSubmitSolution
|
|
32160
32160
|
);
|
|
32161
32161
|
server.registerTool(
|
|
32162
|
-
"
|
|
32162
|
+
"get_asset",
|
|
32163
32163
|
{
|
|
32164
32164
|
title: "Get Asset",
|
|
32165
32165
|
description: "Read an attached benchmark asset by id.",
|
|
@@ -32172,7 +32172,7 @@ server.registerTool(
|
|
|
32172
32172
|
handleGetAsset
|
|
32173
32173
|
);
|
|
32174
32174
|
server.registerTool(
|
|
32175
|
-
"
|
|
32175
|
+
"get_attempt",
|
|
32176
32176
|
{
|
|
32177
32177
|
title: "Get Attempt",
|
|
32178
32178
|
description: "Inspect attempt status, tasks, and evidence.",
|
|
@@ -32185,7 +32185,7 @@ server.registerTool(
|
|
|
32185
32185
|
handleGetAttempt
|
|
32186
32186
|
);
|
|
32187
32187
|
server.registerTool(
|
|
32188
|
-
"
|
|
32188
|
+
"cancel_attempt",
|
|
32189
32189
|
{
|
|
32190
32190
|
title: "Cancel Attempt",
|
|
32191
32191
|
description: "Cancel an active attempt.",
|