@gitterm/slack-bot 0.2.0 → 0.2.2
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 +5 -2
- package/dist/cli.js +2 -0
- package/dist/index.js +2 -0
- package/package.json +8 -3
package/README.md
CHANGED
|
@@ -192,7 +192,10 @@ const bot = createSlackBot({
|
|
|
192
192
|
});
|
|
193
193
|
|
|
194
194
|
await bot.start();
|
|
195
|
-
|
|
195
|
+
// Stopping releases the bot's claim, so the next start doesn't wait for it to expire.
|
|
196
|
+
const shutdown = () => void bot.stop().finally(() => process.exit(0));
|
|
197
|
+
process.once("SIGINT", shutdown);
|
|
198
|
+
process.once("SIGTERM", shutdown);
|
|
196
199
|
```
|
|
197
200
|
|
|
198
201
|
### Add it to a bot you already run
|
|
@@ -266,7 +269,7 @@ Run one bot process per Slack app. Two processes with the same tokens would both
|
|
|
266
269
|
|
|
267
270
|
## Limits
|
|
268
271
|
|
|
269
|
-
-
|
|
272
|
+
- GitTerm's bot run adapter currently supports OpenCode only. T3 Code has a separate native orchestration API, not an OpenCode-compatible run API.
|
|
270
273
|
- A question left unanswered past the workspace's idle timeout lets the sandbox pause, which
|
|
271
274
|
cancels the run.
|
|
272
275
|
- Direct messages are not supported; talk to the bot in channels.
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitterm/slack-bot",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Slack bot that runs a coding agent on your repository in a GitTerm sandbox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -12,6 +12,11 @@
|
|
|
12
12
|
"homepage": "https://gitterm.dev",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"author": "Opeyemi Oginni",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/OpeOginni/gitterm.git",
|
|
18
|
+
"directory": "packages/slack-bot"
|
|
19
|
+
},
|
|
15
20
|
"bin": {
|
|
16
21
|
"gitterm-slack-bot": "dist/cli.js"
|
|
17
22
|
},
|
|
@@ -42,8 +47,8 @@
|
|
|
42
47
|
"start:local": "bun --watch src/cli.ts"
|
|
43
48
|
},
|
|
44
49
|
"dependencies": {
|
|
45
|
-
"@gitterm/bot": "^0.2.
|
|
46
|
-
"@gitterm/sdk": "^0.
|
|
50
|
+
"@gitterm/bot": "^0.2.2",
|
|
51
|
+
"@gitterm/sdk": "^0.12.0",
|
|
47
52
|
"@slack/bolt": "^5.1.0"
|
|
48
53
|
},
|
|
49
54
|
"devDependencies": {
|