takopi-slack-plugin 0.0.15__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.
@@ -0,0 +1,151 @@
1
+ Metadata-Version: 2.3
2
+ Name: takopi-slack-plugin
3
+ Version: 0.0.15
4
+ Summary: Slack transport plugin for Takopi.
5
+ Keywords: takopi,slack,transport,plugin
6
+ Author: takopi contributors
7
+ License: MIT License
8
+
9
+ Copyright (c) 2025 banteg
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
28
+ Classifier: License :: OSI Approved :: MIT License
29
+ Classifier: Programming Language :: Python :: 3
30
+ Classifier: Programming Language :: Python :: 3.14
31
+ Classifier: Programming Language :: Python :: 3 :: Only
32
+ Classifier: Operating System :: OS Independent
33
+ Requires-Dist: anyio>=4.12.0
34
+ Requires-Dist: httpx>=0.28.1
35
+ Requires-Dist: questionary>=2.1.1
36
+ Requires-Dist: takopi>=0.20.0
37
+ Requires-Dist: websockets>=12.0
38
+ Requires-Python: >=3.14
39
+ Project-URL: Homepage, https://zkp2p.xyz
40
+ Description-Content-Type: text/markdown
41
+
42
+ # takopi-slack-plugin
43
+
44
+ slack transport plugin for takopi. socket mode only, replies in threads, and
45
+ stores per-thread context + resume tokens.
46
+
47
+ ## features
48
+
49
+ - socket mode only; listens in a single channel or dm
50
+ - thread sessions (context + resume tokens) stored at
51
+ `~/.takopi/slack_thread_sessions_state.json`
52
+ - slash commands + message shortcuts for overrides and plugin commands
53
+ - cancel button on progress messages
54
+ - message overflow: split or trim long responses
55
+
56
+ ## requirements
57
+
58
+ - python 3.14+
59
+ - takopi >=0.20.0
60
+ - slack bot token with `chat:write`, `commands`, `app_mentions:read`, and
61
+ the matching history scopes for your channel type (`channels:history`,
62
+ `groups:history`, `im:history`, `mpim:history`)
63
+ - slack app token (`xapp-`) with `connections:write`
64
+
65
+ ## install
66
+
67
+ install into the same python environment as takopi.
68
+
69
+ ```sh
70
+ uv tool install -U takopi --with takopi-slack-plugin
71
+ ```
72
+
73
+ or, with a virtualenv:
74
+
75
+ ```sh
76
+ pip install takopi-slack-plugin
77
+ ```
78
+
79
+ ## setup
80
+
81
+ create a slack app and enable socket mode.
82
+
83
+ 1. create an app-level token with `connections:write`
84
+ 2. add the bot scopes listed above and install the app
85
+ 3. enable events for `app_mention` plus the right `message.*` event for your
86
+ channel type
87
+ 4. enable interactivity & shortcuts, create a slash command (for example
88
+ `/takopi`), and optionally add a message shortcut with callback id
89
+ `takopi:<plugin_id>`
90
+ 5. invite the bot to the target channel
91
+
92
+ add to `~/.takopi/takopi.toml`:
93
+
94
+ ```toml
95
+ transport = "slack"
96
+
97
+ [transports.slack]
98
+ bot_token = "xoxb-..."
99
+ app_token = "xapp-..."
100
+ channel_id = "C12345678"
101
+ message_overflow = "split"
102
+ ```
103
+
104
+ set `message_overflow = "trim"` if you prefer truncation instead of followups.
105
+
106
+ if you use a plugin allowlist, enable this distribution:
107
+
108
+ ```toml
109
+ [plugins]
110
+ enabled = ["takopi-slack-plugin"]
111
+ ```
112
+
113
+ ## usage
114
+
115
+ ```sh
116
+ takopi --transport slack
117
+ ```
118
+
119
+ if you already set `transport = "slack"`, `takopi` is enough.
120
+
121
+ root messages must include both a project and worktree directive in the first
122
+ line. messages that do not match are ignored.
123
+
124
+ example:
125
+
126
+ ```
127
+ @takopi /zkp2p-clients @feat/web/monad-usdt0 add a retry to the api call
128
+ ```
129
+
130
+ thread replies reuse stored context, so you can reply without repeating
131
+ directives.
132
+
133
+ slash command built-ins:
134
+
135
+ ```
136
+ /takopi status
137
+ /takopi engine <engine|clear>
138
+ /takopi model <engine> <model|clear>
139
+ /takopi reasoning <engine> <level|clear>
140
+ /takopi session clear
141
+ ```
142
+
143
+ message shortcuts pass the selected message text as arguments to the plugin
144
+ command identified by `takopi:<plugin_id>`.
145
+
146
+ progress messages include a cancel button; enable interactivity & shortcuts so
147
+ clicks are delivered in socket mode.
148
+
149
+ ## license
150
+
151
+ mit
@@ -0,0 +1,17 @@
1
+ takopi_slack_plugin/__init__.py,sha256=OrdTRcIxj3euY3X2MHgBWZxaxDkivQJkiLqLw8KsDf0,41
2
+ takopi_slack_plugin/backend.py,sha256=Iq3NnwxP7YRcmEyJbBov4qCB3cw1AHkCFv-VJj0JGPs,6149
3
+ takopi_slack_plugin/bridge.py,sha256=n_2a5N9iSs__nm6kUB0dmlNVhcQj6Z_Ahmcb9mpgVsQ,43599
4
+ takopi_slack_plugin/client.py,sha256=n7uUzpwjbob4G5vbB5guylN357y5HaAulxtjq_8qcRc,7513
5
+ takopi_slack_plugin/commands/__init__.py,sha256=u5H_TEDgTK0M_7VSXcKFFxg3K4Gk5siIbP638imscIE,113
6
+ takopi_slack_plugin/commands/dispatch.py,sha256=Rf8YXEHELGPw55LiZNGubKMuCDUXQdHbOmTecGGWL9A,3292
7
+ takopi_slack_plugin/commands/executor.py,sha256=eeTtpf-K0vCelcGcJdRYsdPDkW1O-K7IPCph9_Uy39I,6305
8
+ takopi_slack_plugin/config.py,sha256=otTS7dLzil_du1UyDoLChLPVq5wDCTzJCGsYawHSbL8,2038
9
+ takopi_slack_plugin/engine.py,sha256=msb7_3pT9_YtvNWne1Ou6ts-2XPcc3DP2EHsuVJ5pOE,4204
10
+ takopi_slack_plugin/onboarding.py,sha256=7xgY3BDGkBWU9Mq0FqJs2Mt5sxGfhYAVwQodi03X_VU,1598
11
+ takopi_slack_plugin/outbox.py,sha256=WyvFLGd9u0x2gDaE0SOSvqgnXxfFRwGwMWp33KpKeP4,5101
12
+ takopi_slack_plugin/overrides.py,sha256=BrKSUZy72DK1VMqVzU2G_c3RM6hNQLl175FuT-IphOA,494
13
+ takopi_slack_plugin/thread_sessions.py,sha256=RMfo1RvHeJKXYsgCtTw4H7P6GAp1eBwIBiqvx0K7Vm4,9412
14
+ takopi_slack_plugin-0.0.15.dist-info/WHEEL,sha256=XV0cjMrO7zXhVAIyyc8aFf1VjZ33Fen4IiJk5zFlC3g,80
15
+ takopi_slack_plugin-0.0.15.dist-info/entry_points.txt,sha256=jwKNzUWO-Vz1g0Gwlc6-LF5NsiDFt-WJeRbccHNbHgQ,73
16
+ takopi_slack_plugin-0.0.15.dist-info/METADATA,sha256=-kWvR56DILbiHtuoKzpZh0M7l9MzdAe4F-Z3eW16LtA,4596
17
+ takopi_slack_plugin-0.0.15.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: uv 0.9.26
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,3 @@
1
+ [takopi.transport_backends]
2
+ slack = takopi_slack_plugin.backend:BACKEND
3
+