ai-plays-jackbox 0.2.1__tar.gz → 0.2.2__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 ai-plays-jackbox might be problematic. Click here for more details.
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/PKG-INFO +2 -2
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/README.md +1 -1
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/bot_base.py +7 -8
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/llm/gemini_model.py +1 -1
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/pyproject.toml +3 -3
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/LICENSE +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/__init__.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/__init__.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/bot_factory.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/bot_personality.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/jackbox5/__init__.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/jackbox5/bot_base.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/jackbox5/mad_verse_city.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/jackbox5/patently_stupid.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/jackbox6/__init__.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/jackbox6/bot_base.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/jackbox6/dictionarium.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/jackbox6/joke_boat.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/jackbox7/__init__.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/jackbox7/bot_base.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/jackbox7/quiplash3.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/jackbox8/__init__.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/jackbox8/bot_base.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/jackbox8/job_job.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/standalone/__init__.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/standalone/drawful2.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/cli/__init__.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/cli/main.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/constants.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/llm/__init__.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/llm/chat_model.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/llm/chat_model_factory.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/llm/ollama_model.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/llm/openai_model.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/room/__init__.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/room/room.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/run.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/scripts/lint.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/ui/__init__.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/ui/main.py +0 -0
- {ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/ui/startup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: ai-plays-jackbox
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Bringing the dead internet theory to life. Have AI play JackBox with you; no friends required!
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Daniel S. Thompson
|
|
@@ -28,7 +28,7 @@ Project-URL: Bug Tracker, https://github.com/SudoSpartanDan/AIPlaysJackBox/issue
|
|
|
28
28
|
Project-URL: Repository, https://github.com/SudoSpartanDan/AIPlaysJackBox
|
|
29
29
|
Description-Content-Type: text/markdown
|
|
30
30
|
|
|
31
|
-
#
|
|
31
|
+
# ai-plays-jackbox
|
|
32
32
|
|
|
33
33
|

|
|
34
34
|

|
|
@@ -2,7 +2,7 @@ import json
|
|
|
2
2
|
import threading
|
|
3
3
|
import traceback
|
|
4
4
|
from abc import ABC, abstractmethod
|
|
5
|
-
from typing import Optional
|
|
5
|
+
from typing import Optional, Union
|
|
6
6
|
from urllib import parse
|
|
7
7
|
from uuid import uuid4
|
|
8
8
|
|
|
@@ -110,18 +110,17 @@ class JackBoxBotBase(ABC):
|
|
|
110
110
|
def _on_message(self, wsapp, message) -> None:
|
|
111
111
|
server_message = ServerMessage.model_validate_json(message)
|
|
112
112
|
|
|
113
|
-
# logger.info(server_message.result)
|
|
114
|
-
|
|
115
113
|
if server_message.opcode == "client/welcome":
|
|
116
114
|
self._player_id = server_message.result["id"]
|
|
117
115
|
self._handle_welcome(server_message.result)
|
|
118
116
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
117
|
+
operation: Optional[Union[ObjectOperation, TextOperation]] = None
|
|
118
|
+
if server_message.opcode == "object":
|
|
119
|
+
operation = ObjectOperation(**server_message.result)
|
|
120
|
+
elif server_message.opcode == "text":
|
|
121
|
+
operation = TextOperation(**server_message.result)
|
|
124
122
|
|
|
123
|
+
if operation is not None:
|
|
125
124
|
if self._is_player_operation_key(operation.key):
|
|
126
125
|
self._handle_player_operation(operation.json_data)
|
|
127
126
|
if self._is_room_operation_key(operation.key):
|
|
@@ -22,7 +22,7 @@ class GeminiModel(ChatModel):
|
|
|
22
22
|
|
|
23
23
|
# Check connection and if model exists, this will hard fail if connection can't be made
|
|
24
24
|
# Or if the model is not found
|
|
25
|
-
_ = self._gemini_vertex_ai_client.models.get(self._model)
|
|
25
|
+
_ = self._gemini_vertex_ai_client.models.get(model=self._model)
|
|
26
26
|
|
|
27
27
|
@classmethod
|
|
28
28
|
def get_default_model(cls):
|
|
@@ -44,14 +44,14 @@ module = ["demoji.*"]
|
|
|
44
44
|
follow_untyped_imports = true
|
|
45
45
|
|
|
46
46
|
[tool.poetry]
|
|
47
|
-
version = "0.2.
|
|
47
|
+
version = "0.2.2"
|
|
48
48
|
|
|
49
49
|
[tool.poetry.group.dev.dependencies]
|
|
50
50
|
autoflake = "^2.3.1"
|
|
51
51
|
black = "^25.1.0"
|
|
52
52
|
isort = "^6.0.1"
|
|
53
|
-
mypy = "^1.16.
|
|
54
|
-
types-requests = "^2.32.
|
|
53
|
+
mypy = "^1.16.1"
|
|
54
|
+
types-requests = "^2.32.4.20250611"
|
|
55
55
|
types-psutil = "^7.0.0.20250601"
|
|
56
56
|
|
|
57
57
|
[tool.poetry-dynamic-versioning]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/jackbox5/mad_verse_city.py
RENAMED
|
File without changes
|
{ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/jackbox5/patently_stupid.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/jackbox6/dictionarium.py
RENAMED
|
File without changes
|
{ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/jackbox6/joke_boat.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/jackbox7/quiplash3.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/standalone/__init__.py
RENAMED
|
File without changes
|
{ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/bot/standalone/drawful2.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ai_plays_jackbox-0.2.1 → ai_plays_jackbox-0.2.2}/ai_plays_jackbox/llm/chat_model_factory.py
RENAMED
|
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
|