wakeshift 0.2.0__py3-none-any.whl

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.
wakeshift/__init__.py ADDED
@@ -0,0 +1,100 @@
1
+ """Wakeshift's SDK for MCP servers in Python: define your app's events, emit
2
+ them, and Wakeshift wakes every subscribed agent (Claude Code, Codex, ChatGPT…)
3
+ the best way its client allows.
4
+
5
+ from wakeshift import Wakeshift
6
+
7
+ wake = Wakeshift(key=os.environ["WAKESHIFT_KEY"])
8
+ message = wake.define_event("chat.message", description=..., args=..., payload=..., text=...)
9
+ wake.attach(server)
10
+ await message.emit({"channel": "eng"}, {"from": "ada", "text": "shipped it"})
11
+ """
12
+
13
+ from .client import (
14
+ CONVERSATION_ARG,
15
+ DEFAULT_CORE,
16
+ HARNESS_ARG,
17
+ SESSION_ARG,
18
+ UNKNOWN_CLIENT_WARNING,
19
+ WAKE_ARGS_SCHEMA,
20
+ Addition,
21
+ AppInfo,
22
+ Call,
23
+ ConversationId,
24
+ Harness,
25
+ Published,
26
+ PublishUrl,
27
+ Recognised,
28
+ SessionKey,
29
+ Subscription,
30
+ SubscriptionStatus,
31
+ TopicStatus,
32
+ Wakeshift,
33
+ apply_addition,
34
+ )
35
+ from .errors import WakeshiftError, is_code
36
+ from .events import (
37
+ EVENT_TOOL_TEXT,
38
+ LIST_TOOL_DESCRIPTION,
39
+ SUBSCRIBE_TOOL_DESCRIPTION,
40
+ UNSUBSCRIBE_TOOL_DESCRIPTION,
41
+ ArgsError,
42
+ CallerSubscription,
43
+ Identity,
44
+ Subscriber,
45
+ WakeEvent,
46
+ speaks_events,
47
+ )
48
+ from .guest import Guest, GuestAuth, guest_of
49
+ from .harness import harness_agent
50
+ from .key import AppKey, parse_key, sign_assertion
51
+ from .spec import EXTENSION_KEY, LEGACY_KEY, TEXT_META
52
+ from .spec import REVISION as EVENTS_REVISION
53
+
54
+ __version__ = "0.2.0"
55
+
56
+ __all__ = [
57
+ "CONVERSATION_ARG",
58
+ "DEFAULT_CORE",
59
+ "EVENTS_REVISION",
60
+ "EVENT_TOOL_TEXT",
61
+ "EXTENSION_KEY",
62
+ "HARNESS_ARG",
63
+ "LEGACY_KEY",
64
+ "LIST_TOOL_DESCRIPTION",
65
+ "SESSION_ARG",
66
+ "SUBSCRIBE_TOOL_DESCRIPTION",
67
+ "TEXT_META",
68
+ "UNKNOWN_CLIENT_WARNING",
69
+ "UNSUBSCRIBE_TOOL_DESCRIPTION",
70
+ "WAKE_ARGS_SCHEMA",
71
+ "Addition",
72
+ "AppInfo",
73
+ "AppKey",
74
+ "ArgsError",
75
+ "Call",
76
+ "CallerSubscription",
77
+ "ConversationId",
78
+ "Guest",
79
+ "GuestAuth",
80
+ "Harness",
81
+ "Identity",
82
+ "PublishUrl",
83
+ "Published",
84
+ "Recognised",
85
+ "SessionKey",
86
+ "Subscriber",
87
+ "Subscription",
88
+ "SubscriptionStatus",
89
+ "TopicStatus",
90
+ "WakeEvent",
91
+ "Wakeshift",
92
+ "WakeshiftError",
93
+ "apply_addition",
94
+ "guest_of",
95
+ "harness_agent",
96
+ "is_code",
97
+ "parse_key",
98
+ "sign_assertion",
99
+ "speaks_events",
100
+ ]