balatrobot 0.7.3__tar.gz → 0.7.5__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.3 → balatrobot-0.7.5}/.github/workflows/release_please.yml +10 -4
- {balatrobot-0.7.3 → balatrobot-0.7.5}/CHANGELOG.md +14 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/PKG-INFO +1 -1
- {balatrobot-0.7.3 → balatrobot-0.7.5}/balatrobot.json +1 -1
- {balatrobot-0.7.3 → balatrobot-0.7.5}/pyproject.toml +1 -1
- {balatrobot-0.7.3 → balatrobot-0.7.5}/src/balatrobot/__init__.py +1 -1
- {balatrobot-0.7.3 → balatrobot-0.7.5}/src/balatrobot/client.py +16 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/src/lua/utils.lua +3 -1
- {balatrobot-0.7.3 → balatrobot-0.7.5}/uv.lock +1 -1
- {balatrobot-0.7.3 → balatrobot-0.7.5}/.claude/commands/commit-msg.md +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/.claude/commands/commit.md +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/.claude/commands/test.md +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/.claude/settings.json +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/.cursor/rules/docs-formatting.mdc +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/.cursor/rules/python-development.mdc +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/.editorconfig +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/.envrc.example +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/.gitattributes +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/.github/workflows/code_quality.yml +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/.github/workflows/deploy_docs.yml +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/.github/workflows/release-pypi.yml +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/.gitignore +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/.gitmodules +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/.mdformat.toml +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/.python-version +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/.vscode/extensions.json +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/.vscode/settings.json +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/CLAUDE.md +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/LICENSE +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/Makefile +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/README.md +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/balatro.sh +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/balatrobot.lua +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/bots/example.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/bots/replay.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/docs/assets/balatrobot.svg +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/docs/balatrobot-api.md +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/docs/contributing.md +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/docs/developing-bots.md +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/docs/index.md +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/docs/installation.md +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/docs/logging-systems.md +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/docs/protocol-api.md +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/mkdocs.yml +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/runs/.gitkeep +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/src/balatrobot/enums.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/src/balatrobot/exceptions.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/src/balatrobot/models.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/src/balatrobot/py.typed +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/src/lua/api.lua +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/src/lua/log.lua +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/src/lua/settings.lua +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/src/lua/types.lua +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/balatrobot/conftest.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/balatrobot/test_client.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/balatrobot/test_exceptions.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/balatrobot/test_models.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/conftest.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/__init__.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/conftest.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/endpoints/__init__.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/endpoints/checkpoints/basic_shop_setup.jkr +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/endpoints/checkpoints/buy_cant_use.jkr +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/endpoints/checkpoints/plasma_deck.jkr +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/endpoints/test_cash_out.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/endpoints/test_get_gamestate.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/endpoints/test_get_save_info.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/endpoints/test_go_to_menu.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/endpoints/test_load_save.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/endpoints/test_play_hand_or_discard.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/endpoints/test_rearrange_consumables.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/endpoints/test_rearrange_hand.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/endpoints/test_rearrange_jokers.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/endpoints/test_sell_consumable.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/endpoints/test_sell_joker.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/endpoints/test_shop.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/endpoints/test_skip_or_select_blind.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/endpoints/test_start_run.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/endpoints/test_use_consumable.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/test_connection.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/test_log.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/lua/test_protocol_errors.py +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/runs/buy_joker.jsonl +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/runs/no_shop.jsonl +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/runs/rearrange_consumables.jsonl +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/runs/rearrange_jokers.jsonl +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/runs/sell_consumables.jsonl +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/runs/sell_jokers.jsonl +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/runs/shop_reroll.jsonl +0 -0
- {balatrobot-0.7.3 → balatrobot-0.7.5}/tests/runs/use_consumable.planet.jsonl +0 -0
|
@@ -66,11 +66,17 @@ jobs:
|
|
|
66
66
|
- name: Notify consumer repo of new balatrobot release
|
|
67
67
|
if: ${{ steps.release.outputs.release_created }}
|
|
68
68
|
env:
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
BALATROLLM_REPO: "coder/balatrollm"
|
|
70
|
+
BALATROLLM_TOKEN: ${{ secrets.BALATROLLM_TOKEN }}
|
|
71
|
+
BALATRO_REPO: "S1M0N38/balatro"
|
|
72
|
+
BALATRO_TOKEN: ${{ secrets.BALATRO_TOKEN }}
|
|
71
73
|
run: |
|
|
72
74
|
VERSION="${{ steps.release.outputs.version }}"
|
|
73
75
|
curl -X POST -H "Accept: application/vnd.github+json" \
|
|
74
|
-
-H "Authorization: token $
|
|
75
|
-
https://api.github.com/repos/$
|
|
76
|
+
-H "Authorization: token $BALATROLLM_TOKEN" \
|
|
77
|
+
https://api.github.com/repos/$BALATROLLM_REPO/dispatches \
|
|
78
|
+
-d "{\"event_type\":\"balatrobot_release\",\"client_payload\":{\"version\":\"$VERSION\"}}"
|
|
79
|
+
curl -X POST -H "Accept: application/vnd.github+json" \
|
|
80
|
+
-H "Authorization: token $BALATRO_TOKEN" \
|
|
81
|
+
https://api.github.com/repos/$BALATRO_REPO/dispatches \
|
|
76
82
|
-d "{\"event_type\":\"balatrobot_release\",\"client_payload\":{\"version\":\"$VERSION\"}}"
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.7.5](https://github.com/coder/balatrobot/compare/v0.7.4...v0.7.5) (2025-10-30)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* prevent memory leaks generating UI descriptions ([e8d62e1](https://github.com/coder/balatrobot/commit/e8d62e1146fd156e44b1af4d124270bbda5b2c16))
|
|
9
|
+
|
|
10
|
+
## [0.7.4](https://github.com/coder/balatrobot/compare/v0.7.3...v0.7.4) (2025-10-28)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* add timeout to socket.recv ([12d086a](https://github.com/coder/balatrobot/commit/12d086a80294f08fe449012c2a3a27708d7aada0))
|
|
16
|
+
|
|
3
17
|
## [0.7.3](https://github.com/coder/balatrobot/compare/v0.7.2...v0.7.3) (2025-10-25)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -6,6 +6,7 @@ import platform
|
|
|
6
6
|
import re
|
|
7
7
|
import shutil
|
|
8
8
|
import socket
|
|
9
|
+
import time
|
|
9
10
|
from pathlib import Path
|
|
10
11
|
from typing import Self
|
|
11
12
|
|
|
@@ -186,6 +187,9 @@ class BalatroClient:
|
|
|
186
187
|
logger.debug(f"Sending API request: {name}")
|
|
187
188
|
|
|
188
189
|
try:
|
|
190
|
+
# Start timing measurement
|
|
191
|
+
start_time = time.perf_counter()
|
|
192
|
+
|
|
189
193
|
# Send request
|
|
190
194
|
message = request.model_dump_json() + "\n"
|
|
191
195
|
self._socket.send(message.encode())
|
|
@@ -216,6 +220,18 @@ class BalatroClient:
|
|
|
216
220
|
logger.debug(f"API request {name} completed successfully")
|
|
217
221
|
return response_data
|
|
218
222
|
|
|
223
|
+
except socket.timeout as e:
|
|
224
|
+
# Calculate elapsed time and log timeout
|
|
225
|
+
elapsed_time = time.perf_counter() - start_time
|
|
226
|
+
logger.warning(
|
|
227
|
+
f"Timeout on API request {name}: took {elapsed_time:.3f}s, "
|
|
228
|
+
f"exceeded timeout of {self.timeout}s (port: {self.port})"
|
|
229
|
+
)
|
|
230
|
+
raise ConnectionFailedError(
|
|
231
|
+
f"Socket timeout during communication: {e}",
|
|
232
|
+
error_code="E008",
|
|
233
|
+
context={"error": str(e), "elapsed_time": elapsed_time},
|
|
234
|
+
) from e
|
|
219
235
|
except socket.error as e:
|
|
220
236
|
logger.error(f"Socket error during API request {name}: {e}")
|
|
221
237
|
raise ConnectionFailedError(
|
|
@@ -707,7 +707,9 @@ end
|
|
|
707
707
|
---@return string description The description text from UI
|
|
708
708
|
function utils.get_card_ui_description(card)
|
|
709
709
|
-- Generate the UI structure (same as hover tooltip)
|
|
710
|
-
|
|
710
|
+
card:hover()
|
|
711
|
+
card:stop_hover()
|
|
712
|
+
local ui_table = card.ability_UIBox_table
|
|
711
713
|
if not ui_table then
|
|
712
714
|
return ""
|
|
713
715
|
end
|
|
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
|