@capybara-hq/plugin-slack 0.1.0-rc.0 → 0.1.0-rc.10
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.
- package/.capybara-plugin/plugin.json +123 -2
- package/README.md +174 -33
- package/connectors/slack.json +85 -0
- package/dist/index.mjs +987 -139
- package/guides/slack-app.md +243 -0
- package/guides/slack-app.zh.md +237 -0
- package/guides/slack-connector.md +113 -0
- package/guides/slack-connector.zh.md +107 -0
- package/icon.svg +1 -0
- package/package.json +1 -1
- package/app-manifest.yaml +0 -46
package/icon.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-12 -12 424 424"><title>Slack</title><path fill="#e3066a" d="M84.039,252.769c0,23.127-18.893,42.02-42.02,42.02S0,275.896,0,252.769s18.893-42.02,42.02-42.02h42.02v42.02Z"/><path fill="#e3066a" d="M105.212,252.769c0-23.127,18.893-42.02,42.02-42.02s42.02,18.893,42.02,42.02v105.212c0,23.127-18.893,42.02-42.02,42.02s-42.02-18.893-42.02-42.02c0,0,0-105.212,0-105.212Z"/><path fill="#00b3ff" d="M147.231,84.039c-23.127,0-42.02-18.893-42.02-42.02S124.104,0,147.231,0s42.02,18.893,42.02,42.02v42.02h-42.02Z"/><path fill="#00b3ff" d="M147.231,105.212c23.127,0,42.02,18.893,42.02,42.02s-18.893,42.02-42.02,42.02H42.02c-23.127,0-42.02-18.893-42.02-42.02s18.893-42.02,42.02-42.02c0,0,105.212,0,105.212,0Z"/><path fill="#41b658" d="M315.961,147.231c0-23.127,18.893-42.02,42.02-42.02s42.02,18.893,42.02,42.02-18.893,42.02-42.02,42.02h-42.02v-42.02Z"/><path fill="#41b658" d="M294.788,147.231c0,23.127-18.893,42.02-42.02,42.02s-42.02-18.893-42.02-42.02V42.02c0-23.127,18.893-42.02,42.02-42.02s42.02,18.893,42.02,42.02v105.212Z"/><path fill="#fcc003" d="M252.769,315.961c23.127,0,42.02,18.893,42.02,42.02s-18.893,42.02-42.02,42.02-42.02-18.893-42.02-42.02v-42.02h42.02Z"/><path fill="#fcc003" d="M252.769,294.788c-23.127,0-42.02-18.893-42.02-42.02s18.893-42.02,42.02-42.02h105.212c23.127,0,42.02,18.893,42.02,42.02s-18.893,42.02-42.02,42.02h-105.212Z"/></svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capybara-hq/plugin-slack",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "Slack (channel@1 bot over Socket Mode with Block Kit cards, identity-source@1 Sign in with Slack, directory@1)",
|
package/app-manifest.yaml
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# Slack app manifest for the Capybara Slack plugin (@capybara-hq/plugin-slack).
|
|
2
|
-
# Paste it at https://api.slack.com/apps -> Create New App -> From a manifest.
|
|
3
|
-
# Reference: https://docs.slack.dev/reference/app-manifest (checked 2026-10-20).
|
|
4
|
-
# Socket Mode needs no public request URL; the app-level token (xapp-, scope connections:write)
|
|
5
|
-
# is created separately under Basic Information -> App-Level Tokens (see README.md).
|
|
6
|
-
display_information:
|
|
7
|
-
name: Capybara
|
|
8
|
-
description: Chat with your organization's Capybara agents.
|
|
9
|
-
background_color: "#3d2f24"
|
|
10
|
-
features:
|
|
11
|
-
app_home:
|
|
12
|
-
home_tab_enabled: false
|
|
13
|
-
messages_tab_enabled: true
|
|
14
|
-
messages_tab_read_only_enabled: false
|
|
15
|
-
bot_user:
|
|
16
|
-
display_name: capybara
|
|
17
|
-
always_online: true
|
|
18
|
-
oauth_config:
|
|
19
|
-
# Sign in with Slack (identity-source@1): uncomment and set to <http.publicUrl>/api/v1/auth/sso/slack/callback.
|
|
20
|
-
# The sign-in flow requests openid / email / profile itself; do not add them as scopes here (Slack wants
|
|
21
|
-
# Sign in with Slack scopes in a separate OAuth flow, see README.md).
|
|
22
|
-
# redirect_urls:
|
|
23
|
-
# - https://capybara.example.com/api/v1/auth/sso/slack/callback
|
|
24
|
-
scopes:
|
|
25
|
-
bot:
|
|
26
|
-
- chat:write # post and update replies and cards
|
|
27
|
-
- im:history # message.im: direct messages to the bot
|
|
28
|
-
- app_mentions:read # app_mention: @capybara in channels
|
|
29
|
-
- channels:history # message.channels: thread replies in public channels
|
|
30
|
-
- groups:history # message.groups: thread replies in private channels
|
|
31
|
-
- users:read # users.info (display name, avatar); team_join / user_change; directory@1 users.list
|
|
32
|
-
- users:read.email # directory@1: email addresses in users.list (the bot itself does not use it)
|
|
33
|
-
settings:
|
|
34
|
-
event_subscriptions:
|
|
35
|
-
bot_events:
|
|
36
|
-
- message.im
|
|
37
|
-
- app_mention
|
|
38
|
-
- message.channels
|
|
39
|
-
- message.groups
|
|
40
|
-
- team_join
|
|
41
|
-
- user_change
|
|
42
|
-
interactivity:
|
|
43
|
-
is_enabled: true
|
|
44
|
-
socket_mode_enabled: true
|
|
45
|
-
org_deploy_enabled: false
|
|
46
|
-
token_rotation_enabled: false
|