balatrobot 0.7.0__tar.gz → 0.7.1__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.
Potentially problematic release.
This version of balatrobot might be problematic. Click here for more details.
- {balatrobot-0.7.0 → balatrobot-0.7.1}/CHANGELOG.md +12 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/PKG-INFO +4 -1
- {balatrobot-0.7.0 → balatrobot-0.7.1}/README.md +3 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/balatrobot.json +1 -1
- {balatrobot-0.7.0 → balatrobot-0.7.1}/pyproject.toml +1 -1
- {balatrobot-0.7.0 → balatrobot-0.7.1}/src/balatrobot/__init__.py +1 -1
- {balatrobot-0.7.0 → balatrobot-0.7.1}/src/lua/api.lua +1 -21
- {balatrobot-0.7.0 → balatrobot-0.7.1}/uv.lock +1 -1
- {balatrobot-0.7.0 → balatrobot-0.7.1}/.claude/commands/commit-msg.md +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/.claude/commands/commit.md +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/.claude/commands/test.md +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/.claude/settings.json +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/.cursor/rules/docs-formatting.mdc +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/.cursor/rules/python-development.mdc +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/.editorconfig +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/.envrc.example +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/.gitattributes +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/.github/workflows/code_quality.yml +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/.github/workflows/deploy_docs.yml +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/.github/workflows/release-pypi.yml +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/.github/workflows/release_please.yml +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/.gitignore +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/.gitmodules +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/.mdformat.toml +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/.python-version +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/.vscode/extensions.json +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/.vscode/settings.json +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/CLAUDE.md +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/LICENSE +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/Makefile +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/balatro.sh +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/balatrobot.lua +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/bots/example.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/bots/replay.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/docs/assets/balatrobot.svg +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/docs/balatrobot-api.md +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/docs/contributing.md +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/docs/developing-bots.md +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/docs/index.md +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/docs/installation.md +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/docs/logging-systems.md +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/docs/protocol-api.md +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/mkdocs.yml +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/runs/.gitkeep +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/src/balatrobot/client.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/src/balatrobot/enums.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/src/balatrobot/exceptions.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/src/balatrobot/models.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/src/balatrobot/py.typed +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/src/lua/log.lua +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/src/lua/settings.lua +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/src/lua/types.lua +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/src/lua/utils.lua +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/balatrobot/conftest.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/balatrobot/test_client.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/balatrobot/test_exceptions.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/balatrobot/test_models.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/conftest.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/__init__.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/conftest.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/endpoints/__init__.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/endpoints/checkpoints/basic_shop_setup.jkr +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/endpoints/checkpoints/buy_cant_use.jkr +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/endpoints/checkpoints/plasma_deck.jkr +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/endpoints/test_cash_out.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/endpoints/test_get_gamestate.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/endpoints/test_get_save_info.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/endpoints/test_go_to_menu.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/endpoints/test_load_save.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/endpoints/test_play_hand_or_discard.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/endpoints/test_rearrange_consumables.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/endpoints/test_rearrange_hand.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/endpoints/test_rearrange_jokers.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/endpoints/test_sell_consumable.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/endpoints/test_sell_joker.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/endpoints/test_shop.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/endpoints/test_skip_or_select_blind.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/endpoints/test_start_run.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/endpoints/test_use_consumable.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/test_connection.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/test_log.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/lua/test_protocol_errors.py +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/runs/buy_joker.jsonl +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/runs/no_shop.jsonl +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/runs/rearrange_consumables.jsonl +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/runs/rearrange_jokers.jsonl +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/runs/sell_consumables.jsonl +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/runs/sell_jokers.jsonl +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/runs/shop_reroll.jsonl +0 -0
- {balatrobot-0.7.0 → balatrobot-0.7.1}/tests/runs/use_consumable.planet.jsonl +0 -0
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.7.1](https://github.com/coder/balatrobot/compare/v0.7.0...v0.7.1) (2025-10-23)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* remove resize from screenshot ([83876d7](https://github.com/coder/balatrobot/commit/83876d70018098c0368f4388360ef9ac0228cb5c))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Documentation
|
|
12
|
+
|
|
13
|
+
* add pypi badge ([accb2df](https://github.com/coder/balatrobot/commit/accb2df7ee98c540170328aa51e30a96bb33d010))
|
|
14
|
+
|
|
3
15
|
## [0.7.0](https://github.com/coder/balatrobot/compare/v0.6.1...v0.7.0) (2025-10-23)
|
|
4
16
|
|
|
5
17
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: balatrobot
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.1
|
|
4
4
|
Summary: A framework for Balatro bot development
|
|
5
5
|
Project-URL: Homepage, https://github.com/coder/balatrobot
|
|
6
6
|
Project-URL: Issues, https://github.com/coder/balatrobot/issues
|
|
@@ -25,6 +25,9 @@ Description-Content-Type: text/markdown
|
|
|
25
25
|
<a href="https://github.com/coder/balatrobot/releases">
|
|
26
26
|
<img alt="GitHub release" src="https://img.shields.io/github/v/release/coder/balatrobot?include_prereleases&sort=semver&style=for-the-badge&logo=github"/>
|
|
27
27
|
</a>
|
|
28
|
+
<a href="https://pypi.org/project/balatrobot/">
|
|
29
|
+
<img alt="PyPI" src="https://img.shields.io/pypi/v/balatrobot?style=for-the-badge&logo=pypi&logoColor=white"/>
|
|
30
|
+
</a>
|
|
28
31
|
<a href="https://discord.gg/TPn6FYgGPv">
|
|
29
32
|
<img alt="Discord" src="https://img.shields.io/badge/discord-server?style=for-the-badge&logo=discord&logoColor=%23FFFFFF&color=%235865F2"/>
|
|
30
33
|
</a>
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
<a href="https://github.com/coder/balatrobot/releases">
|
|
5
5
|
<img alt="GitHub release" src="https://img.shields.io/github/v/release/coder/balatrobot?include_prereleases&sort=semver&style=for-the-badge&logo=github"/>
|
|
6
6
|
</a>
|
|
7
|
+
<a href="https://pypi.org/project/balatrobot/">
|
|
8
|
+
<img alt="PyPI" src="https://img.shields.io/pypi/v/balatrobot?style=for-the-badge&logo=pypi&logoColor=white"/>
|
|
9
|
+
</a>
|
|
7
10
|
<a href="https://discord.gg/TPn6FYgGPv">
|
|
8
11
|
<img alt="Discord" src="https://img.shields.io/badge/discord-server?style=for-the-badge&logo=discord&logoColor=%23FFFFFF&color=%235865F2"/>
|
|
9
12
|
</a>
|
|
@@ -1474,29 +1474,9 @@ API.functions["screenshot"] = function(args)
|
|
|
1474
1474
|
-- Capture screenshot using LÖVE 11.0+ API
|
|
1475
1475
|
love.graphics.captureScreenshot(function(imagedata)
|
|
1476
1476
|
if imagedata then
|
|
1477
|
-
-- Scale down the image to reduce file size (10% of original size)
|
|
1478
|
-
local original_width = imagedata:getWidth()
|
|
1479
|
-
local original_height = imagedata:getHeight()
|
|
1480
|
-
local scale_factor = 0.2
|
|
1481
|
-
local new_width = math.floor(original_width * scale_factor)
|
|
1482
|
-
local new_height = math.floor(original_height * scale_factor)
|
|
1483
|
-
|
|
1484
|
-
-- Create a new scaled ImageData
|
|
1485
|
-
local scaled_imagedata = love.image.newImageData(new_width, new_height)
|
|
1486
|
-
|
|
1487
|
-
-- Scale the image by sampling pixels
|
|
1488
|
-
for y = 0, new_height - 1 do
|
|
1489
|
-
for x = 0, new_width - 1 do
|
|
1490
|
-
local src_x = math.floor(x / scale_factor)
|
|
1491
|
-
local src_y = math.floor(y / scale_factor)
|
|
1492
|
-
local r, g, b, a = imagedata:getPixel(src_x, src_y)
|
|
1493
|
-
scaled_imagedata:setPixel(x, y, r, g, b, a)
|
|
1494
|
-
end
|
|
1495
|
-
end
|
|
1496
|
-
|
|
1497
1477
|
-- Save the screenshot as PNG to LÖVE's write directory
|
|
1498
1478
|
local png_success, png_err = pcall(function()
|
|
1499
|
-
|
|
1479
|
+
imagedata:encode("png", screenshot_filename)
|
|
1500
1480
|
end)
|
|
1501
1481
|
|
|
1502
1482
|
if png_success then
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|