minions-comms 0.1.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.
@@ -0,0 +1,21 @@
1
+ node_modules/
2
+ dist/
3
+ .turbo/
4
+ *.tsbuildinfo
5
+ __pycache__/
6
+ *.pyc
7
+ .venv/
8
+ *.egg-info/
9
+ dist/
10
+ build/
11
+ .astro/
12
+ .env
13
+ .env.local
14
+ coverage/
15
+ .pytest_cache/
16
+ PROMPT.md
17
+ PROMPTS.md
18
+
19
+ # Local Netlify folder
20
+ .netlify
21
+ .claude
@@ -0,0 +1,36 @@
1
+ Metadata-Version: 2.4
2
+ Name: minions-comms
3
+ Version: 0.1.0
4
+ Summary: Messages, threads, and notifications across all communication channels
5
+ Project-URL: Homepage, https://github.com/mxn2020/minions-comms
6
+ Project-URL: Repository, https://github.com/mxn2020/minions-comms
7
+ Author-email: Mehdi Nabhani <mehdi@the-mehdi.com>
8
+ License: MIT
9
+ Keywords: ai,comms,minions
10
+ Requires-Python: >=3.11
11
+ Requires-Dist: minions-sdk>=0.2.1
12
+ Provides-Extra: test
13
+ Requires-Dist: pytest>=7.0; extra == 'test'
14
+ Description-Content-Type: text/markdown
15
+
16
+ # minions-comms
17
+
18
+ Messages, threads, and notifications across all communication channels
19
+
20
+ ## Installation
21
+
22
+ ```bash
23
+ pip install minions-comms
24
+ ```
25
+
26
+ ## Usage
27
+
28
+ ```python
29
+ from minions_comms import create_client
30
+
31
+ client = create_client()
32
+ ```
33
+
34
+ ## License
35
+
36
+ [MIT](../../LICENSE)
@@ -0,0 +1,21 @@
1
+ # minions-comms
2
+
3
+ Messages, threads, and notifications across all communication channels
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install minions-comms
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```python
14
+ from minions_comms import create_client
15
+
16
+ client = create_client()
17
+ ```
18
+
19
+ ## License
20
+
21
+ [MIT](../../LICENSE)
@@ -0,0 +1,24 @@
1
+ """
2
+ Minions Comms Python SDK
3
+
4
+ Messages, threads, and notifications across all communication channels
5
+ """
6
+
7
+ __version__ = "0.1.0"
8
+
9
+
10
+ def create_client(**kwargs):
11
+ """Create a client for Minions Comms.
12
+
13
+ Args:
14
+ **kwargs: Configuration options.
15
+
16
+ Returns:
17
+ dict: Client configuration.
18
+ """
19
+ return {
20
+ "version": __version__,
21
+ **kwargs,
22
+ }
23
+
24
+ from .schemas import *
@@ -0,0 +1,83 @@
1
+ """
2
+ Minions Comms SDK — Type Schemas
3
+ Custom MinionType schemas for Minions Comms.
4
+ """
5
+
6
+ from minions.types import FieldDefinition, FieldValidation, MinionType
7
+
8
+ message_type = MinionType(
9
+ id="comms-message",
10
+ name="Message",
11
+ slug="message",
12
+ description="A single message sent or received on any platform or channel.",
13
+ icon="✉️",
14
+ schema=[
15
+ FieldDefinition(name="threadId", type="string", label="threadId"),
16
+ FieldDefinition(name="authorId", type="string", label="authorId"),
17
+ FieldDefinition(name="authorType", type="select", label="authorType"),
18
+ FieldDefinition(name="body", type="string", label="body"),
19
+ FieldDefinition(name="sentAt", type="string", label="sentAt"),
20
+ FieldDefinition(name="platform", type="select", label="platform"),
21
+ FieldDefinition(name="status", type="select", label="status"),
22
+ FieldDefinition(name="isInbound", type="boolean", label="isInbound"),
23
+ ],
24
+ )
25
+
26
+ thread_type = MinionType(
27
+ id="comms-thread",
28
+ name="Thread",
29
+ slug="thread",
30
+ description="A grouped conversation with a topic and set of participants.",
31
+ icon="💬",
32
+ schema=[
33
+ FieldDefinition(name="topic", type="string", label="topic"),
34
+ FieldDefinition(name="platform", type="select", label="platform"),
35
+ FieldDefinition(name="participantIds", type="string", label="participantIds"),
36
+ FieldDefinition(name="contextRefType", type="string", label="contextRefType"),
37
+ FieldDefinition(name="contextRefId", type="string", label="contextRefId"),
38
+ FieldDefinition(name="status", type="select", label="status"),
39
+ FieldDefinition(name="createdAt", type="string", label="createdAt"),
40
+ FieldDefinition(name="lastMessageAt", type="string", label="lastMessageAt"),
41
+ ],
42
+ )
43
+
44
+ notification_type = MinionType(
45
+ id="comms-notification",
46
+ name="Notification",
47
+ slug="notification",
48
+ description="An outbound alert sent to a human with delivery tracking.",
49
+ icon="🔔",
50
+ schema=[
51
+ FieldDefinition(name="recipientId", type="string", label="recipientId"),
52
+ FieldDefinition(name="channel", type="select", label="channel"),
53
+ FieldDefinition(name="subject", type="string", label="subject"),
54
+ FieldDefinition(name="body", type="string", label="body"),
55
+ FieldDefinition(name="sentAt", type="string", label="sentAt"),
56
+ FieldDefinition(name="deliveryStatus", type="select", label="deliveryStatus"),
57
+ FieldDefinition(name="contextRefType", type="string", label="contextRefType"),
58
+ FieldDefinition(name="contextRefId", type="string", label="contextRefId"),
59
+ ],
60
+ )
61
+
62
+ follow_up_type = MinionType(
63
+ id="comms-follow-up",
64
+ name="Follow up",
65
+ slug="follow-up",
66
+ description="A scheduled follow-up action tied to a thread or contact.",
67
+ icon="⏰",
68
+ schema=[
69
+ FieldDefinition(name="threadId", type="string", label="threadId"),
70
+ FieldDefinition(name="dueAt", type="string", label="dueAt"),
71
+ FieldDefinition(name="reason", type="string", label="reason"),
72
+ FieldDefinition(name="status", type="select", label="status"),
73
+ FieldDefinition(name="assignedTo", type="string", label="assignedTo"),
74
+ ],
75
+ )
76
+
77
+ custom_types: list[MinionType] = [
78
+ message_type,
79
+ thread_type,
80
+ notification_type,
81
+ follow_up_type,
82
+ ]
83
+
@@ -0,0 +1,34 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "minions-comms"
7
+ version = "0.1.0"
8
+ description = "Messages, threads, and notifications across all communication channels"
9
+ readme = "README.md"
10
+ license = { text = "MIT" }
11
+ requires-python = ">=3.11"
12
+ keywords = ["comms","ai","minions"]
13
+ authors = [
14
+ { name = "Mehdi Nabhani", email = "mehdi@the-mehdi.com" }
15
+ ]
16
+ dependencies = [
17
+ "minions-sdk>=0.2.1",
18
+ ]
19
+
20
+ [project.optional-dependencies]
21
+ test = ["pytest>=7.0"]
22
+
23
+ [project.urls]
24
+ Homepage = "https://github.com/mxn2020/minions-comms"
25
+ Repository = "https://github.com/mxn2020/minions-comms"
26
+
27
+ [tool.hatch.build.targets.wheel]
28
+ packages = ["minions_comms"]
29
+
30
+ [tool.pytest.ini_options]
31
+ testpaths = ["tests"]
32
+ python_files = ["test_*.py"]
33
+ python_classes = ["Test*"]
34
+ python_functions = ["test_*"]
@@ -0,0 +1,20 @@
1
+ """Tests for minions-comms."""
2
+
3
+ from minions_comms import create_client, __version__
4
+
5
+
6
+ def test_version():
7
+ """Test that version is set."""
8
+ assert __version__ == "0.1.0"
9
+
10
+
11
+ def test_create_client():
12
+ """Test client creation."""
13
+ client = create_client()
14
+ assert client["version"] == "0.1.0"
15
+
16
+
17
+ def test_create_client_with_options():
18
+ """Test client creation with options."""
19
+ client = create_client(debug=True)
20
+ assert client["debug"] is True