2 Commits
0.4.0 ... 0.4.1

Author SHA1 Message Date
github-actions[bot]
8c4b49f0d7 chore(release): 0.4.1 2025-10-05 11:23:28 +00:00
f307a7f457 chore(message.py): add target_id argument to Message.ack classmethod 2025-10-05 13:20:48 +02:00
4 changed files with 15 additions and 4 deletions

View File

@@ -2,6 +2,12 @@
All notable changes to this project will be documented in this file.
## [0.4.1] - 2025-10-05
### Miscellaneous Tasks
- [`f307a7f`](https://gitea.pufereq.pl/judas/judas_protocol/commit/f307a7f457924ff1717ed4c8ce195ce022dd5680) **message.py**: add `target_id` argument to `Message.ack` classmethod
## [0.4.0] - 2025-10-05
### Features

View File

@@ -4,7 +4,7 @@ build-backend = "uv_build"
[project]
name = "judas_protocol"
version = "0.4.0"
version = "0.4.1"
description = "The judas protocol"
readme = "README.md"
authors = []

View File

@@ -117,14 +117,19 @@ class Message:
return cls.from_json(data.decode("utf-8"))
@classmethod
def ack(cls) -> Message:
def ack(cls, target_id: str) -> Message:
"""Create an ACK message.
Args:
target_id (str): The ID of the message to acknowledge.
Returns:
Message: The created ACK message.
"""
return cls(
category=Category.CONTROL, action=ControlAction.ACK, payload={}
category=Category.CONTROL,
action=ControlAction.ACK,
payload={"target_id": target_id},
)
@classmethod

2
uv.lock generated
View File

@@ -240,7 +240,7 @@ wheels = [
[[package]]
name = "judas-protocol"
version = "0.4.0"
version = "0.4.1"
source = { editable = "." }
[package.dev-dependencies]