@petercha90/oasis 1.2.0 → 1.2.1
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/README.md +18 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
---
|
|
22
22
|
|
|
23
23
|
<p align="center">
|
|
24
|
-
<img src="docs/example.png" alt="OASIS Approval Example" width="800" />
|
|
24
|
+
<img src="https://raw.githubusercontent.com/PeterCha90/oasis/main/docs/example.png" alt="OASIS Approval Example" width="800" />
|
|
25
25
|
</p>
|
|
26
26
|
|
|
27
27
|
---
|
|
@@ -83,18 +83,27 @@ A dedicated Slack app is **required** for OASIS to work. It handles approval but
|
|
|
83
83
|
#### Step 1: Create the App
|
|
84
84
|
|
|
85
85
|
1. Go to [api.slack.com/apps](https://api.slack.com/apps)
|
|
86
|
-
2. Click **Create New App**
|
|
86
|
+
2. Click **Create New App**
|
|
87
|
+
<img src="https://raw.githubusercontent.com/PeterCha90/oasis/main/public/1.png"/>
|
|
88
|
+
→ **From scratch** <br>
|
|
89
|
+
<img src="https://raw.githubusercontent.com/PeterCha90/oasis/main/public/2.png"/>
|
|
90
|
+
|
|
87
91
|
3. App Name: `OASIS`
|
|
88
92
|
4. Pick your workspace → **Create App**
|
|
89
93
|
|
|
90
94
|
#### Step 2: Enable Socket Mode
|
|
91
95
|
|
|
92
96
|
1. Left sidebar → **Socket Mode**
|
|
93
|
-
2. Toggle **Enable Socket Mode** to ON
|
|
97
|
+
2. Toggle **Enable Socket Mode** to ON <br>
|
|
98
|
+
<img src="https://raw.githubusercontent.com/PeterCha90/oasis/main/public/3.png"/>
|
|
99
|
+
|
|
94
100
|
3. You'll be prompted to create an App-Level Token:
|
|
95
101
|
- Token Name: `oasis`
|
|
96
102
|
- Scope: `connections:write` (auto-selected)
|
|
97
103
|
- Click **Generate**
|
|
104
|
+
|
|
105
|
+
<img src="https://raw.githubusercontent.com/PeterCha90/oasis/main/public/4.png"/>
|
|
106
|
+
|
|
98
107
|
4. Copy the token starting with `xapp-...` — this is your **App Token**
|
|
99
108
|
|
|
100
109
|
#### Step 3: Set Bot Permissions
|
|
@@ -111,6 +120,8 @@ A dedicated Slack app is **required** for OASIS to work. It handles approval but
|
|
|
111
120
|
| `channels:history` | Read approval messages to extract approval ID |
|
|
112
121
|
| `channels:read` | Access channel info |
|
|
113
122
|
|
|
123
|
+
<img src="https://raw.githubusercontent.com/PeterCha90/oasis/main/public/6.png"/>
|
|
124
|
+
|
|
114
125
|
#### Step 4: Subscribe to Events
|
|
115
126
|
|
|
116
127
|
1. Left sidebar → **Event Subscriptions**
|
|
@@ -123,12 +134,16 @@ A dedicated Slack app is **required** for OASIS to work. It handles approval but
|
|
|
123
134
|
| `message.channels` | Detect approval messages from OpenClaw agents |
|
|
124
135
|
| `reaction_added` | Detect user's Allow (✅) or Deny (🙅) reaction |
|
|
125
136
|
|
|
137
|
+
<img src="https://raw.githubusercontent.com/PeterCha90/oasis/main/public/8.png"/>
|
|
138
|
+
|
|
126
139
|
5. Click **Save Changes**
|
|
127
140
|
|
|
128
141
|
#### Step 5: Install to Workspace
|
|
129
142
|
|
|
130
143
|
1. Left sidebar → **Install App**
|
|
131
144
|
2. Click **Install to Workspace** → **Allow**
|
|
145
|
+
<img src="https://raw.githubusercontent.com/PeterCha90/oasis/main/public/9.png"/>
|
|
146
|
+
|
|
132
147
|
3. Copy the **Bot User OAuth Token** starting with `xoxb-...` — this is your **Bot Token**
|
|
133
148
|
|
|
134
149
|
### 3. Configure OASIS
|