Commit fc8024a
committed
feat(challenges): add term-challenge WASM module (#19)
* feat(challenges): add term-challenge WASM module
Add a new WASM challenge crate for the terminal benchmark challenge (v2),
along with the cloned term-challenge v2 reference repository and SDK
improvements to support the new pattern.
Core changes:
- New crate challenges/term-challenge-wasm/ targeting wasm32-unknown-unknown
(cdylib) that implements the Challenge trait with evaluate() and validate()
methods. The evaluate() method deserializes agent task results via bincode,
computes a pass-rate score (0-100), and returns structured output. The
validate() method checks for non-empty agent data and challenge ID.
- Updated register_challenge!() macro in challenge-sdk-wasm to use a const
fn new() constructor instead of Default::default(), enabling static
initialization required by no_std WASM modules.
- Added challenges/term-challenge/ as a reference clone of the
PlatformNetwork/term-challenge v2 branch.
- Added term-challenge-wasm to workspace members in root Cargo.toml.
- Updated Cargo.lock with the new crate and its dependencies.
* chore: remove submodule entry for term-challenge before merge
* fix: resolve merge conflicts and fix register_challenge macro call
* chore: trigger CI1 parent 7abbd74 commit fc8024a
2 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
46 | 53 | | |
47 | 54 | | |
48 | 55 | | |
| |||
0 commit comments