Spaces:
Running on Zero
Running on Zero
Commit ·
f612af0
1
Parent(s): cb3451f
chore: clear lint leftovers
Browse filesCo-authored-by: Codex <codex@openai.com>
- hackathon_advisor/agent.py +0 -1
- hackathon_advisor/data.py +1 -2
- tests/test_agent.py +0 -3
- tests/test_artifact_bundle.py +0 -2
- tests/test_chapter.py +0 -2
- tests/test_demo_rehearsal.py +0 -3
- tests/test_field_notes.py +0 -3
- tests/test_lora_dataset.py +0 -2
- tests/test_lora_training_kit.py +0 -1
- tests/test_submission_packet.py +0 -3
- tests/test_trace_export.py +0 -1
hackathon_advisor/agent.py
CHANGED
|
@@ -78,7 +78,6 @@ class AdvisorEngine:
|
|
| 78 |
projects: list[Project] = []
|
| 79 |
whitespace: list[WhitespaceItem] = []
|
| 80 |
score: ScoreCard | None = None
|
| 81 |
-
plan: list[str] = []
|
| 82 |
call = resolution.call
|
| 83 |
|
| 84 |
if call.name == "list_projects":
|
|
|
|
| 78 |
projects: list[Project] = []
|
| 79 |
whitespace: list[WhitespaceItem] = []
|
| 80 |
score: ScoreCard | None = None
|
|
|
|
| 81 |
call = resolution.call
|
| 82 |
|
| 83 |
if call.name == "list_projects":
|
hackathon_advisor/data.py
CHANGED
|
@@ -396,8 +396,7 @@ class ProjectIndex:
|
|
| 396 |
|
| 397 |
@classmethod
|
| 398 |
def from_file(cls, path: Path, query_embedder: EmbeddingFunction | None = None) -> "ProjectIndex":
|
| 399 |
-
|
| 400 |
-
projects = [Project.from_dict(item) for item in data["projects"]]
|
| 401 |
raise ValueError("ProjectIndex.from_file requires a separate embedding index payload")
|
| 402 |
|
| 403 |
@classmethod
|
|
|
|
| 396 |
|
| 397 |
@classmethod
|
| 398 |
def from_file(cls, path: Path, query_embedder: EmbeddingFunction | None = None) -> "ProjectIndex":
|
| 399 |
+
json.loads(path.read_text(encoding="utf-8"))
|
|
|
|
| 400 |
raise ValueError("ProjectIndex.from_file requires a separate embedding index payload")
|
| 401 |
|
| 402 |
@classmethod
|
tests/test_agent.py
CHANGED
|
@@ -1,9 +1,6 @@
|
|
| 1 |
-
from pathlib import Path
|
| 2 |
-
|
| 3 |
from tests.helpers import load_test_index
|
| 4 |
|
| 5 |
from hackathon_advisor.agent import AdvisorEngine
|
| 6 |
-
from hackathon_advisor.data import ProjectIndex
|
| 7 |
from hackathon_advisor.tool_contracts import ToolCall, ToolResolution
|
| 8 |
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 1 |
from tests.helpers import load_test_index
|
| 2 |
|
| 3 |
from hackathon_advisor.agent import AdvisorEngine
|
|
|
|
| 4 |
from hackathon_advisor.tool_contracts import ToolCall, ToolResolution
|
| 5 |
|
| 6 |
|
tests/test_artifact_bundle.py
CHANGED
|
@@ -1,13 +1,11 @@
|
|
| 1 |
import json
|
| 2 |
from io import BytesIO
|
| 3 |
-
from pathlib import Path
|
| 4 |
|
| 5 |
from tests.helpers import load_test_index
|
| 6 |
from zipfile import ZipFile
|
| 7 |
|
| 8 |
from hackathon_advisor.agent import AdvisorEngine
|
| 9 |
from hackathon_advisor.artifact_bundle import build_demo_bundle_zip
|
| 10 |
-
from hackathon_advisor.data import ProjectIndex
|
| 11 |
from hackathon_advisor.demo_rehearsal import build_demo_rehearsal
|
| 12 |
from hackathon_advisor.prize_ledger import prize_ledger
|
| 13 |
from hackathon_advisor.trace_export import trace_metadata
|
|
|
|
| 1 |
import json
|
| 2 |
from io import BytesIO
|
|
|
|
| 3 |
|
| 4 |
from tests.helpers import load_test_index
|
| 5 |
from zipfile import ZipFile
|
| 6 |
|
| 7 |
from hackathon_advisor.agent import AdvisorEngine
|
| 8 |
from hackathon_advisor.artifact_bundle import build_demo_bundle_zip
|
|
|
|
| 9 |
from hackathon_advisor.demo_rehearsal import build_demo_rehearsal
|
| 10 |
from hackathon_advisor.prize_ledger import prize_ledger
|
| 11 |
from hackathon_advisor.trace_export import trace_metadata
|
tests/test_chapter.py
CHANGED
|
@@ -1,11 +1,9 @@
|
|
| 1 |
import re
|
| 2 |
-
from pathlib import Path
|
| 3 |
|
| 4 |
from tests.helpers import load_test_index
|
| 5 |
|
| 6 |
from hackathon_advisor.agent import AdvisorEngine
|
| 7 |
from hackathon_advisor.chapter import build_chapter_markdown
|
| 8 |
-
from hackathon_advisor.data import ProjectIndex
|
| 9 |
from hackathon_advisor.trace_export import trace_metadata
|
| 10 |
|
| 11 |
|
|
|
|
| 1 |
import re
|
|
|
|
| 2 |
|
| 3 |
from tests.helpers import load_test_index
|
| 4 |
|
| 5 |
from hackathon_advisor.agent import AdvisorEngine
|
| 6 |
from hackathon_advisor.chapter import build_chapter_markdown
|
|
|
|
| 7 |
from hackathon_advisor.trace_export import trace_metadata
|
| 8 |
|
| 9 |
|
tests/test_demo_rehearsal.py
CHANGED
|
@@ -1,9 +1,6 @@
|
|
| 1 |
-
from pathlib import Path
|
| 2 |
-
|
| 3 |
from tests.helpers import load_test_index
|
| 4 |
|
| 5 |
from hackathon_advisor.agent import AdvisorEngine
|
| 6 |
-
from hackathon_advisor.data import ProjectIndex
|
| 7 |
from hackathon_advisor.demo_rehearsal import DEMO_GOALS, build_demo_rehearsal
|
| 8 |
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 1 |
from tests.helpers import load_test_index
|
| 2 |
|
| 3 |
from hackathon_advisor.agent import AdvisorEngine
|
|
|
|
| 4 |
from hackathon_advisor.demo_rehearsal import DEMO_GOALS, build_demo_rehearsal
|
| 5 |
|
| 6 |
|
tests/test_field_notes.py
CHANGED
|
@@ -1,9 +1,6 @@
|
|
| 1 |
-
from pathlib import Path
|
| 2 |
-
|
| 3 |
from tests.helpers import load_test_index
|
| 4 |
|
| 5 |
from hackathon_advisor.agent import AdvisorEngine
|
| 6 |
-
from hackathon_advisor.data import ProjectIndex
|
| 7 |
from hackathon_advisor.field_notes import build_field_notes_markdown
|
| 8 |
from hackathon_advisor.trace_export import trace_metadata
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 1 |
from tests.helpers import load_test_index
|
| 2 |
|
| 3 |
from hackathon_advisor.agent import AdvisorEngine
|
|
|
|
| 4 |
from hackathon_advisor.field_notes import build_field_notes_markdown
|
| 5 |
from hackathon_advisor.trace_export import trace_metadata
|
| 6 |
|
tests/test_lora_dataset.py
CHANGED
|
@@ -1,10 +1,8 @@
|
|
| 1 |
import json
|
| 2 |
-
from pathlib import Path
|
| 3 |
|
| 4 |
from tests.helpers import load_test_index
|
| 5 |
|
| 6 |
from hackathon_advisor.agent import AdvisorEngine
|
| 7 |
-
from hackathon_advisor.data import ProjectIndex
|
| 8 |
from hackathon_advisor.lora_dataset import BASE_MODEL, build_lora_dataset_jsonl
|
| 9 |
from hackathon_advisor.trace_export import trace_metadata
|
| 10 |
|
|
|
|
| 1 |
import json
|
|
|
|
| 2 |
|
| 3 |
from tests.helpers import load_test_index
|
| 4 |
|
| 5 |
from hackathon_advisor.agent import AdvisorEngine
|
|
|
|
| 6 |
from hackathon_advisor.lora_dataset import BASE_MODEL, build_lora_dataset_jsonl
|
| 7 |
from hackathon_advisor.trace_export import trace_metadata
|
| 8 |
|
tests/test_lora_training_kit.py
CHANGED
|
@@ -8,7 +8,6 @@ from tests.helpers import load_test_index
|
|
| 8 |
from zipfile import ZipFile
|
| 9 |
|
| 10 |
from hackathon_advisor.agent import AdvisorEngine
|
| 11 |
-
from hackathon_advisor.data import ProjectIndex
|
| 12 |
from hackathon_advisor.demo_rehearsal import build_demo_rehearsal
|
| 13 |
from hackathon_advisor.lora_dataset import build_lora_dataset_jsonl
|
| 14 |
from hackathon_advisor.lora_training_kit import (
|
|
|
|
| 8 |
from zipfile import ZipFile
|
| 9 |
|
| 10 |
from hackathon_advisor.agent import AdvisorEngine
|
|
|
|
| 11 |
from hackathon_advisor.demo_rehearsal import build_demo_rehearsal
|
| 12 |
from hackathon_advisor.lora_dataset import build_lora_dataset_jsonl
|
| 13 |
from hackathon_advisor.lora_training_kit import (
|
tests/test_submission_packet.py
CHANGED
|
@@ -1,9 +1,6 @@
|
|
| 1 |
-
from pathlib import Path
|
| 2 |
-
|
| 3 |
from tests.helpers import load_test_index
|
| 4 |
|
| 5 |
from hackathon_advisor.agent import AdvisorEngine
|
| 6 |
-
from hackathon_advisor.data import ProjectIndex
|
| 7 |
from hackathon_advisor.prize_ledger import prize_ledger
|
| 8 |
from hackathon_advisor.submission_packet import build_submission_packet_markdown
|
| 9 |
from hackathon_advisor.trace_export import trace_metadata
|
|
|
|
|
|
|
|
|
|
| 1 |
from tests.helpers import load_test_index
|
| 2 |
|
| 3 |
from hackathon_advisor.agent import AdvisorEngine
|
|
|
|
| 4 |
from hackathon_advisor.prize_ledger import prize_ledger
|
| 5 |
from hackathon_advisor.submission_packet import build_submission_packet_markdown
|
| 6 |
from hackathon_advisor.trace_export import trace_metadata
|
tests/test_trace_export.py
CHANGED
|
@@ -4,7 +4,6 @@ from pathlib import Path
|
|
| 4 |
from tests.helpers import load_test_index
|
| 5 |
|
| 6 |
from hackathon_advisor.agent import AdvisorEngine
|
| 7 |
-
from hackathon_advisor.data import ProjectIndex
|
| 8 |
from hackathon_advisor.trace_export import build_trace_jsonl, trace_metadata
|
| 9 |
|
| 10 |
|
|
|
|
| 4 |
from tests.helpers import load_test_index
|
| 5 |
|
| 6 |
from hackathon_advisor.agent import AdvisorEngine
|
|
|
|
| 7 |
from hackathon_advisor.trace_export import build_trace_jsonl, trace_metadata
|
| 8 |
|
| 9 |
|