Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .githooks/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -euo pipefail

remote_name="${1:-}"
current_branch="$(git rev-parse --abbrev-ref HEAD)"

# Prevent server-side protected-branch push failures with a clear local message.
if [[ "$current_branch" == "main" && "$remote_name" == "origin" && "${ALLOW_MAIN_PUSH:-}" != "1" ]]; then
cat <<'MSG' >&2
Blocked push to origin/main.
Use protected-branch workflow:
1) git switch -c <branch-name>
2) git push -u origin <branch-name>
3) open a PR to main

To bypass once, run:
ALLOW_MAIN_PUSH=1 git push origin main
MSG
exit 1
fi
216 changes: 18 additions & 198 deletions STATUS.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ROADMAP

BatLLM is approaching 1.0 as a stable local desktop product. The current 0.2.x line already includes the core game loop, session saving, replay analysis, cross-platform launchers, and Ollama integration, so the remaining work for 1.0 is product consistency, reliability, and release hardening.
BatLLM is approaching 1.0 as a stable local desktop product. The current 0.3.x line already includes the core game loop, session saving, replay analysis, cross-platform launchers, and Ollama integration, so the remaining work for 1.0 is product consistency, reliability, and release hardening.

Version 2.0 is the planned architecture shift. It should focus on networked play first, then use that foundation to support additional clients and shared content.

Expand Down
2 changes: 1 addition & 1 deletion docs/images/architecture-modelito.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/images/request-flow-modelito.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion run_batllm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Cross-platform launcher for BatLLM."""

from __future__ import annotations
from util.compat import require_supported_python
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add src to sys.path before importing util.compat

When the documented python run_batllm.py command is run from a checkout without PYTHONPATH=src, this import now executes before the launcher inserts /workspace/BatLLM/src into sys.path, so Python cannot find the util package and exits with ModuleNotFoundError. The same import move appears in run_game_analyzer.py and run_tests.py, so all three top-level entry points need the sys.path setup to happen before importing util.compat.

Useful? React with 👍 / 👎.


import sys
from pathlib import Path
Expand All @@ -11,7 +12,6 @@
if str(SRC) not in sys.path:
sys.path.insert(0, str(SRC))

from util.compat import require_supported_python

require_supported_python("BatLLM")

Expand Down
2 changes: 1 addition & 1 deletion run_game_analyzer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Cross-platform launcher for the standalone BatLLM Game Analyzer."""

from __future__ import annotations
from util.compat import require_supported_python

import sys
from pathlib import Path
Expand All @@ -11,7 +12,6 @@
if str(SRC) not in sys.path:
sys.path.insert(0, str(SRC))

from util.compat import require_supported_python

require_supported_python("BatLLM Game Analyzer")

Expand Down
3 changes: 1 addition & 2 deletions run_tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Cross-platform test runner for BatLLM."""

from __future__ import annotations
from util.compat import require_supported_python

import argparse
import os
Expand All @@ -13,12 +14,10 @@
VENV_PYTHON = (
ROOT / ".venv_BatLLM" / ("Scripts/python.exe" if os.name == "nt" else "bin/python")
)
OLLAMA_HELPER = ROOT / "src" / "ollama_service.py"

if str(SRC) not in sys.path:
sys.path.insert(0, str(SRC))

from util.compat import require_supported_python

def build_parser() -> argparse.ArgumentParser:
"""Create the CLI argument parser."""
Expand Down
17 changes: 0 additions & 17 deletions sdf

This file was deleted.

4 changes: 2 additions & 2 deletions src/configs/config-llama.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ llm:
num_ctx: 4096
path: /api/chat
port: 11434
system_instructions_augmented_independent: src/headers/system_instructions/augmented_independent_1.txt
system_instructions_augmented_shared: src/headers/system_instructions/augmented_shared_1.txt
system_instructions_augmented_independent: src/assets/system_instructions/augmented_independent_1.txt
system_instructions_augmented_shared: src/assets/system_instructions/augmented_shared_1.txt
system_instructions_not_augmented_independent: src/assets/system_instructions/not_augmented_independent_1.txt
system_instructions_not_augmented_shared: src/assets/system_instructions/not_augmented_shared_1.txt
url: http://localhost
Expand Down
40 changes: 0 additions & 40 deletions src/configs/config.yaml.bak

This file was deleted.

Loading