balatrobot 1.0.0__tar.gz → 1.3.0__tar.gz
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.
- balatrobot-1.3.0/.claude/settings.json +26 -0
- balatrobot-1.3.0/.github/workflows/commit_lint.yml +47 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/.github/workflows/release_please.yml +11 -5
- balatrobot-1.3.0/.gitignore +330 -0
- balatrobot-1.3.0/.mux/init +43 -0
- balatrobot-1.3.0/.mux/mcp.jsonc +13 -0
- balatrobot-1.3.0/.mux/tool_env +5 -0
- balatrobot-1.3.0/.mux/tool_post +12 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/CHANGELOG.md +90 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/CLAUDE.md +32 -2
- balatrobot-1.3.0/Makefile +84 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/PKG-INFO +4 -30
- {balatrobot-1.0.0 → balatrobot-1.3.0}/README.md +3 -29
- {balatrobot-1.0.0 → balatrobot-1.3.0}/balatrobot.json +1 -1
- {balatrobot-1.0.0 → balatrobot-1.3.0}/balatrobot.lua +1 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/docs/api.md +119 -21
- balatrobot-1.3.0/docs/assets/balatrobot-white.svg +23 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/docs/cli.md +70 -19
- balatrobot-1.3.0/docs/contributing.md +313 -0
- balatrobot-1.3.0/docs/example-bot.md +110 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/docs/index.md +39 -36
- balatrobot-1.3.0/docs/installation.md +73 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/mkdocs.yml +2 -1
- {balatrobot-1.0.0 → balatrobot-1.3.0}/pyproject.toml +14 -4
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/balatrobot/__init__.py +1 -1
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/balatrobot/platforms/__init__.py +3 -1
- balatrobot-1.3.0/src/balatrobot/platforms/windows.py +41 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/core/dispatcher.lua +22 -1
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/add.lua +61 -4
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/buy.lua +32 -4
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/discard.lua +11 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/load.lua +4 -0
- balatrobot-1.3.0/src/lua/endpoints/pack.lua +385 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/play.lua +7 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/rearrange.lua +29 -5
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/reroll.lua +3 -2
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/save.lua +1 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/select.lua +9 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/sell.lua +4 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/use.lua +11 -7
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/utils/debugger.lua +5 -3
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/utils/enums.lua +35 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/utils/gamestate.lua +11 -1
- balatrobot-1.3.0/src/lua/utils/logger.lua +99 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/utils/openrpc.json +6 -2
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/utils/types.lua +4 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/cli/test_platforms.py +53 -4
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/fixtures/fixtures.json +648 -21
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/endpoints/test_add.py +101 -26
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/endpoints/test_buy.py +2 -5
- balatrobot-1.3.0/tests/lua/endpoints/test_pack.py +517 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/endpoints/test_rearrange.py +109 -16
- {balatrobot-1.0.0 → balatrobot-1.3.0}/uv.lock +239 -101
- balatrobot-1.0.0/.claude/settings.json +0 -48
- balatrobot-1.0.0/.gitignore +0 -31
- balatrobot-1.0.0/Makefile +0 -55
- balatrobot-1.0.0/docs/contributing.md +0 -155
- balatrobot-1.0.0/docs/installation.md +0 -68
- {balatrobot-1.0.0 → balatrobot-1.3.0}/.editorconfig +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/.github/workflows/code_quality.yml +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/.github/workflows/deploy_docs.yml +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/.github/workflows/release_pypi.yml +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/.mdformat.toml +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/.python-version +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/LICENSE +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/docs/assets/balatrobench.svg +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/docs/assets/balatrobot.svg +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/docs/assets/balatrollm.svg +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/balatrobot/__main__.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/balatrobot/cli.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/balatrobot/config.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/balatrobot/manager.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/balatrobot/platforms/base.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/balatrobot/platforms/macos.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/balatrobot/platforms/native.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/core/server.lua +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/core/validator.lua +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/cash_out.lua +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/gamestate.lua +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/health.lua +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/menu.lua +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/next_round.lua +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/screenshot.lua +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/set.lua +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/skip.lua +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/start.lua +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/tests/echo.lua +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/tests/endpoint.lua +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/tests/error.lua +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/tests/state.lua +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/endpoints/tests/validation.lua +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/settings.lua +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/src/lua/utils/errors.lua +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/__init__.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/cli/__init__.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/cli/conftest.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/cli/test_config.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/cli/test_integration.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/cli/test_manager.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/conftest.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/fixtures/generate.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/__init__.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/conftest.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/core/__init__.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/core/test_dispatcher.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/core/test_server.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/core/test_validator.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/endpoints/__init__.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/endpoints/test_cash_out.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/endpoints/test_discard.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/endpoints/test_gamestate.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/endpoints/test_health.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/endpoints/test_load.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/endpoints/test_menu.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/endpoints/test_next_round.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/endpoints/test_play.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/endpoints/test_reroll.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/endpoints/test_save.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/endpoints/test_screenshot.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/endpoints/test_select.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/endpoints/test_sell.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/endpoints/test_set.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/endpoints/test_skip.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/endpoints/test_start.py +0 -0
- {balatrobot-1.0.0 → balatrobot-1.3.0}/tests/lua/endpoints/test_use.py +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"Bash(pytest:*)",
|
|
5
|
+
"Bash(make:*)"
|
|
6
|
+
],
|
|
7
|
+
"deny": [
|
|
8
|
+
"Edit(CHANGELOG.md)",
|
|
9
|
+
"Write(CHANGELOG.md)"
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
"hooks": {
|
|
13
|
+
"PostToolUse": [
|
|
14
|
+
{
|
|
15
|
+
"matcher": "Write|Edit",
|
|
16
|
+
"hooks": [
|
|
17
|
+
{
|
|
18
|
+
"type": "command",
|
|
19
|
+
"command": "make quality",
|
|
20
|
+
"timeout": 5
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
name: Commit Lint
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches: [main]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
concurrency:
|
|
12
|
+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
13
|
+
cancel-in-progress: true
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
commitizen:
|
|
17
|
+
name: Validate Commit Messages
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
with:
|
|
22
|
+
fetch-depth: 0 # Need full history for commit range
|
|
23
|
+
|
|
24
|
+
- name: Set up Python
|
|
25
|
+
uses: actions/setup-python@v5
|
|
26
|
+
with:
|
|
27
|
+
python-version-file: ".python-version"
|
|
28
|
+
|
|
29
|
+
- name: Install uv
|
|
30
|
+
uses: astral-sh/setup-uv@v5
|
|
31
|
+
with:
|
|
32
|
+
enable-cache: true
|
|
33
|
+
cache-dependency-glob: "uv.lock"
|
|
34
|
+
|
|
35
|
+
- name: Install dependencies
|
|
36
|
+
run: |
|
|
37
|
+
uv venv
|
|
38
|
+
uv sync --group dev
|
|
39
|
+
|
|
40
|
+
- name: Validate commits
|
|
41
|
+
run: |
|
|
42
|
+
uv run cz check --rev-range origin/${{ github.base_ref }}..HEAD
|
|
43
|
+
|
|
44
|
+
- name: Validate PR title
|
|
45
|
+
if: github.event_name == 'pull_request'
|
|
46
|
+
run: |
|
|
47
|
+
echo "${{ github.event.pull_request.title }}" | uv run cz check
|
|
@@ -43,6 +43,12 @@ jobs:
|
|
|
43
43
|
# Update version in balatrobot.json
|
|
44
44
|
jq --arg version "${{ steps.release.outputs.version }}" '.version = $version' balatrobot.json > balatrobot.json.tmp
|
|
45
45
|
mv balatrobot.json.tmp balatrobot.json
|
|
46
|
+
- name: Update openrpc.json version
|
|
47
|
+
if: ${{ steps.release.outputs.release_created }}
|
|
48
|
+
run: |
|
|
49
|
+
# Update version in openrpc.json
|
|
50
|
+
jq --arg version "${{ steps.release.outputs.version }}" '.info.version = $version' src/lua/utils/openrpc.json > src/lua/utils/openrpc.json.tmp
|
|
51
|
+
mv src/lua/utils/openrpc.json.tmp src/lua/utils/openrpc.json
|
|
46
52
|
- name: Commit and push updated lock file
|
|
47
53
|
if: ${{ steps.release.outputs.release_created }}
|
|
48
54
|
run: |
|
|
@@ -53,15 +59,15 @@ jobs:
|
|
|
53
59
|
else
|
|
54
60
|
echo "No changes to uv.lock"
|
|
55
61
|
fi
|
|
56
|
-
- name: Commit and push updated
|
|
62
|
+
- name: Commit and push updated version files
|
|
57
63
|
if: ${{ steps.release.outputs.release_created }}
|
|
58
64
|
run: |
|
|
59
|
-
if [[ -n $(git status --porcelain balatrobot.json) ]]; then
|
|
60
|
-
git add balatrobot.json
|
|
61
|
-
git commit -m "chore(release): update
|
|
65
|
+
if [[ -n $(git status --porcelain balatrobot.json src/lua/utils/openrpc.json) ]]; then
|
|
66
|
+
git add balatrobot.json src/lua/utils/openrpc.json
|
|
67
|
+
git commit -m "chore(release): update version files to ${{ steps.release.outputs.version }}"
|
|
62
68
|
git push
|
|
63
69
|
else
|
|
64
|
-
echo "No changes to
|
|
70
|
+
echo "No changes to version files"
|
|
65
71
|
fi
|
|
66
72
|
- name: Notify consumer repo of new balatrobot release
|
|
67
73
|
if: ${{ steps.release.outputs.release_created }}
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
################################################################################
|
|
2
|
+
# MacOS
|
|
3
|
+
################################################################################
|
|
4
|
+
|
|
5
|
+
# General
|
|
6
|
+
.DS_Store
|
|
7
|
+
__MACOSX/
|
|
8
|
+
.AppleDouble
|
|
9
|
+
.LSOverride
|
|
10
|
+
Icon[
|
|
11
|
+
|
|
12
|
+
# Thumbnails
|
|
13
|
+
._*
|
|
14
|
+
|
|
15
|
+
# Files that might appear in the root of a volume
|
|
16
|
+
.DocumentRevisions-V100
|
|
17
|
+
.fseventsd
|
|
18
|
+
.Spotlight-V100
|
|
19
|
+
.TemporaryItems
|
|
20
|
+
.Trashes
|
|
21
|
+
.VolumeIcon.icns
|
|
22
|
+
.com.apple.timemachine.donotpresent
|
|
23
|
+
|
|
24
|
+
# Directories potentially created on remote AFP share
|
|
25
|
+
.AppleDB
|
|
26
|
+
.AppleDesktop
|
|
27
|
+
Network Trash Folder
|
|
28
|
+
Temporary Items
|
|
29
|
+
.apdisk
|
|
30
|
+
|
|
31
|
+
################################################################################
|
|
32
|
+
# Python
|
|
33
|
+
################################################################################
|
|
34
|
+
|
|
35
|
+
# Byte-compiled / optimized / DLL files
|
|
36
|
+
__pycache__/
|
|
37
|
+
*.py[codz]
|
|
38
|
+
*$py.class
|
|
39
|
+
|
|
40
|
+
# C extensions
|
|
41
|
+
*.so
|
|
42
|
+
|
|
43
|
+
# Distribution / packaging
|
|
44
|
+
.Python
|
|
45
|
+
build/
|
|
46
|
+
develop-eggs/
|
|
47
|
+
dist/
|
|
48
|
+
downloads/
|
|
49
|
+
eggs/
|
|
50
|
+
.eggs/
|
|
51
|
+
lib/
|
|
52
|
+
lib64/
|
|
53
|
+
parts/
|
|
54
|
+
sdist/
|
|
55
|
+
var/
|
|
56
|
+
wheels/
|
|
57
|
+
share/python-wheels/
|
|
58
|
+
*.egg-info/
|
|
59
|
+
.installed.cfg
|
|
60
|
+
*.egg
|
|
61
|
+
MANIFEST
|
|
62
|
+
|
|
63
|
+
# PyInstaller
|
|
64
|
+
# Usually these files are written by a python script from a template
|
|
65
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
66
|
+
*.manifest
|
|
67
|
+
*.spec
|
|
68
|
+
|
|
69
|
+
# Installer logs
|
|
70
|
+
pip-log.txt
|
|
71
|
+
pip-delete-this-directory.txt
|
|
72
|
+
|
|
73
|
+
# Unit test / coverage reports
|
|
74
|
+
htmlcov/
|
|
75
|
+
.tox/
|
|
76
|
+
.nox/
|
|
77
|
+
.coverage
|
|
78
|
+
.coverage.*
|
|
79
|
+
.cache
|
|
80
|
+
nosetests.xml
|
|
81
|
+
coverage.xml
|
|
82
|
+
*.cover
|
|
83
|
+
*.py.cover
|
|
84
|
+
.hypothesis/
|
|
85
|
+
.pytest_cache/
|
|
86
|
+
cover/
|
|
87
|
+
|
|
88
|
+
# Translations
|
|
89
|
+
*.mo
|
|
90
|
+
*.pot
|
|
91
|
+
|
|
92
|
+
# Django stuff:
|
|
93
|
+
*.log
|
|
94
|
+
local_settings.py
|
|
95
|
+
db.sqlite3
|
|
96
|
+
db.sqlite3-journal
|
|
97
|
+
|
|
98
|
+
# Flask stuff:
|
|
99
|
+
instance/
|
|
100
|
+
.webassets-cache
|
|
101
|
+
|
|
102
|
+
# Scrapy stuff:
|
|
103
|
+
.scrapy
|
|
104
|
+
|
|
105
|
+
# Sphinx documentation
|
|
106
|
+
docs/_build/
|
|
107
|
+
|
|
108
|
+
# PyBuilder
|
|
109
|
+
.pybuilder/
|
|
110
|
+
target/
|
|
111
|
+
|
|
112
|
+
# Jupyter Notebook
|
|
113
|
+
.ipynb_checkpoints
|
|
114
|
+
|
|
115
|
+
# IPython
|
|
116
|
+
profile_default/
|
|
117
|
+
ipython_config.py
|
|
118
|
+
|
|
119
|
+
# pyenv
|
|
120
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
121
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
122
|
+
# .python-version
|
|
123
|
+
|
|
124
|
+
# pipenv
|
|
125
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
126
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
127
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
128
|
+
# install all needed dependencies.
|
|
129
|
+
# Pipfile.lock
|
|
130
|
+
|
|
131
|
+
# UV
|
|
132
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
133
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
134
|
+
# commonly ignored for libraries.
|
|
135
|
+
# uv.lock
|
|
136
|
+
|
|
137
|
+
# poetry
|
|
138
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
139
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
140
|
+
# commonly ignored for libraries.
|
|
141
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
142
|
+
# poetry.lock
|
|
143
|
+
# poetry.toml
|
|
144
|
+
|
|
145
|
+
# pdm
|
|
146
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
147
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
148
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
149
|
+
# pdm.lock
|
|
150
|
+
# pdm.toml
|
|
151
|
+
.pdm-python
|
|
152
|
+
.pdm-build/
|
|
153
|
+
|
|
154
|
+
# pixi
|
|
155
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
156
|
+
# pixi.lock
|
|
157
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
158
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
159
|
+
.pixi
|
|
160
|
+
|
|
161
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
162
|
+
__pypackages__/
|
|
163
|
+
|
|
164
|
+
# Celery stuff
|
|
165
|
+
celerybeat-schedule
|
|
166
|
+
celerybeat.pid
|
|
167
|
+
|
|
168
|
+
# Redis
|
|
169
|
+
*.rdb
|
|
170
|
+
*.aof
|
|
171
|
+
*.pid
|
|
172
|
+
|
|
173
|
+
# RabbitMQ
|
|
174
|
+
mnesia/
|
|
175
|
+
rabbitmq/
|
|
176
|
+
rabbitmq-data/
|
|
177
|
+
|
|
178
|
+
# ActiveMQ
|
|
179
|
+
activemq-data/
|
|
180
|
+
|
|
181
|
+
# SageMath parsed files
|
|
182
|
+
*.sage.py
|
|
183
|
+
|
|
184
|
+
# Environments
|
|
185
|
+
.env
|
|
186
|
+
.envrc
|
|
187
|
+
.venv
|
|
188
|
+
env/
|
|
189
|
+
venv/
|
|
190
|
+
ENV/
|
|
191
|
+
env.bak/
|
|
192
|
+
venv.bak/
|
|
193
|
+
|
|
194
|
+
# Spyder project settings
|
|
195
|
+
.spyderproject
|
|
196
|
+
.spyproject
|
|
197
|
+
|
|
198
|
+
# Rope project settings
|
|
199
|
+
.ropeproject
|
|
200
|
+
|
|
201
|
+
# mkdocs documentation
|
|
202
|
+
/site
|
|
203
|
+
|
|
204
|
+
# mypy
|
|
205
|
+
.mypy_cache/
|
|
206
|
+
.dmypy.json
|
|
207
|
+
dmypy.json
|
|
208
|
+
|
|
209
|
+
# Pyre type checker
|
|
210
|
+
.pyre/
|
|
211
|
+
|
|
212
|
+
# pytype static type analyzer
|
|
213
|
+
.pytype/
|
|
214
|
+
|
|
215
|
+
# Cython debug symbols
|
|
216
|
+
cython_debug/
|
|
217
|
+
|
|
218
|
+
# PyCharm
|
|
219
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
220
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
221
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
222
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
223
|
+
# .idea/
|
|
224
|
+
|
|
225
|
+
# Abstra
|
|
226
|
+
# Abstra is an AI-powered process automation framework.
|
|
227
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
228
|
+
# Learn more at https://abstra.io/docs
|
|
229
|
+
.abstra/
|
|
230
|
+
|
|
231
|
+
# Visual Studio Code
|
|
232
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
233
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
234
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
235
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
236
|
+
# .vscode/
|
|
237
|
+
|
|
238
|
+
# Ruff stuff:
|
|
239
|
+
.ruff_cache/
|
|
240
|
+
|
|
241
|
+
# PyPI configuration file
|
|
242
|
+
.pypirc
|
|
243
|
+
|
|
244
|
+
# Marimo
|
|
245
|
+
marimo/_static/
|
|
246
|
+
marimo/_lsp/
|
|
247
|
+
__marimo__/
|
|
248
|
+
|
|
249
|
+
# Streamlit
|
|
250
|
+
.streamlit/secrets.toml
|
|
251
|
+
|
|
252
|
+
################################################################################
|
|
253
|
+
# Lua
|
|
254
|
+
################################################################################
|
|
255
|
+
|
|
256
|
+
# Lua Language Server
|
|
257
|
+
.luarc.json
|
|
258
|
+
|
|
259
|
+
# Compiled Lua sources
|
|
260
|
+
luac.out
|
|
261
|
+
|
|
262
|
+
# luarocks build files
|
|
263
|
+
*.src.rock
|
|
264
|
+
*.zip
|
|
265
|
+
*.tar.gz
|
|
266
|
+
|
|
267
|
+
# Object files
|
|
268
|
+
*.o
|
|
269
|
+
*.os
|
|
270
|
+
*.ko
|
|
271
|
+
*.obj
|
|
272
|
+
*.elf
|
|
273
|
+
|
|
274
|
+
# Precompiled Headers
|
|
275
|
+
*.gch
|
|
276
|
+
*.pch
|
|
277
|
+
|
|
278
|
+
# Libraries
|
|
279
|
+
*.lib
|
|
280
|
+
*.a
|
|
281
|
+
*.la
|
|
282
|
+
*.lo
|
|
283
|
+
*.def
|
|
284
|
+
*.exp
|
|
285
|
+
|
|
286
|
+
# Shared objects (inc. Windows DLLs)
|
|
287
|
+
*.dll
|
|
288
|
+
*.so
|
|
289
|
+
*.so.*
|
|
290
|
+
*.dylib
|
|
291
|
+
|
|
292
|
+
# Executables
|
|
293
|
+
*.exe
|
|
294
|
+
*.out
|
|
295
|
+
*.app
|
|
296
|
+
*.i*86
|
|
297
|
+
*.x86_64
|
|
298
|
+
*.hex
|
|
299
|
+
|
|
300
|
+
################################################################################
|
|
301
|
+
# Other files
|
|
302
|
+
################################################################################
|
|
303
|
+
|
|
304
|
+
# smods
|
|
305
|
+
smods
|
|
306
|
+
smods.wiki
|
|
307
|
+
|
|
308
|
+
# lovely dump
|
|
309
|
+
dump
|
|
310
|
+
|
|
311
|
+
# balatro
|
|
312
|
+
balatro
|
|
313
|
+
*.jkr
|
|
314
|
+
|
|
315
|
+
# balatrobot
|
|
316
|
+
runs/*.jsonl
|
|
317
|
+
|
|
318
|
+
################################################################################
|
|
319
|
+
# Legacy files
|
|
320
|
+
################################################################################
|
|
321
|
+
|
|
322
|
+
src/lua_old
|
|
323
|
+
src/lua_oldish
|
|
324
|
+
|
|
325
|
+
tests/lua_old
|
|
326
|
+
balatrobot_old.lua
|
|
327
|
+
balatrobot_oldish.lua
|
|
328
|
+
|
|
329
|
+
balatro_oldish.sh
|
|
330
|
+
balatro.sh
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -e
|
|
3
|
+
|
|
4
|
+
echo "Runtime: $MUX_RUNTIME"
|
|
5
|
+
echo "Project path: $MUX_PROJECT_PATH"
|
|
6
|
+
echo "Workspace: $PWD"
|
|
7
|
+
|
|
8
|
+
if [ "$MUX_RUNTIME" = "ssh" ]; then
|
|
9
|
+
echo "SSH runtime not supported"
|
|
10
|
+
exit 1
|
|
11
|
+
fi
|
|
12
|
+
|
|
13
|
+
if [ "$MUX_RUNTIME" != "local" ]; then
|
|
14
|
+
# Copy .envrc from project root
|
|
15
|
+
if [ -f "../.envrc" ]; then
|
|
16
|
+
echo "Copying .envrc from parent..."
|
|
17
|
+
cp "../.envrc" ".envrc"
|
|
18
|
+
elif [ -n "$MUX_PROJECT_PATH" ] && [ -f "$MUX_PROJECT_PATH/.envrc" ]; then
|
|
19
|
+
echo "Copying .envrc from project root..."
|
|
20
|
+
cp "$MUX_PROJECT_PATH/.envrc" ".envrc"
|
|
21
|
+
fi
|
|
22
|
+
|
|
23
|
+
# Copy .luarc.json for Lua language server
|
|
24
|
+
if [ -f "../.luarc.json" ]; then
|
|
25
|
+
echo "Copying .luarc.json from parent..."
|
|
26
|
+
cp "../.luarc.json" ".luarc.json"
|
|
27
|
+
elif [ -n "$MUX_PROJECT_PATH" ] && [ -f "$MUX_PROJECT_PATH/.luarc.json" ]; then
|
|
28
|
+
echo "Copying .luarc.json from project root..."
|
|
29
|
+
cp "$MUX_PROJECT_PATH/.luarc.json" ".luarc.json"
|
|
30
|
+
fi
|
|
31
|
+
else
|
|
32
|
+
echo "Local mode: using existing config files"
|
|
33
|
+
fi
|
|
34
|
+
|
|
35
|
+
echo "Setting up Python environment..."
|
|
36
|
+
uv sync --group dev --group test
|
|
37
|
+
|
|
38
|
+
if [ -f ".envrc" ]; then
|
|
39
|
+
echo "Sourcing .envrc..."
|
|
40
|
+
source .envrc
|
|
41
|
+
fi
|
|
42
|
+
|
|
43
|
+
echo "Init complete!"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Runs after every tool execution
|
|
3
|
+
|
|
4
|
+
# Run quality checks after Python or Lua file edits
|
|
5
|
+
if [[ "$MUX_TOOL" == file_edit_* ]]; then
|
|
6
|
+
file=$(echo "$MUX_TOOL_INPUT" | jq -r '.file_path')
|
|
7
|
+
|
|
8
|
+
if [[ "$file" == *.py ]] || [[ "$file" == *.lua ]]; then
|
|
9
|
+
echo "Running quality checks..." >&2
|
|
10
|
+
make quality 2>&1 || exit 1
|
|
11
|
+
fi
|
|
12
|
+
fi
|
|
@@ -1,5 +1,95 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.3.0](https://github.com/coder/balatrobot/compare/v1.2.2...v1.3.0) (2026-01-06)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **lua:** improve logging for endpoints ([680fd45](https://github.com/coder/balatrobot/commit/680fd45c2711c58a461c51cab04e42e5be0fb767))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Documentation
|
|
12
|
+
|
|
13
|
+
* **cli:** remove resize rule in hyperland config example ([ace84b5](https://github.com/coder/balatrobot/commit/ace84b59db8eb7a5051843adbad0f9dbd86fb32e))
|
|
14
|
+
* update deps and style of the docs ([784b780](https://github.com/coder/balatrobot/commit/784b780ce6c51cbd57e6694b624a75add9aa7df0))
|
|
15
|
+
|
|
16
|
+
## [1.2.2](https://github.com/coder/balatrobot/compare/v1.2.1...v1.2.2) (2026-01-04)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Documentation
|
|
20
|
+
|
|
21
|
+
* **contributing:** add linux native symlink location ([d07c354](https://github.com/coder/balatrobot/commit/d07c35430ef9ea438c11fa22abc82703ef92f5f8))
|
|
22
|
+
* **example-bot:** add example bot page ([73c4313](https://github.com/coder/balatrobot/commit/73c431325877dd38e2b43f67a7ac275da5239ba9))
|
|
23
|
+
* prepend `uvx` to balatrobot command ([e9e48e1](https://github.com/coder/balatrobot/commit/e9e48e1b97fcda33f15e174d8acc926387b17027))
|
|
24
|
+
|
|
25
|
+
## [1.2.1](https://github.com/coder/balatrobot/compare/v1.2.0...v1.2.1) (2026-01-01)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **ci:** update release workflow to sync openrpc.json version ([905609f](https://github.com/coder/balatrobot/commit/905609fbf0c72983a63bfabc8fce09825650f311))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Documentation
|
|
34
|
+
|
|
35
|
+
* **contributing:** update .luarc.json example ([c9c486a](https://github.com/coder/balatrobot/commit/c9c486a4bd6c660bf0feb4a54175d55f69128df1))
|
|
36
|
+
* use white logo version for docs logo ([e532087](https://github.com/coder/balatrobot/commit/e5320870f08b93191de35b4d57ab5dd501b50dd4))
|
|
37
|
+
|
|
38
|
+
## [1.2.0](https://github.com/coder/balatrobot/compare/v1.1.0...v1.2.0) (2026-01-01)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Features
|
|
42
|
+
|
|
43
|
+
* **lua.endpoints:** add `pack` endpoint ([32ff3eb](https://github.com/coder/balatrobot/commit/32ff3eb1aae56f81b78070c7d4b080987a29aea1))
|
|
44
|
+
* **lua.endpoints:** add pack endpoint ([9d3031f](https://github.com/coder/balatrobot/commit/9d3031f9405145d608848eacab0d6aa90aba0f2c))
|
|
45
|
+
* **lua.endpoints:** add support for adding packs to the `add` endpoint ([41374a7](https://github.com/coder/balatrobot/commit/41374a718a1616b1e7e5298a510cac27de624771))
|
|
46
|
+
* **lua.endpoints:** allow rearranging cards during booster pack state ([16e4170](https://github.com/coder/balatrobot/commit/16e417074beaa006f71d34d809d7c7f1248971f5))
|
|
47
|
+
* **lua.endpoints:** extend rearrange to pack state ([15f282c](https://github.com/coder/balatrobot/commit/15f282c870e771970ddef3cb2ceca8a29eee1649))
|
|
48
|
+
* **lua.utils:** add `cards` field to gamestate ([8447855](https://github.com/coder/balatrobot/commit/8447855365c08db38cd555810ea92d6cf0098ff8))
|
|
49
|
+
* **lua.utils:** add pack keys enums ([d8cdb33](https://github.com/coder/balatrobot/commit/d8cdb335331332be2b0c2c64bdfbee8f1b10d602))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Bug Fixes
|
|
53
|
+
|
|
54
|
+
* **lua.endpoints:** await hand to be loaded for Arcana/Spectral packs ([43e41a4](https://github.com/coder/balatrobot/commit/43e41a46f94718996a8f2d8f8b960148471f9cda))
|
|
55
|
+
* **lua.endpoints:** improve await condition when buying a pack ([4993e77](https://github.com/coder/balatrobot/commit/4993e776d8fbcad138eaff63ac463818e8f0102f))
|
|
56
|
+
* **lua.utils:** use appropriate field for the request in debugger ([d79a81d](https://github.com/coder/balatrobot/commit/d79a81d881f64f41293ac5d63ba23d916a29deab))
|
|
57
|
+
* **lua:** fix target selection to wait longer ([e98d4ea](https://github.com/coder/balatrobot/commit/e98d4ea7c5f6673d2e5b397c2eb5fdbc75b7bd04))
|
|
58
|
+
* **validator:** revert to old behaviour for array items ([729e164](https://github.com/coder/balatrobot/commit/729e164105a221c5233255ba6b09a91fae2fb2f5))
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### Performance Improvements
|
|
62
|
+
|
|
63
|
+
* change pytest-xdist config from loadfile to loadscope ([d7c2a28](https://github.com/coder/balatrobot/commit/d7c2a289f61ea748778dfe83d94ffcf15767cbd0))
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Documentation
|
|
67
|
+
|
|
68
|
+
* add conventional commits guideline to contributing ([bf164b1](https://github.com/coder/balatrobot/commit/bf164b12a58de69826efc1929db9ed6ab6c7ad87))
|
|
69
|
+
* **api:** add required state for rearrange endpoint ([481d579](https://github.com/coder/balatrobot/commit/481d579ae3c610320e13937eeadcbd45de554cb8))
|
|
70
|
+
* **api:** fix api.md formatting ([4c85dec](https://github.com/coder/balatrobot/commit/4c85decdb9598433ac7295650181aad0b51cd92e))
|
|
71
|
+
* **api:** remove comment from the gamestate example ([44a169f](https://github.com/coder/balatrobot/commit/44a169f1d9c28b96fc20108efe508bc558a86e56))
|
|
72
|
+
* **api:** update the `add` endpoint to support packs ([36868f2](https://github.com/coder/balatrobot/commit/36868f27d1c8c6871580f6c6a20e60b5d278a194))
|
|
73
|
+
* **CLAUDE:** add GitHub repo link to CLAUDE.md ([9013de0](https://github.com/coder/balatrobot/commit/9013de0b30ce5db957cee7833c81f764604b4103))
|
|
74
|
+
* docs fixes ([099147a](https://github.com/coder/balatrobot/commit/099147aaaffd99e516844f90b4f0b721927f128a))
|
|
75
|
+
* **endpoints:** fix pack_select formatting ([535e3b0](https://github.com/coder/balatrobot/commit/535e3b00b45f658680383e278ec887fca566a90b))
|
|
76
|
+
* **endpoints:** fix pack_select formatting ([7c0535c](https://github.com/coder/balatrobot/commit/7c0535c5bf93e87ec54da4c326fe42ce91c7e296))
|
|
77
|
+
|
|
78
|
+
## [1.1.0](https://github.com/coder/balatrobot/compare/v1.0.0...v1.1.0) (2025-12-24)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
### Features
|
|
82
|
+
|
|
83
|
+
* **balatrobot:** add Windows support to CLI ([843a1b7](https://github.com/coder/balatrobot/commit/843a1b7b6dbf049a1cc1d1510714519d642aa0c2))
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
### Documentation
|
|
87
|
+
|
|
88
|
+
* **cli:** `run_lovely_macos.sh` is not required ([ccf1996](https://github.com/coder/balatrobot/commit/ccf1996fe9e960ed10e25b783500ae3b806debfd))
|
|
89
|
+
* **contributing:** improve contributing guide ([d5576b2](https://github.com/coder/balatrobot/commit/d5576b2c50da5f5488c1cca1c0e5cf3f61025408))
|
|
90
|
+
* **index:** remove link to legacy docs ([23029cd](https://github.com/coder/balatrobot/commit/23029cd0b8bdbe33f7ed41c02c9aed8e37da837d))
|
|
91
|
+
* **readme:** remove the imgs from the related project section ([354de3a](https://github.com/coder/balatrobot/commit/354de3a2f2966dcd98e5c62751b740804d5b1afb))
|
|
92
|
+
|
|
3
93
|
## 1.0.0 (2025-12-23)
|
|
4
94
|
|
|
5
95
|
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
|
4
4
|
|
|
5
|
+
**GitHub Repository**: [`coder/balatrobot`](https://github.com/coder/balatrobot)
|
|
6
|
+
|
|
5
7
|
## Overview
|
|
6
8
|
|
|
7
9
|
BalatroBot is a framework for Balatro bot development. It consists of two main parts:
|
|
@@ -37,6 +39,31 @@ pytest tests/cli -m "not integration"
|
|
|
37
39
|
balatrobot --fast --debug
|
|
38
40
|
```
|
|
39
41
|
|
|
42
|
+
### Make Commands
|
|
43
|
+
|
|
44
|
+
Available make targets:
|
|
45
|
+
|
|
46
|
+
| Target | Description |
|
|
47
|
+
| ---------------- | ------------------------------------------------------- |
|
|
48
|
+
| `make help` | Show all available targets |
|
|
49
|
+
| `make lint` | Run ruff linter (check only) |
|
|
50
|
+
| `make format` | Run ruff and mdformat formatters |
|
|
51
|
+
| `make typecheck` | Run type checker (Python and Lua) |
|
|
52
|
+
| `make quality` | Run all code quality checks (lint + typecheck + format) |
|
|
53
|
+
| `make test` | Run all tests |
|
|
54
|
+
| `make all` | Run all quality checks and tests |
|
|
55
|
+
| `make fixtures` | Generate test fixtures |
|
|
56
|
+
| `make install` | Install dependencies |
|
|
57
|
+
|
|
58
|
+
**Important rules:**
|
|
59
|
+
|
|
60
|
+
1. **Only run make commands when explicitly asked.** Do not proactively run `make test`, `make quality`, etc.
|
|
61
|
+
2. **Never run bare linting/formatting/typechecking tools.** Always use make targets instead:
|
|
62
|
+
- Use `make lint` instead of `ruff check`
|
|
63
|
+
- Use `make format` instead of `ruff format`
|
|
64
|
+
- Use `make typecheck` instead of `ty check`
|
|
65
|
+
- Use `make quality` for all checks combined
|
|
66
|
+
|
|
40
67
|
## Architecture
|
|
41
68
|
|
|
42
69
|
### 1. Python Layer (`src/balatrobot/`)
|
|
@@ -46,6 +73,7 @@ Controls the game lifecycle and provides the CLI.
|
|
|
46
73
|
- **CLI** (`cli.py`): Entry point (`balatrobot`). Handles arguments like `--fast`, `--debug`, `--headless`.
|
|
47
74
|
- **Manager** (`manager.py`): `BalatroInstance` context manager. Starts the game process, handles logging, and waits for the API to be healthy.
|
|
48
75
|
- **Config** (`config.py`): Configuration management using `dataclasses` and environment variables.
|
|
76
|
+
- **Platform Abstraction** (`platforms/`): Cross-platform game launcher system with platform-specific implementations for macOS, Windows, and native Love2D.
|
|
49
77
|
|
|
50
78
|
### 2. Lua Layer (`src/lua/`)
|
|
51
79
|
|
|
@@ -72,11 +100,12 @@ Runs inside the game engine and exposes an API.
|
|
|
72
100
|
|
|
73
101
|
- Stateless modules defining `schema` and `execute` functions.
|
|
74
102
|
- 0-based indexing in API vs 1-based in Lua.
|
|
103
|
+
- OpenRPC Specification (`src/lua/utils/openrpc.json`): Machine-readable API documentation describing all endpoints.
|
|
75
104
|
|
|
76
105
|
**Core Endpoints:**
|
|
77
106
|
|
|
78
|
-
- `add.lua`: Add a new card (joker, consumable, voucher, or
|
|
79
|
-
- `buy.lua`: Buy a card from the shop.
|
|
107
|
+
- `add.lua`: Add a new card (joker, consumable, voucher, playing card, or booster pack).
|
|
108
|
+
- `buy.lua`: Buy a card or booster pack from the shop.
|
|
80
109
|
- `cash_out.lua`: Cash out and collect round rewards.
|
|
81
110
|
- `discard.lua`: Discard cards from the hand.
|
|
82
111
|
- `gamestate.lua`: Get current game state.
|
|
@@ -84,6 +113,7 @@ Runs inside the game engine and exposes an API.
|
|
|
84
113
|
- `load.lua`: Load a saved run state from a file.
|
|
85
114
|
- `menu.lua`: Return to the main menu from any game state.
|
|
86
115
|
- `next_round.lua`: Leave the shop and advance to blind selection.
|
|
116
|
+
- `pack.lua`: Select or skip a card from an opened booster pack.
|
|
87
117
|
- `play.lua`: Play a card from the hand.
|
|
88
118
|
- `rearrange.lua`: Rearrange cards in hand, jokers, or consumables.
|
|
89
119
|
- `reroll.lua`: Reroll to update the cards in the shop area.
|