Spaces:
Sleeping
Sleeping
Commit History
-
v0.4: surface ALL task files, not just an allowlist
The previous version hardcoded six file IDs in HarborTask / _read_task_file / _build_file_tree (task.toml, instruction.md, solution/patch.diff, solution/solve.sh, tests/test.sh, environment/Dockerfile). Anything else in a task dir (e.g. tests/grader.py, environment/pull_bucket.py, helper modules) was downloaded by snapshot_download but never shown in the UI. Generalized: - HarborTask gains a 'files: dict[str, str]' field — every readable text file under the task dir, keyed by POSIX-style relative path. - parse.py: new _discover_task_files() walks task_dir.rglob('*'), skips binaries (UTF-8 decode failures), hidden noise (.DS_Store, .git, __pycache__, .cache, node_modules, .venv, *_cache), and oversized files (>512 KiB). Convenience fields (instruction_md, oracle_patch, …) kept populated from the same dict for backwards compat with anything that reaches in by name. - app.py: _read_task_file becomes a dict lookup with the two special cases preserved (task.toml uses task_to…3949fb1
-
Initial: Harbor Visualiser — Gradio Space for browsing Harbor task spec datasets
Accepts: owner/name → HF Hub hf://owner/name[@rev] → HF Hub (explicit) gh://owner/repo[@ref] → GitHub https://github.com/owner/repo[.git] → GitHub (full URL) harbor://name | harbor://org/name[@tag] → Harbor registry (via harbor CLI) /local/abs/path → local directory Per task tabs: Overview · Instruction · Patch · test.sh · Dockerfile · solve.sh · Raw task.toml. Recognizes Repo2RLEnv's `[metadata.repo2env]` extension and renders it as a separate metadata table when present. URL prefill via `?dataset=<uri>` (also `?d=...`) reads on page load. Live-tested against all four sources before initial push.f718aea